[ncl-talk] Hovmueller Y-axis

Vanúcia Schumacher vanucia-schumacher at hotmail.com
Sun Nov 25 14:46:25 MST 2018


Hi NCL's users,

I'm trying to plot a hovmueller, which I select the values of the Y-axis as explicit, but it is not working.
When I comment the lines to the explicit axis, the values appear, but not in the order of the data, from highest to lowest (see attached figure). I wanted the axis values to be from 1000 to 100, from bottom to top.

Could anyone help me with what is missing on this exemple?

Thanks

Follow the script and summary of the variable:

...
f1         = addfile("omega.nc", "r")
var1     = f1->OMEGA(0,:,:,:)
var       = lonPivot(var1, 180)
AvgLat = dim_avg_n_Wrap( var, 1 )

res at tmYLMode      = "Explicit"
res at tmYLValues    = (/ 0.,1.,2.,3.,4.,5.,6.,7.,8.,9./)
res at tmYLLabels    = (/"1000","900","800","700","600","500","400","300","200","100"/)

plot = gsn_csm_hov(wks, AvgLat(:,{-120:-15}), res)

Variable: var
Type: float
Total Size: 327680 bytes
            81920 values
Number of Dimensions: 3
Dimensions and sizes: [lev | 10] x [lat | 64] x [lon | 128]
Coordinates:
            lev: [992.528..99.0432]
            lat: [-87.8638..87.8638]
            lon: [-180..177.1875]
Number Of Attributes: 7
  time :    0
  time_op : average
  missing_value : 1e+36
  _FillValue : 1e+36
  units : PA/S
  long_name : Vertical velocity (pressure)
  lonPivot : reordered via lonPivot [NCL]: pivotLon=180

Variable: AvgLat
Type: float
Total Size: 5120 bytes
            1280 values
Number of Dimensions: 2
Dimensions and sizes: [lev | 10] x [lon | 128]
Coordinates:
            lev: [992.528..99.0432]
            lon: [-180..177.1875]
Number Of Attributes: 8
  _FillValue : 1e+36
  time :    0
  time_op : average
  units : PA/S
  long_name : Vertical velocity (pressure)
  lonPivot : reordered via lonPivot [NCL]: pivotLon=180
  missing_value : 1e+36
  average_op_ncl : dim_avg_n over dimension(s): lat

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181125/7f0afbe4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hov.year-clim.png
Type: image/png
Size: 147366 bytes
Desc: hov.year-clim.png
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181125/7f0afbe4/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hov.year-clim.png
Type: image/png
Size: 156850 bytes
Desc: hov.year-clim.png
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181125/7f0afbe4/attachment-0003.png>


More information about the ncl-talk mailing list