[ncl-talk] ncl-talk Digest, Vol 180, Issue 39

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


Sorry, I managed to fix it.
I was forgetting to put the correct values in res @ tmYLValues

Thank you anyway, maybe my mistake will work for someone with the same question.
________________________________
De: ncl-talk <ncl-talk-bounces at ucar.edu> em nome de ncl-talk-request at ucar.edu <ncl-talk-request at ucar.edu>
Enviado: domingo, 25 de novembro de 2018 19:46
Para: ncl-talk at ucar.edu
Assunto: ncl-talk Digest, Vol 180, Issue 39

Send ncl-talk mailing list submissions to
        ncl-talk at ucar.edu

To subscribe or unsubscribe via the World Wide Web, visit
        http://mailman.ucar.edu/mailman/listinfo/ncl-talk
or, via email, send a message with subject or body 'help' to
        ncl-talk-request at ucar.edu

You can reach the person managing the list at
        ncl-talk-owner at ucar.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ncl-talk digest..."


Today's Topics:

   1. Hovmueller Y-axis (Van?cia Schumacher)


----------------------------------------------------------------------

Message: 1
Date: Sun, 25 Nov 2018 21:46:25 +0000
From: Van?cia Schumacher <vanucia-schumacher at hotmail.com>
To: "ncl-talk at ucar.edu" <ncl-talk at ucar.edu>
Subject: [ncl-talk] Hovmueller Y-axis
Message-ID:
        <CP2P215MB0275C4D20A1BDD7ED08E3A7D98D60 at CP2P215MB0275.LAMP215.PROD.OUTLOOK.COM>

Content-Type: text/plain; charset="iso-8859-1"

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.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.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-0001.png>

------------------------------

Subject: Digest Footer

_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk


------------------------------

End of ncl-talk Digest, Vol 180, Issue 39
*****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181125/4d06b8e8/attachment.html>


More information about the ncl-talk mailing list