[gradsusr] cannot change yinterval of hovmoller plot
Jeff Duda
jeffduda319 at gmail.com
Sat Jan 27 00:10:29 EST 2018
Lyndon,
I suspect this rule in the documentation for ylint explains your issue:
6. This command does not apply to a date/time axis.
With that in mind, also consider these questions:
1) What is the interval between time units in the data file? The units for
time say "hours since 1800-1-1 00:00:00" so if the interval is like 1 hour,
then changing the y-axis tick interval from 5 hours to 10 hours, for
example, is likely not going to change the locations of the tick marks much
nor their labels.
2) If (1) doesn't help, have you tried using 'set yaxis' instead?
Jeff Duda
On Fri, Jan 26, 2018 at 7:40 AM, Lyndz <olagueralyndonmark429 at gmail.com>
wrote:
> 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
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Jeff Duda, Research Scientist
University of Colorado Boulder
Cooperative Institute for Research in Environmental Sciences
NOAA/OAR/ESRL/Global Systems Division
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180126/02cd5c80/attachment-0001.html>
More information about the gradsusr
mailing list