[ncl-talk] Hovmueller Y-axis
Mary Haley
haley at ucar.edu
Tue Nov 27 12:12:58 MST 2018
Vanúcia,
Try:
res at trYReverse = True ; reverse Y-axis
--Mary
On Sun, Nov 25, 2018 at 2:46 PM Vanúcia Schumacher <
vanucia-schumacher at hotmail.com> wrote:
> 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
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181127/e2d6d90c/attachment.html>
More information about the ncl-talk
mailing list