<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Ty,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Sorry about the delay. Most of the NCL team was out for a workshop last week.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The error is likely coming from nzlabs being equal to 1. You cannot call fspan with just 1 value, because fspan wants to return both the start *and* the end values, which requires that the third argument be at least 2.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">So, this won't work:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">x = fspan(0,5,1)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">but this will:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">x = fspan(0,5,2)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You need to check this code:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"> res@tmXBMode = "Explicit"</div><div class="gmail_default"> res@tmXBValues = fspan(0,xspan,nxlabs) ; Create the correct tick marks </div><div class="gmail_default"> res@tmXBLabels = sprintf("%.1f",fspan(xmin,xmax,nxlabs))</div><div class="gmail_default"><br></div><div class="gmail_default">and make sure that "nxlabs" is 2 or greater. If it's not, then you may need to check on the calculation for nxlabs.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 5, 2018 at 1:23 PM, Ty Buckingham <span dir="ltr"><<a href="mailto:ty.buckingham@manchester.ac.uk" target="_blank">ty.buckingham@manchester.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi there,
<div><br>
</div>
<div>I'm currently trying to plot a vertical cross section of a section of my WRF model output. When attempting to change the x-axis from number of grid-points to an associated longitude, I receive the following error:</div>
<div>
<div><br>
</div>
<div><br>
</div>
<div>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures">fatal:fspan: number of elements parameter is less-than-or-equal-to one, can't continue</span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures">fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 89 in file vertical_slice_test.ncl</span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<br>
</p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font size="2">It appears I can associate my Y-axis with the correct height in metres, but not the X-axis with longitude. Any help? </font></span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font size="2"><br>
</font></span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font size="2">Thanks</font></span></p><span class="HOEnZb"><font color="#888888">
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font size="2">Ty </font></span></p>
</font></span></div>
</div>
</div>
</div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>