<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear NCL experts, <div class="">Can someone please help me with this? </div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="">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 class=""> <span id="cid:B9631AEA-7384-40A9-9A33-66E1D1B6E4E4@hsd1.in.comcast.net."><Msurfaces_twopanels.jpeg></span></div><div class=""><br class=""></div><div class="">Now, I’d like to adjust my vertical levels such that they are evenly spaced. I tried to set the resource <font size="3" class="">gsnYAxisIrregular2Linear to ‘True’, but I get the following error: </font></div><div class=""><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" 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 class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">plot(0) = gsn_csm_contour(wks,Maz(time1,:,:),res)</span></div></div></blockquote></div><div class=""><br class=""></div><div class="">I am having a problem with the <span style="font-size: medium;" class="">gsnYAxisIrregular2Linear function. The code runs perfectly fine except for this one option. I have attached my code and the error message. </span></div><div class=""><font size="3" class=""><br class=""></font></div><div class=""><font size="3" class="">Please advise. </font></div><div class=""><div class="">Error message: </div><div class=""><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">ncl -n -Q msurface.ncl </span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;"><span class="" style="font-variant-ligatures: no-common-ligatures;"></span><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Variable: Maz (subsection)</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Type: float</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Total Size: 46956 bytes</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">            11739 values</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Number of Dimensions: 2</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Dimensions and sizes:<span class="Apple-tab-span" style="white-space: pre;">   </span>[Level | 39] x [301]</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Coordinates: </span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">            Level: [35..20000]</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Number Of Attributes: 2</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">  average_op_ncl :<span class="Apple-tab-span" style="white-space: pre;">      </span>dim_avg_n function was applied</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">  _FillValue :<span class="Apple-tab-span" style="white-space: pre;">  </span>1e+25</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">fatal:["NclVar.c":1390]:Assignment type mismatch, right hand side can't be coerced to type of left hand side</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">fatal:["Execute.c":8640]:Execute: Error occurred at or near line 1066 in file /apps/cent7/ncl/6.4.0/lib/ncarg/nclscripts/csm/gsn_code.ncl</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;"><span class="" style="font-variant-ligatures: no-common-ligatures;"></span><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">fatal:["Execute.c":8640]:Execute: Error occurred at or near line 9485 in file /apps/cent7/ncl/6.4.0/lib/ncarg/nclscripts/csm/gsn_code.ncl</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;"><span class="" style="font-variant-ligatures: no-common-ligatures;"></span><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">fatal:["Execute.c":8640]:Execute: Error occurred at or near line 13393 in file /apps/cent7/ncl/6.4.0/lib/ncarg/nclscripts/csm/gsn_csm.ncl</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;"><span class="" style="font-variant-ligatures: no-common-ligatures;"></span><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">fatal:["Execute.c":8640]:Execute: Error occurred at or near line 81 in file msurface.ncl</span></div></div><div></div></div></body></html>