71 subroutine coplot(ele,fname,bw,be,bs,bn,jm,b1,b2,maxplots,
72 *olddtm,newdtm,region,elecap,ij,cptlo,cpthi,cptin6,suffixused,
144 implicit real*8(a-h,o-z)
150 character*3 ele,elecap
152 character*10 olddtm,newdtm,region
153 real*8 bw(maxplots),be(maxplots),bs(maxplots),bn(maxplots)
155 real*4 b1(maxplots),b2(maxplots)
156 character*10 fn(maxplots)
158 character*200 suffixused
160 character*20 gridnote
161 character*20 gridnote2
166 if(.not.(fname(1:3).eq.
'vmt'.or.fname(1:3).eq.
'vst' .or.
167 * fname(1:3).eq.
'vmr'.or.fname(1:3).eq.
'vsr' .or.
168 * fname(1:3).eq.
'vme'.or.fname(1:3).eq.
'vse'))
then 169 write(6,2)trim(fname)
172 2
format(
'FATAL in coplot. Bad character in spots 1-3: ',a)
174 if(.not.(fname(4:5).eq.
'cd' .or. fname(4:5).eq.
'dd' .or.
175 * fname(4:5).eq.
'te' ))
then 176 write(6,3)trim(fname)
179 3
format(
'FATAL in coplot. Bad character in spots 4-5: ',a)
181 if(fname(6:8).ne.ele)
then 182 write(6,4)trim(fname),ele
185 4
format(
'FATAL in coplot. Bad match of fname / ele: ',a,1x,a)
187 if(fname(2:2).eq.
'm')
then 189 elseif(fname(2:2).eq.
's')
then 192 write(6,5)trim(fname)
195 5
format(
'FATAL in coplot. Bad units in name: ',a)
197 if(igridsec.le.0)
then 200 write(gridnote,10)igridsec
201 write(gridnote2,11)igridsec
203 6
format(
'FATAL in coplot. Bad igridsec: ',i0)
204 10
format(
'(',i0,
' sec)')
230 write(99,991)ele,trim(units),trim(region),trim(fn(ij)),
232 *ele,trim(units),trim(region),trim(fn(ij)),
240 write(99,901)cptlo,cpthi,cptin
261 *
'gmtset D_FORMAT %.12G',/,
262 *
'makecpt -Crainbow -T',f0.10,
'/',f0.10,
'/',f0.10,
264 *
'gmtset D_FORMAT %.3G')
274 *
'grdgradient ',a,
'.',a,
275 *
'.grd -N4.8 -A90 -M -Gtempi.grd')
282 write(99,903)fname(1:8),trim(suffixused),
283 *bw(ij),be(ij),bs(ij),bn(ij),
284 *jm(ij),b1(ij),b2(ij),
285 *trim(newdtm),trim(olddtm),elecap,igridsec,
286 *trim(region),trim(fn(ij)),fname(2:5)
320 *
'grdimage ',a,
'.',a,
'.grd',
322 *
' -R',f0.6,
'/',f0.6,
'/',f0.6,
'/',f0.6,
323 *
' -JM',f3.1,
'i -B',f0.6,
'/',f0.6,
324 *
':."NADCON v5.0 ',a,
' minus ',a,
' ',a3,
327 *
':" -Ctemp.cpt -K > plot.ps')
339 write(99,904)qqa,trim(units)
342 *
'psscale -D',f3.1,
'i/-0.4i/4.0i/0.2ih',
343 *
' -Ctemp.cpt -I0.4 -B/:',a,
344 *
': -O -K >> plot.ps')
357 ll = len(trim(suffixused))
358 if(suffixused(ll-1:ll).eq.
'd3')
goto 807
359 if(suffixused(ll-1:ll).eq.
'09')
goto 807
360 if(fname(3:5).eq.
'ete')
goto 807
364 write(99,908)fname(1:8),trim(suffixused)
376 *
'grdcontour ',a,
'.',a,
'.grd',
380 *
' -A- -O -K >> plot.ps')
413 *
'ps2raster plot.ps -Tj -P -A')
416 write(99,906)fname(2:8),trim(suffixused),trim(fn(ij))
417 906
format(
'mv plot.jpg c',a,
'.',a,
'.',a,
'.jpg')
435 *
'# -----------------------------------------------------',/,
436 *
'# color plots in ',a,1x,a,1x,a,1x,a,1x,
' Grid:',a /,
437 *
'# -----------------------------------------------------',/,
438 *
'echo ...color plots in ',a,1x,a,1x,a,1x,a,1x,
' Grid:',a)
subroutine coplot(ele, fname, bw, be, bs, bn, jm, b1, b2, maxplots, olddtm, newdtm, region, elecap, ij, cptlo, cpthi, cptin6, suffixused, igridsec, fn)
Subroutine to make GMT calls to do Color Raster Rendering of Gridded Data.
subroutine plotcoast(region, ifnum)
Subroutine to write GMT-based commands to create a shoreline Write GMT-based commands to create a sho...