Bug? Labels for x & y-axis not drawn in GrADS 2.0 but in 1.9

Stefan Gofferje gradsusers at GOFFERJE.HOMELINUX.ORG
Fri Mar 21 16:09:08 EDT 2008


Hei,

with the following script, I get axis labels when using GrADS 1.9 but
when using 2.0a1, I get no.

This is weird...

Greetings from Finland,
Stefan Gofferje

----

'run sg_rainbow.gs'
'set background 99'
'set line 98'
'set annot 98'
'set map 98'
'set xlopts 98'
'set ylopts 98'

fileurl=subwrd(arg,1)
'open 'fileurl

'set parea 0.00 9.5 1.5 8.5'
'set t 1 61'
drawtemp(60.2331,20.257,"Aland")
'printim test2.png x800 y600'
**************************************************************************

function drawtemp(lat,lon,city)
'set lon 'lon
'set lat 'lat
'clear'
'set grads off'
'set gxout line'
'set vrange -35 40'
'set ylint 5'
'set xlpos 0 b'
'set ylpos 0 r'
'set ccolor 4'
'd tmp2m-273.16'
'set ccolor 2'
'd 13.12+(0.6215*(tmp2m-273.16))-(11.37*
pow((sqrt(pow(ugrd10m,2)*pow(vgrd10m,2))*3.6),0.16))+(0.3965*(tmp2m-273.16)*pow((sqrt(pow(ugrd10m,2)*pow(vgrd10m,2))*3.6),0.16))'
printstamp(runtime,'[TEST] 'city' - 7 days temperature forecast','0')
return

function printstamp(runtime,title,barleg)
  'set line 0 1 6'
  'draw rec 0.02 0.02 10.99 8.49'
  'query time'
  timevalid=subwrd(result,3)
  copyright='Chart (C) www.saakeskus.fi'
  datastamp='Data: NOAA GFS model, run: 'runtime
  'set strsiz 0.12 0.13'
  'set string 98 l 0 0'
  'set strsiz 0.14 0.16'
  'draw string 0.10 0.80 'title
  'set strsiz 0.12 0.13'
  'draw string 0.10 0.25 'datastamp
  if (barleg != '0')
    'set string 98 r 0'
    'draw string 10.1 4.75 'barleg
    'draw rec 0.02 0.02 9.48 1.00'
    'draw string 9.35 0.80 Valid: 'timevalid
  else
    'draw rec 0.02 0.02 9.5 1.00'
    'draw rec 0.02 1 9.5 1.50'
    'set strsiz 0.18 0.17'
    'set string 0 tl 0 90'
    'set line 4'
    'draw recf 10.125 1.5 10.375 1.75'
    'draw string 10.15 1.95 Temperature 2m above ground (`ao`0`nC)'
    'set line 2'
    'draw recf 10.5 1.5 10.75 1.75'
    'draw string 10.525 1.95 Windchill temperature (`ao`0`nC)'
    'set line 0'
    'set strsiz 0.12 0.13'
  endif
  'set string 98 r 0 0'
  'draw string 9.35 0.25 'copyright
return



More information about the gradsusr mailing list