<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Will,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I&#39;m to blame for the changes to ref_line_interp, and it&#39;s likely there&#39;s a bug you&#39;ve found that I need to fix.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Can you provide the script and data if possible? </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It looks like there may be a conflict between whatever Y array you are sending to gsn_csm_xy and the reference line (gsnYRefLine).  This doesn&#39;t make much sense to me, so a script and data would be really helpful.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Or, yes, you can try changing these three lines around line 206 in gsn_csm.ncl:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default">







<p class="gmail-p1">          xinterp(j,i+num_crosses+1) = x2d(j,i)</p><p class="gmail-p1">          yinterp(j,i+num_crosses)   = ref1d(j)</p><p class="gmail-p1">          yinterp(j,i+num_crosses+1) = y2d(j,i)</p><p class="gmail-p1" style="font-size:small"><span class="gmail-s1">to:</span></p><p class="gmail-p1">          xinterp(j,i+num_crosses+1) = (/x2d(j,i)/)</p><p class="gmail-p1" style="font-size:small"><span class="gmail-s1">          yinterp(j,i+num_crosses)   = (/ref1d(j)/)</span></p><p class="gmail-p1" style="font-size:small"><span class="gmail-s1">








</span></p><p class="gmail-p1" style="font-size:small"><span class="gmail-s1">          yinterp(j,i+num_crosses+1) = (/y2d(j,i)/)</span></p></div><div class="gmail_default" style="font-size:small">But, I would still like to know why there&#39;s a conflict so I can fix it more properly.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you can send script and data, then you can send this offline if you like.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 21, 2017 at 11:49 PM, Will Hobbs <span dir="ltr">&lt;<a href="mailto:will.hobbs@utas.edu.au" target="_blank">will.hobbs@utas.edu.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-4484623302360694523WordSection1">
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt">Hi Mary (and anyone else really)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt">I get the following warning message repeated many times over for a script I’m running, that plots an xy plot (gsn_csm_xy()) with aa 2-d y array:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">warning:VarVarWrite: rhs has no dimension name or coordinate variable, deleting name of lhs dimension number (0) and destroying coordinate var,  use &quot;(/../)&quot; if this is not desired outcome<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">warning:[&quot;Execute.c&quot;:8640]:<wbr>Execute: Error occurred at or near line 206 in file /usr/local/ncl-6.4.0/lib/<wbr>ncarg/nclscripts/csm/gsn_csm.<wbr>ncl<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt">I do NOT get the same message when I run the same script/data with v 6.3.0. For both versions, the plot comes out exactly as I expect, but the warning message is a bit irritating.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt">The error is related to a function in gsn_csm.ncl called ref_line_interp(), which the header for the function states was updated for v 6.4.0. I am trying to replicate the error with a simple test
 case (not the script with multiple input files that I found it in!) but can’t replicate it.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt">I ‘think’ this has something to do with multiple xy lines where there is a ref line, but some guidance on this would be valued.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt">Hopefully this can be resolved by adding (/../) to the appropriate line, but I don’t want to start messing with gsn_csm.ncl!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt">Will<u></u><u></u></span></p>
</div>
<p style="font-size:10pt;line-height:10pt;font-family:Calibri,sans-serif"><br>
<br>
University of Tasmania Electronic Communications Policy (December, 2014). <br>
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained
 in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
</p>
</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>