51 SUBROUTINE w3fb12(XI,XJ,ALAT1,ELON1,DX,ELONV,ALATAN,ALAT,ELON,
58 DATA rerth /6.3712e+6/, pi/3.14159/, oldrml/99999./
74 alatn1 = alatan * radpd
83 IF ((elon1-elonv).GT.180.)
84 & elon1l = elon1 - 360.
85 IF ((elon1-elonv).LT.(-180.))
86 & elon1l = elon1 + 360.
88 elonvr = elonv * radpd
93 rmll = rebydx * ((cosltn**(1.-an))*(1.+an)**an) *
94 & (((cos(ala1))/(1.+h*sin(ala1)))**an)/an
99 IF (rmll.EQ.oldrml)
THEN
107 elo1 = elon1l * radpd
108 arg = an * (elo1-elonvr)
109 polei = 1. - h * rmll * sin(arg)
110 polej = 1. + rmll * cos(arg)
124 beta = abs(atan2(xx,-yy))
126 IF (beta.LE.theta)
THEN
130 IF (.NOT.newmap)
RETURN
142 elon = elonv + degprd * atan2(h*xx,yy)/an
143 elon = amod(elon+360., 360.)
151 thing = ((an/rebydx) ** aninv)/
152 & ((cosltn**((1.-an)*aninv))*(1.+ an))
154 alat = h*(piby2 - 2.*atan(thing*(r2**aninv2)))*degprd
subroutine w3fb12(xi, xj, alat1, elon1, dx, elonv, alatan, alat, elon, ierr)
Converts the coordinates of a location on Earth given in a grid coordinate system overlaid on a lambe...