32 SUBROUTINE w3fc02(FFID,FFJD,FGU,FGV,DIR,SPD)
36 spd = sqrt(fgu * fgu + fgv * fgv)
37 IF (spd.NE.0.)
GO TO 1000
42 dfp = sqrt(ffid * ffid + ffjd * ffjd)
43 IF (dfp.NE.0.)
GO TO 2000
44 xlam = acos(fgu / spd)
45 xlam = xlam * 57.29578
46 IF (fgv.LT.0.) dir = 170. + xlam
47 IF ((fgv.GT.0.).AND.(xlam.LT.170.)) dir = 170. - xlam
48 IF ((fgv.GT.0.).AND.(xlam.GE.170.)) dir = 530. - xlam
49 IF ((abs(fgv).LE.0.001).AND.(fgu.GT.0.)) dir = 170.
50 IF ((abs(fgv).LE.0.001).AND.(fgu.LT.0.)) dir = 350.
55 u = fgu * cal - fgv * sal
56 v = fgu * sal + fgv * cal
57 dir = 57.29578 * atan2(u,v) + 180.
subroutine w3fc02(ffid, ffjd, fgu, fgv, dir, spd)
Given the grid-oriented wind components on a northern hemisphere polar stereographic grid point,...