<div dir="ltr">So what is the problem? , I do know there is no problem whit the file. <div><br></div><div>May I ask you please run the script and check if that works correctly?<div><br></div><div>Regards,</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 30, 2017 at 5:59 PM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I have both v6 and v7 from:<br> <a href="https://www.esrl.noaa.gov/psd/data/gridded/data.gpcc.html" target="_blank">https://www.esrl.noaa.gov/psd/<wbr>data/gridded/data.gpcc.html</a><br><br></div>%> cd DATA/PRECIP/GPCC<div>%> ls -l precip.mon.total.v[6-7].nc<br><br>-rw-r--r-- 1 shea cgdcas 1368593336 2014 <a href="http://precip.mon.total.v6.nc" target="_blank">precip.mon.total.v6.nc</a><br>-rw-r--r-- 1 shea cgdcas 348532141 2017 <a href="http://precip.mon.total.v7.nc" target="_blank">precip.mon.total.v7.nc</a><br><br></div><div>See the above URL for descriptions.<br></div><div>===<br><br></div><div>%> ncl_filedump <a href="http://precip.mon.total.v6.nc" target="_blank">precip.mon.total.v6.nc</a><br><br></div><div>and<br><br>%> ncl_filedump <a href="http://precip.mon.total.v7.nc" target="_blank">precip.mon.total.v7.nc</a><br><br></div><div>both work fine.<br><br>====<br></div><div>I thought that you have a permissions problem.<br></div><div>However, if Matlab reads the file and NCL does not then that is not the case.<br></div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 30, 2017 at 3:29 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 dir="ltr">It dose exist as precip, I also checked this in Matlab and foud out it is as precip( see attached files please), I have done with this file some plots before, it worked about a few months ago, but wonder what happened currently?!!!! <div><br></div><div>Thank you<br></div></div><div class="gmail_extra"><div><div class="m_-4390773286859853606h5"><br><div class="gmail_quote">On Wed, Aug 30, 2017 at 1:18 PM, Krishnamoorthy Chandramouli <span dir="ltr"><<a href="mailto:chandrakrishna.90@gmail.com" target="_blank">chandrakrishna.90@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 dir="ltr"><div><div>Try checking if the variable actually exist as precip in the nc file<br></div>ncdump -v precip [your-nc-file]<br></div><div><br></div><div>Also if possible share the file, so that someone will try and help.</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><b>Regards,</b><br></div><i>Krishnamoorthy Chandramouli</i><br></div></div></div><div><div class="m_-4390773286859853606m_2597295351517807437h5">
<br><div class="gmail_quote">On Wed, Aug 30, 2017 at 3:39 PM, 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 dir="ltr">Dear all,<div><br></div><div>Please have a look at the attached file, which is a screenshot of ncl_filedump command .</div><div><br></div><div>what is your idea? </div><div><br></div><div>Best wishes,</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 30, 2017 at 2:24 AM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">As another test, please see if you can look at the file using "ncl_filedump" from the UNIX command line. But, first make sure you have the file correctly spelled:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">ls <a href="http://precip.mon.total.v6.nc" target="_blank">precip.mon.total.v6.nc</a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">then:</div><div class="gmail_default" style="font-size:small"><br></div>ncl_filedump <a href="http://precip.mon.total.v6.nc" target="_blank">precip.mon.total.v6.nc</a><div><br></div><div><div class="gmail_default" style="font-size:small">This is the same thing as the 2-line script that Dennis asked you to try. If this works, then you can also verify at the same time if "precip" is a variable in that file.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you get any errors from the ncl_filedump command, respond back to ncl-talk with all of the error messages included.</div><span class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344HOEnZb"><font color="#888888"><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><br></font></span></div></div><div class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344HOEnZb"><div class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 29, 2017 at 11:45 AM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">precip.mon.total.v6.n<wbr>c</a>","r")<br> prc =<b> f</b>->precip({tStrt:tLast},:,:) <wbr> ; 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" target="_blank">precip.mon.total.v6.n<wbr>c</a>","r")<br></div><div> print(<b>f</b>)<br></div><div><br>==============================<wbr>=======================<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/ncl<wbr>scripts/csm/gsn_code.ncl"<br>load"$NCARG_ROOT/lib/ncarg/ncl<wbr>scripts/csm/gsn_csm.ncl"<br>load"$NCARG_ROOT/lib/ncarg/ncl<wbr>scripts/csm/contributed.ncl"<br><br></div>From 6.4.0, the following are automatically loaded:<br><br><pre> "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_code.ncl"
"$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_csm.ncl"
"$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/contributed.ncl"
"$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/shea_util.ncl"
"$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/bootstrap.ncl"
"$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/extval.ncl"
"$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/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="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344m_-4262818475712755262h5"><div><div class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344m_-4262818475712755262m_-7350975473689884046h5"><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_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344m_-4262818475712755262m_-7350975473689884046m_-4742645774607655313m_6155674948620778491m_8269151543085856917gmail-yj6qo m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344m_-4262818475712755262m_-7350975473689884046m_-4742645774607655313m_6155674948620778491m_8269151543085856917gmail-ajU"><div id="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344m_-4262818475712755262m_-7350975473689884046m_-4742645774607655313m_6155674948620778491m_8269151543085856917gmail-:1x3" class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344m_-4262818475712755262m_-7350975473689884046m_-4742645774607655313m_6155674948620778491m_8269151543085856917gmail-ajR"><img class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344m_-4262818475712755262m_-7350975473689884046m_-4742645774607655313m_6155674948620778491m_8269151543085856917gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div></div><span class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344m_-4262818475712755262m_-7350975473689884046m_-4742645774607655313m_6155674948620778491HOEnZb"><font color="#888888">-- <br><div class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344m_-4262818475712755262m_-7350975473689884046m_-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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><span class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422HOEnZb"><font color="#888888"><br></font></span></div><span class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422HOEnZb"><font color="#888888">
</font></span></blockquote></div></div></div></div></div></div><span class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422HOEnZb"><font color="#888888"><span class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344m_-4262818475712755262HOEnZb"><font color="#888888"><span class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344m_-4262818475712755262m_-7350975473689884046HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344m_-4262818475712755262m_-7350975473689884046m_-4742645774607655313gmail_signature" data-smartmail="gmail_signature">S.Rahimi<br><br></div>
</font></span></font></span></font></span></blockquote></div><span class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422HOEnZb"><font color="#888888"><br></font></span></div><span class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422HOEnZb"><font color="#888888">
<br>______________________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></font></span></blockquote></div><span class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422HOEnZb"><font color="#888888"><br></font></span></div><span class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422HOEnZb"><font color="#888888">
</font></span></div></div></blockquote></div><span class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-4390773286859853606m_2597295351517807437m_8479380407636172422m_7046706867288907992m_329860026786350344gmail_signature" data-smartmail="gmail_signature">S.Rahimi<br><br></div>
</font></span></div></div>
<br>______________________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="m_-4390773286859853606HOEnZb"><font color="#888888">-- <br><div class="m_-4390773286859853606m_2597295351517807437gmail_signature" data-smartmail="gmail_signature">S.Rahimi<br><br></div>
</font></span></div>
<br>______________________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">S.Rahimi<br><br></div>
</div>