[ncl-talk] Error with irregular vertical levels

Prashanth Bhalachandran prashanth.bhalachandran at gmail.com
Sat Dec 1 15:43:45 MST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181201/d4d62995/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/20181201/d4d62995/attachment.jpeg>


More information about the ncl-talk mailing list