[ncl-talk] Error with irregular vertical levels
Mary Haley
haley at ucar.edu
Mon Dec 3 09:14:45 MST 2018
Dear Prashanth,
Setting gsnYAxisIrregular2Linear to True should have worked. Does the
error message tell you what line number it came from? There may be a
different issue in your plot. It would help if we could see your script and
the exact error message.
To see an example that uses this resource, look at axes_1.ncl at:
http://www.ncl.ucar.edu/Applications/axes.shtml#ex1
--Mary
On Sat, Dec 1, 2018 at 3:43 PM Prashanth Bhalachandran <
prashanth.bhalachandran at gmail.com> wrote:
> Dear NCL experts,
> I am writing to you because I have a problem regarding the depiction of my
> vertical levels in an R-Z plot. My height values are not uniformly
> distributed (35, 50, 100, 500, 1000, 2000, 5000 etc). And as a result of
> this, my R-Z plot shows up as:
>
>
> Now, I’d like to adjust my vertical levels such that they are evenly
> spaced. I tried to set the resource gsnYAxisIrregular2Linear to ‘True’,
> but I get the following error:
> Assignment type mismatch, right hand side can't be coerced to type of left
> hand side
>
> plot(0) = gsn_csm_contour(wks,Maz(time1,:,:),res)
>
> Variable: Maz (subsection)
> Type: float
> Total Size: 46956 bytes
> 11739 values
> Number of Dimensions: 2
> Dimensions and sizes: [Level | 39] x [301]
> Coordinates:
> Level: [35..20000]
> Number Of Attributes: 2
> average_op_ncl : dim_avg_n function was applied
> _FillValue : 1e+25
>
> Can you please tell me how to resolve this?
>
> Thank you,
> Prashanth
> _______________________________________________
> 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/20181203/db97c246/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Msurfaces_twopanels.jpeg
Type: image/jpeg
Size: 28945 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181203/db97c246/attachment.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Msurfaces_twopanels.jpeg
Type: image/jpeg
Size: 28945 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181203/db97c246/attachment-0001.jpeg>
More information about the ncl-talk
mailing list