[gradsusr] cannot change yinterval of hovmoller plot
Lyndz
olagueralyndonmark429 at gmail.com
Fri Jan 26 09:40:31 EST 2018
Dear GrADS experts,
I am trying to modify the interval of the y-axis in the attached
time-longitude plot.
[1] I tried to change the 'set ylint' line in my script but *the label
interval does not change*. The current interval remains at 5 even if I
change the ylint to say, 10.
[2] Is there a way to increase the number of tick marks on the y-axis?
I'll appreciate any suggestion on how to do this correctly.
Here's the script:
'sdfopen bpass_aug9_sep7_30-60filt_1994-2008.nc'
'set display color white'
'c'
'set mpdset hires'
'set grid on'
'set grads off'
'set parea 1.5 8 2 10.5'
'set font 1'
'set xlopts 1 5 0.2'
'set xlint 10'
*'set ylint 10'*
'set ylopts 1 5 0.2'
'set lon 100 180'
'set gxout shaded'
'set tlsupp year'
'set t 1 84'
'define var=ave(xbpf,lat=10,lat=20)'
'color -10 10 1 -kind
mediumblue->royalblue->cornflowerblue->white->khaki->orange->red'
'set y 1'
'd var'
'xcbar 1.5 8 1 1.25 -line on -fs 2 -fh 0.18 -fw 0.18'
**********************************************************
*Overlay contours
**********************************************************
'set gxout contour'
'set ccolor 1'
'set cint 1'
'set clab forced'
'd var'
*'set line 4 1 1'
*'draw line 1 10 5 5'
'printim hov_plot.png'
'quit'
Here's the detail of the file:
netcdf bpass_aug9_sep7_30-60filt_1994-2008 {
dimensions:
lon = 144 ;
lat = 73 ;
time = UNLIMITED ; // (92 currently)
variables:
float lon(lon) ;
lon:standard_name = "longitude" ;
lon:long_name = "longitude" ;
lon:units = "degrees_east" ;
lon:axis = "X" ;
float lat(lat) ;
lat:standard_name = "latitude" ;
lat:long_name = "latitude" ;
lat:units = "degrees_north" ;
lat:axis = "Y" ;
double time(time) ;
time:standard_name = "time" ;
time:long_name = "Time" ;
time:units = "hours since 1800-1-1 00:00:00" ;
time:calendar = "standard" ;
time:axis = "T" ;
float xBPF(time, lat, lon) ;
xBPF:long_name = "Lanczos Bpassfilt" ;
xBPF:units = "W m-2" ;
xBPF:_FillValue = 32766.f ;
xBPF:missing_value = 32766.f ;
xBPF:wgt_runave_op_ncl = "wgt_runave_n" ;
Sincerely,
*Lyndon Mark P. Olaguera*
PhD Student
Laboratory of Climatology
Department of Geography
Faculty of Urban Environmental Science
Minami-Osawa Campus
Tokyo Metropolitan University
Hachioji Tokyo, Japan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180126/8ea5305f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hov_plot.png
Type: image/png
Size: 238979 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180126/8ea5305f/attachment-0001.png>
More information about the gradsusr
mailing list