<div dir="ltr"><div><div>Hello ... Please respond to ncl-talk and not directly to me.<br><br></div><div>Your script has:<br><br>    <b>f </b>     = addfile("<a href="http://precip.mon.total.v6.nc">precip.mon.total.v6.nc</a>","r")<br>    prc    =<b> f</b>->precip({tStrt:tLast},:,:)         ; whole grid <br><br></div><div>The error message is:<br><br>fatal: file (<b>f</b>) isn't defined<br><br></div><div>I am not sure what the problem would be. Someone else will have to respond.<br></div><div><br>---<br>What does the following yoeld? Likely the same error.<br><br>  <b>f </b>     = addfile("<a href="http://precip.mon.total.v6.nc">precip.mon.total.v6.nc</a>","r")<br></div><div>  print(<b>f</b>)<br></div><div><br>=====================================================<br></div>NOTE: <br>You do <b>not</b> have to load the following libraries from NCL 6.2.0 onward. So for 6.3.0, they are <b>automatically loaded.</b><br><br>load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br>load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<br><br></div>From 6.4.0, the following are automatically loaded:<br><br><pre>    "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
    "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
    "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
    "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
    "$NCARG_ROOT/lib/ncarg/nclscripts/csm/bootstrap.ncl"
    "$NCARG_ROOT/lib/ncarg/nclscripts/csm/extval.ncl"
    "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"</pre></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 29, 2017 at 9:27 AM, Setareh Rahimi <span dir="ltr"><<a href="mailto:setareh.rahimi@gmail.com" target="_blank">setareh.rahimi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">dear Dennis,</div><div dir="auto"><br></div><div dir="auto">Thank you for your advice, but  both data file and script are in the same directory. </div><div dir="auto"><br></div><div dir="auto">Regards,</div><div><div class="h5"><br><div class="gmail_quote"><div>On Tue 29 Aug 2017 at 19:12, Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div><div><div><div>By default, NCL always looks in the 'current directory'.<br>My guess is that the data file is not in the same directory as the NCL script.<br><br></div><div>dirp = "/some/path/to/file/"<br></div>filp   = "<a href="http://precip.mon.total.v6.nc" target="_blank">precip.mon.total.v6.nc</a>"<br><br></div>pthp = dirp + filp<br></div>f       = addfile(pthp, "r")<br><br></div>or<br><br></div>f = addfile(dirp + filp, "r")<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"></div></div><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 29, 2017 at 8:26 AM, Setareh Rahimi <span><<a href="mailto:setareh.rahimi@gmail.com" target="_blank">setareh.rahimi@gmail.com</a>></span> wrote:<br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><span style="font-size:12.8px">Dear all,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Once I put my NCL command line in NCL environment, it returns me an error.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"> Please have a look at the attached files, which contain a screenshot of the error and my script.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Please help me as soon as possible.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Best wishes,<div class="m_-4742645774607655313m_6155674948620778491m_8269151543085856917gmail-yj6qo m_-4742645774607655313m_6155674948620778491m_8269151543085856917gmail-ajU"><div id="m_-4742645774607655313m_6155674948620778491m_8269151543085856917gmail-:1x3" class="m_-4742645774607655313m_6155674948620778491m_8269151543085856917gmail-ajR"><img class="m_-4742645774607655313m_6155674948620778491m_8269151543085856917gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div></div><span class="m_-4742645774607655313m_6155674948620778491HOEnZb"><font color="#888888">-- <br><div class="m_-4742645774607655313m_6155674948620778491m_8269151543085856917gmail_signature">S.Rahimi<br><br></div>
</font></span></div>
<br></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div></div></div><span class="HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div class="m_-4742645774607655313gmail_signature" data-smartmail="gmail_signature">S.Rahimi<br><br></div>
</font></span></blockquote></div><br></div>