76 *bw,be,bs,bn,jm,b1,b2,fn,lrv,rv0x,rv0y,rl0y)
127 character*10 region,olddtm,newdtm
128 real*8 bw(maxplots),be(maxplots),bs(maxplots),bn(maxplots)
130 real*4 b1(maxplots),b2(maxplots)
131 character*10 fn(maxplots)
136 logical lrv(maxplots)
137 real*8 rv0x(maxplots),rv0y(maxplots),rl0y(maxplots)
145 pi = 2.d0*dasin(1.d0)
151 *file=
'Data/map.parameters',
152 *status=
'old',form=
'formatted')
158 read(ifile,
'(a)')card
159 read(ifile,
'(a)')card
164 1
read(ifile,
'(a)',end=2)card
165 if(card( 1:10).ne.region)
goto 1
166 read(card(14:14),*)iflag0
167 if(iflag0.gt.iflag)
goto 1
174 if(region.eq.
'alaska' .and.
177 * (card(16:25).eq.
'stpaul' .or.
178 * card(16:25).eq.
'stgeorge' .or.
179 * card(16:25).eq.
'stlawrence' .or.
180 * card(16:25).eq.
'stmatthew') .and.
181 * olddtm.eq.
'nad27' )
goto 1
184 fn(i) = trim(card( 16: 25))
185 read(card( 27: 30),*)iwd
186 read(card( 32: 33),*)iwm
187 read(card( 35: 38),*)ied
188 read(card( 40: 41),*)iem
189 read(card( 43: 45),*)isd
190 read(card( 47: 48),*)ism
191 read(card( 50: 52),*)ind
192 read(card( 54: 55),*)inm
193 read(card( 57: 60),*)xjm
194 read(card( 62: 64),*)ib1d
195 read(card( 66: 67),*)ib1m
196 read(card( 69: 71),*)ib2d
197 read(card( 73: 74),*)ib2m
199 read(card( 76: 78),
'(a3)')c3x
200 read(card( 80: 81),
'(a2)')c2x
201 read(card( 83: 85),
'(a3)')c3y
202 read(card( 87: 88),
'(a2)')c2y
204 bw(i) = dble(iwd) + dble(iwm)/60.d0
205 be(i) = dble(ied) + dble(iem)/60.d0
206 if(ind.lt.0)inm = -inm
207 if(isd.lt.0)ism = -ism
208 bn(i) = dble(ind) + dble(inm)/60.d0
209 bs(i) = dble(isd) + dble(ism)/60.d0
211 b1(i) = dble(ib1d) + dble(ib1m)/60.d0
212 b2(i) = dble(ib2d) + dble(ib2m)/60.d0
225 rv0x(i) = dble(rv0xd) + dble(rv0xm)/60.d0
226 rv0y(i) = dble(rv0yd) + dble(rv0ym)/60.d0
231 dx = (be(i) - bw(i)) * d2r
234 q2 = 1.d0 / dcos(bn(i)*d2r)
238 q2 = 1.d0 / dcos(bs(i)*d2r)
250 if(xmxht*ratio .gt. xmxwd)
then 267 ddum = 0.01d0*(be(i) - bw(i))
277 q2 = 1.d0 / dcos(ydum*d2r)
281 q2 = 1.d0 / dcos(bs(i)*d2r)
294 r2iew = (0.01d0 * jm(i)) / dx
297 r2ins = r2iew / ratio
305 rv0y(i) = bs(i) - (0.50d0)/d2ins
306 rl0y(i) = bs(i) - (0.65d0)/d2ins
312 write(6,8) trim(fn(i))
313 8
format(
'***************************',/,
314 *
'Reference Vector Computations for',
317 write(6,*)
' yn,ys,dy = ',yn,ys,dy
318 write(6,*)
' xe,xw,dx = ',xe,xw,dx
319 write(6,*)
' E/W width (jm) = ',jm(i)
320 write(6,*)
' SW ratio = ',ratio
321 write(6,*)
' SW bounds,Lat = ',ydum,bs(i)
322 write(6,*)
' SW bounds,Lon = ',xdum,bw(i)
323 write(6,*)
' r2i E/W = ',r2iew
324 write(6,*)
' r2i N/S = ',r2ins
325 write(6,*)
' d2i N/S = ',d2ins
326 write(6,*)
' Southwest corner = ',bs(i),bw(i)
327 write(6,*)
' Ref Vector = ',rv0y(i),rv0x(i)
328 write(6,*)
' Ref Label = ',rl0y(i),rv0x(i)
337 write(6,100)trim(region)
340 100
format(6x,
'FATAL Subroutine getmapbounds: Unknown region: ',a)
subroutine getmapbounds(mapflag, maxplots, region, nplots, olddtm, newdtm, bw, be, bs, bn, jm, b1, b2, fn, lrv, rv0x, rv0y, rl0y)
Subroutine to collect up the MAP boundaries for use in creating NADCON 5.