<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>You have:</div><div> res@gsnYAxisIrregular2Linear = <b>"True"</b></div><div><br></div><div>It should be</div><div> res@gsnYAxisIrregular2Linear = <b>True</b><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Jan 6, 2019 at 10:33 AM Prashanth Bhalachandran <<a href="mailto:prashanth.bhalachandran@gmail.com">prashanth.bhalachandran@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Dear NCL experts, <div>Can someone please help me with this? </div><div><br></div><div><blockquote type="cite"><div style="overflow-wrap: break-word;"><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> <span id="gmail-m_3451405191139725712cid:B9631AEA-7384-40A9-9A33-66E1D1B6E4E4@hsd1.in.comcast.net."><Msurfaces_twopanels.jpeg></span></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 size="3">gsnYAxisIrregular2Linear to ‘True’, but I get the following error: </font></div><div><div style="margin:0px;font-stretch:normal;line-height:normal"><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"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">plot(0) = gsn_csm_contour(wks,Maz(time1,:,:),res)</span></div></div></blockquote></div><div><br></div><div>I am having a problem with the <span style="font-size:medium">gsnYAxisIrregular2Linear function. The code runs perfectly fine except for this one option. I have attached my code and the error message. </span></div><div><font size="3"><br></font></div><div><font size="3">Please advise. </font></div><div><div>Error message: </div><div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">ncl -n -Q msurface.ncl </span></div><div style="margin:0px;font-stretch:normal;line-height:normal;min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><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="gmail-m_3451405191139725712Apple-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="gmail-m_3451405191139725712Apple-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="gmail-m_3451405191139725712Apple-tab-span" style="white-space:pre-wrap"> </span>1e+25</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span 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 style="margin:0px;font-stretch:normal;line-height:normal"><span 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 style="margin:0px;font-stretch:normal;line-height:normal;min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span 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 style="margin:0px;font-stretch:normal;line-height:normal;min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span 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 style="margin:0px;font-stretch:normal;line-height:normal;min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span 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></div><div style="overflow-wrap: break-word;"><div><div></div><div><br></div><div>Sincerely, </div><div>Prashanth</div><div><br></div><div><br><blockquote type="cite"><div>On Dec 1, 2018, at 5:43 PM, Prashanth Bhalachandran <<a href="mailto:prashanth.bhalachandran@gmail.com" target="_blank">prashanth.bhalachandran@gmail.com</a>> wrote:</div><br class="gmail-m_3451405191139725712Apple-interchange-newline"><div><div style="overflow-wrap: break-word;">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> <span id="gmail-m_3451405191139725712cid:B9631AEA-7384-40A9-9A33-66E1D1B6E4E4@hsd1.in.comcast.net."><Msurfaces_twopanels.jpeg></span></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 size="3" face="Times New Roman, serif">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="gmail-m_3451405191139725712Apple-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="gmail-m_3451405191139725712Apple-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="gmail-m_3451405191139725712Apple-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></div></blockquote></div><br></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>