<div dir="ltr"><div><div>Hi,<br><br></div>It sounds like that one file in particular, <span style="font-variant-ligatures:no-common-ligatures">"<a href="http://pre_199501_mondat.nc" target="_blank">pre_199501_mondat.nc</a>", is corrupt. I note that it is not the same file as the single file instance that you cited, and I *think* NCL would have ingested all the files from 1901 up to the 199501 before throwing the error. Are you able to open the file with the ncl_filedump command, or any of the NCO/CDO operators? If you want to send it to our ftp site, I'll take a look at it (instructions below).<br><br></span></div><span style="font-variant-ligatures:no-common-ligatures">Rick<br></span><div><span style="font-variant-ligatures:no-common-ligatures"><br></span><br><b>You can ftp larger datasets and files to:</b>
<p>
</p><pre>ftp <a href="http://ftp.cgd.ucar.edu">ftp.cgd.ucar.edu</a>
anonymous
<use your email address for the password>
cd incoming
put ...
put ...
.
.
.
quit
</pre>
<p>
<font color="red">Note that for security reasons, you cannot list the
contents of this directory, and neither can we. We need to know
the <i>exact</i> names of the files in order to retrieve them.</font>
</p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 1, 2017 at 7:40 AM, Dawit Abebe <span dir="ltr"><<a href="mailto:dawit.kan@gmail.com" target="_blank">dawit.kan@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 style="word-wrap:break-word">Dear NCL users,<div><br></div><div>I’m having a challenge to add multiple files to NCL. I’m intending to work on monthly files ranging from 1901 - 2014. I tried the command below but failed. </div><div><br></div><div><font color="#0433ff">Command used</font></div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><span class="m_-6484431340853010663Apple-tab-span" style="white-space:pre-wrap">        </span>diri = "./" </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">ncl 29> files = systemfunc("ls *.nc") </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">ncl 30> f = addfiles(diri+files, "r")</span></p></div><div><br></div><div><font color="#0433ff">Return message for all files</font></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">warning:_NclOpenFile: Can not open file <<a href="http://pre_199501_mondat.nc" target="_blank">pre_199501_mondat.nc</a>>; file format not supported or file is corrupted</span></p><div><br></div><div><br></div><div><font color="#0433ff">The command and return for single file seems working as showed bellow</font>: </div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">ncl 10> diri = "./"</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">ncl 11> fili = "<a href="http://pre_201412_mondat.nc" target="_blank">pre_201412_mondat.nc</a>" </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">ncl 12> f = addfile(diri+fili, "r")</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">ncl 13> prc = f->pre </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">ncl 14> printVarSummary(prc)</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Variable: prc</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Type: double</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Total Size: 288 bytes</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> 36 values</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 3</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="m_-6484431340853010663Apple-tab-span" style="white-space:pre-wrap">        </span>[time | 1] x [lat | 4] x [lon | 9]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Coordinates: </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> time: [41987..41987]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> lat: [3.75..5.25]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> lon: [36.75..40.75]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Number Of Attributes: 5</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> correlation_decay_distance :<span class="m_-6484431340853010663Apple-tab-span" style="white-space:pre-wrap">        </span> 450</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> long_name :<span class="m_-6484431340853010663Apple-tab-span" style="white-space:pre-wrap">        </span>precipitation</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> units :<span class="m_-6484431340853010663Apple-tab-span" style="white-space:pre-wrap">        </span>mm/month</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> missing_value :<span class="m_-6484431340853010663Apple-tab-span" style="white-space:pre-wrap">        </span>9.96920996839e+36</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> _FillValue :<span class="m_-6484431340853010663Apple-tab-span" style="white-space:pre-wrap">        </span>9.96920996839e+36</span></p><div><br></div></div><div><font color="#0433ff">Where is my problem?</font></div><div><font color="#0433ff"><br></font></div><div><font color="#0433ff">Thanks</font></div><span class="HOEnZb"><font color="#888888"><div><font color="#0433ff">Dawit</font></div></font></span></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>