<div dir="ltr">Dear Prashanth,<br><br>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. <br><br>To see an example that uses this resource, look at axes_1.ncl at:<br><br><a href="http://www.ncl.ucar.edu/Applications/axes.shtml#ex1">http://www.ncl.ucar.edu/Applications/axes.shtml#ex1</a><br><br>--Mary</div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 1, 2018 at 3:43 PM Prashanth Bhalachandran <<a href="mailto:prashanth.bhalachandran@gmail.com">prashanth.bhalachandran@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Dear NCL experts, <div>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:</div><div> <img id="m_-26899218388737703838A5D385F-C693-413F-A8C7-8C2A80479C26" src="cid:B9631AEA-7384-40A9-9A33-66E1D1B6E4E4@hsd1.in.comcast.net."></div><div><br></div><div>Now, I’d like to adjust my vertical levels such that they are evenly spaced. I tried to set the resource <font face="Times New Roman, serif" size="3">gsnYAxisIrregular2Linear to ‘True’, but I get the following error: </font></div><div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-variant-ligatures:no-common-ligatures">Assignment type mismatch, right hand side can't be coerced to type of left hand side</span></div></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-variant-ligatures:no-common-ligatures">plot(0) = gsn_csm_contour(wks,Maz(time1,:,:),res)</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-variant-ligatures:no-common-ligatures"><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">Variable: Maz (subsection)</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">Type: float</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">Total Size: 46956 bytes</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">            11739 values</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 2</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="m_-2689921838873770383Apple-tab-span" style="white-space:pre-wrap">  </span>[Level | 39] x [301]</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">Coordinates: </span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">            Level: [35..20000]</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">Number Of Attributes: 2</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">  average_op_ncl :<span class="m_-2689921838873770383Apple-tab-span" style="white-space:pre-wrap">     </span>dim_avg_n function was applied</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">  _FillValue :<span class="m_-2689921838873770383Apple-tab-span" style="white-space:pre-wrap">   </span>1e+25</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures">Can you please tell me how to resolve this? </span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures">Thank you, </span></div><div><span style="font-variant-ligatures:no-common-ligatures">Prashanth</span></div></span></div>













</div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>