<div dir="auto">Hey Barry, <div dir="auto">An easy way of doing it would be to encapsulate all the file operations into an IF statement which uses either the isfilevar (<a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/isfilevar.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/isfilevar.shtml</a>) function or the isfilepresent (<a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/isfilepresent.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/isfilepresent.shtml</a>) function to check the existence of either variable in a file or the file itself. You just have to put an OR so that the operations are skipped, but the script is not interrupted, if either the variable or the file are not found. </div><div dir="auto">Cheers </div></div><div class="gmail_extra"><br><div class="gmail_quote">Il 17 dic 2016 5:29 PM, &quot;Barry Lynn&quot; &lt;<a href="mailto:barry.h.lynn@gmail.com">barry.h.lynn@gmail.com</a>&gt; ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi:<div><br></div><div>I am downloading a lot of data and processing it, file by file.</div><div><br></div><div>It happens that sometimes a file is missing, or a even a variable within the file is missing.</div><div><br></div><div>How can I tell NCL to skip the read, instead of a returning an error and ending the program. </div><div><br></div><div>Basically, I want NCL to note errors, and bypass them, instead of terminating.</div><div><br></div><div>Barry<br clear="all"><div><br></div>-- <br><div class="m_4407414687066564818gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: <a href="tel:02%20930%209525" value="+39029309525" target="_blank">02 930 9525</a><br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US 914 432 3108<br></div></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></div>