34 subroutine bwplotvc(ele,fname,bw,be,bs,bn,jm,b1,b2,maxplots,
35 *olddtm,newdtm,region,elecap,ij,xvlon,xvlat,xllon,xllat,lorvog,
65 implicit real*8(a-h,o-z)
67 character*3 ele,elecap
69 character*10 olddtm,newdtm,region
70 real*8 bw(maxplots),be(maxplots),bs(maxplots),bn(maxplots)
72 real*4 b1(maxplots),b2(maxplots)
73 character*10 fn(maxplots)
77 character*20 gridnote2
94 if(fname(3:3).eq.
't')
then 96 elseif(fname(3:3).eq.
'd')
then 98 elseif(fname(3:3).eq.
'a')
then 100 elseif(fname(3:3).eq.
'r')
then 103 write(6,1)trim(fname)
106 1
format(
'FATAL in bwplotvc. Bad character in spot 3: ',a)
108 if(.not.(fname(1:2).eq.
'vm'.or.fname(1:2).eq.
'vs'))
then 109 write(6,2)trim(fname)
112 2
format(
'FATAL in bwplotvc. Bad character in spots 1-2: ',a)
114 if(.not.(fname(4:5).eq.
'cd' .or. fname(4:5).eq.
'dd' .or.
115 * fname(4:5).eq.
'gi'))
then 116 write(6,3)trim(fname)
119 3
format(
'FATAL in bwplotvc. Bad character in spots 4-5: ',a)
121 if(fname(6:8).ne.ele)
then 122 write(6,4)trim(fname),ele
125 4
format(
'FATAL in bwplotvc. Bad match of fname / ele: ',a,1x,a)
129 if(fname(1:3).eq.
'vmacd' .or. fname(1:3).eq.
'vsacd')
then 133 if (fname(2:2).eq.
'm')
then 135 elseif(fname(2:2).eq.
's')
then 138 write(6,5)trim(fname)
141 5
format(
'FATAL in bwplotvc. Bad units in name: ',a)
143 if(igridsec.le.0)
then 147 write(gridnote,10)igridsec
148 write(gridnote2,11)igridsec
150 10
format(
'(',i0,
' sec)')
163 write(99,991)ele,extra,trim(units),trim(region),trim(fn(ij)),
164 *ele,extra,trim(units),trim(region),trim(fn(ij))
167 write(99,903)trim(fname),bw(ij),be(ij),bs(ij),bn(ij),
168 *jm(ij),b1(ij),b2(ij),trim(newdtm),trim(olddtm),elecap,
169 *extra,trim(gridnote),trim(region),trim(fn(ij)),fname(2:5)
174 write(99,908)xvlon,xvlat,90.d0,lorvopc
181 if (trim(units).eq.
'arcseconds')
then 182 write(99,1909)xllon,xllat,lorvog,trim(units)
183 elseif(trim(units).eq.
'meters')
then 184 write(99, 909)xllon,xllat,lorvog,trim(units)
195 write(99,906)trim(fname),trim(fn(ij))
202 *
'# -----------------------------------------------------',/,
203 *
'# vectors in ',a,a,1x,a,1x,a,1x,a,/,
204 *
'# -----------------------------------------------------',/,
205 *
'echo ...vectors in ',a,a,1x,a,1x,a,1x,a)
209 903
format(
'psxy ',a,
' -Xc -R',f0.6,
'/',f0.6,
'/',sp,f0.6,
'/',f0.6,
210 * ss,
' -JM',f3.1,
'i -B',f0.6,
'/',f0.6,
':."',
211 *
'NADCON v5.0 ',a,
' minus ',a,
' ',a3,a5,a,
213 *
'": -SV0.0001i/0.02i/0.02i ',
214 *
'-Gblack -K > plot.ps')
238 908
format(
'psxy -SV0.0001i/0.02i/0.02i -N -R -O -K -JM',
239 *
' -Gred >> plot.ps << !',/,
240 * f10.6,1x,f10.6,1x,f5.1,1x,f9.1,/,
254 909
format(
'pstext -N -O -K -R -JM -Gred >> plot.ps << !',/,
255 * f10.6,1x,f10.6,1x,
'12 0 1 TL ',f10.3,1x,a,/,
262 1909
format(
'pstext -N -O -K -R -JM -Gred >> plot.ps << !',/,
263 * f10.6,1x,f10.6,1x,
'12 0 1 TL ',f10.6,1x,a,/,
280 905
format(
'ps2raster plot.ps -Tj -P -A ')
285 906
format(
'mv -f plot.jpg ',a,
286 *
'.',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...