30 subroutine bwplotvc(ele,fname,bw,be,bs,bn,jm,b1,b2,maxplots,
31 *olddtm,newdtm,region,elecap,ij,xvlon,xvlat,xllon,xllat,lorvog,
61 implicit real*8(a-h,o-z)
63 character*3 ele,elecap
65 character*10 olddtm,newdtm,region
66 real*8 bw(maxplots),be(maxplots),bs(maxplots),bn(maxplots)
68 real*4 b1(maxplots),b2(maxplots)
69 character*10 fn(maxplots)
73 character*20 gridnote2
90 if(fname(3:3).eq.
't')
then 92 elseif(fname(3:3).eq.
'd')
then 94 elseif(fname(3:3).eq.
'a')
then 96 elseif(fname(3:3).eq.
'r')
then 102 1
format(
'FATAL in bwplotvc. Bad character in spot 3: ',a)
104 if(.not.(fname(1:2).eq.
'vm'.or.fname(1:2).eq.
'vs'))
then 105 write(6,2)trim(fname)
108 2
format(
'FATAL in bwplotvc. Bad character in spots 1-2: ',a)
110 if(.not.(fname(4:5).eq.
'cd' .or. fname(4:5).eq.
'dd' .or.
111 * fname(4:5).eq.
'gi'))
then 112 write(6,3)trim(fname)
115 3
format(
'FATAL in bwplotvc. Bad character in spots 4-5: ',a)
117 if(fname(6:8).ne.ele)
then 118 write(6,4)trim(fname),ele
121 4
format(
'FATAL in bwplotvc. Bad match of fname / ele: ',a,1x,a)
125 if(fname(1:3).eq.
'vmacd' .or. fname(1:3).eq.
'vsacd')
then 129 if (fname(2:2).eq.
'm')
then 131 elseif(fname(2:2).eq.
's')
then 134 write(6,5)trim(fname)
137 5
format(
'FATAL in bwplotvc. Bad units in name: ',a)
139 if(igridsec.le.0)
then 143 write(gridnote,10)igridsec
144 write(gridnote2,11)igridsec
146 10
format(
'(',i0,
' sec)')
159 write(99,991)ele,extra,trim(units),trim(region),trim(fn(ij)),
160 *ele,extra,trim(units),trim(region),trim(fn(ij))
163 write(99,903)trim(fname),bw(ij),be(ij),bs(ij),bn(ij),
164 *jm(ij),b1(ij),b2(ij),trim(newdtm),trim(olddtm),elecap,
165 *extra,trim(gridnote),trim(region),trim(fn(ij)),fname(2:5)
170 write(99,908)xvlon,xvlat,90.d0,lorvopc
177 if (trim(units).eq.
'arcseconds')
then 178 write(99,1909)xllon,xllat,lorvog,trim(units)
179 elseif(trim(units).eq.
'meters')
then 180 write(99, 909)xllon,xllat,lorvog,trim(units)
191 write(99,906)trim(fname),trim(fn(ij))
198 *
'# -----------------------------------------------------',/,
199 *
'# vectors in ',a,a,1x,a,1x,a,1x,a,/,
200 *
'# -----------------------------------------------------',/,
201 *
'echo ...vectors in ',a,a,1x,a,1x,a,1x,a)
205 903
format(
'psxy ',a,
' -Xc -R',f0.6,
'/',f0.6,
'/',sp,f0.6,
'/',f0.6,
206 * ss,
' -JM',f3.1,
'i -B',f0.6,
'/',f0.6,
':."',
207 *
'NADCON v5.0 ',a,
' minus ',a,
' ',a3,a5,a,
209 *
'": -SV0.0001i/0.02i/0.02i ',
210 *
'-Gblack -K > plot.ps')
234 908
format(
'psxy -SV0.0001i/0.02i/0.02i -N -R -O -K -JM',
235 *
' -Gred >> plot.ps << !',/,
236 * f10.6,1x,f10.6,1x,f5.1,1x,f9.1,/,
250 909
format(
'pstext -N -O -K -R -JM -Gred >> plot.ps << !',/,
251 * f10.6,1x,f10.6,1x,
'12 0 1 TL ',f10.3,1x,a,/,
258 1909
format(
'pstext -N -O -K -R -JM -Gred >> plot.ps << !',/,
259 * f10.6,1x,f10.6,1x,
'12 0 1 TL ',f10.6,1x,a,/,
276 905
format(
'ps2raster plot.ps -Tj -P -A ')
281 906
format(
'mv -f plot.jpg ',a,
282 *
'.',a,
'.jpg',/,
'rm -f plot.ps')
subroutine bwplotvc(ele, fname, bw, be, bs, bn, jm, b1, b2, maxplots, olddtm, newdtm, region, elecap, ij, xvlon, xvlat, xllon, xllat, lorvog, lorvopc, igridsec, fn)
Subroutine to make GMT calls to do a B/W vector plot.
subroutine plotcoast(region, ifnum)
Subroutine to write GMT-based commands to create a shoreline Write GMT-based commands to create a sho...