<div dir="ltr">It usually means that the program cannot identify the file listed.<div><br></div><div>You should check that your path length is correct. Also, sometimes the file needs an ".nc" at the end.</div><div><br></div><div>Barry</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 2, 2017 at 6:46 PM, Izidine Pinto <span dir="ltr"><<a href="mailto:izidinep@gmail.com" target="_blank">izidinep@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>Dear NCL users<br><br>I'm trying to read a bunch of netcdf files from a list using the script below. However I get the following error<br><br>fatal:["FileSupport.c":4159]:(<wbr>/home/user/Documents/yr/<wbr>tasmax/tasmax_NCC-NorESM1-M_<wbr>historical_19510101-20051231.<wbr>nc) has no file extension, can't determine type of file to open<br><br>It has worked before. Am I missing something obvious? <br>And I'm using NCAR Command Language Version 6.3.0<br> <br><br><i>;*****************************<wbr>******************************<wbr>************<br>load "$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_csm.ncl"<br>load "$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/contributed.<wbr>ncl"<br>load "$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/shea_util.ncl"<br><br>begin<br><br>;*****************************<wbr>*******************<br>; read in netCDF file<br>;*****************************<wbr>*******************<br> files = asciiread("/home/files_path.<wbr>txt",-1,"string") <br> print(files)<br> f1 = addfiles(files,"r")<br><br>end<br></i><br>The files_path.txt contains the path of the files such as <br><i><br>/home/user/Documents/yr/<wbr>tasmax/tasmax_NCC-NorESM1-M_<wbr>historical_19510101-20051231.<wbr>nc <br>/home/user/Documents/yr/<wbr>tasmax/tasmax_CNRM-CERFACS-<wbr>CNRM-CM5_historical_19510101-<wbr><a href="http://20051231.nc">20051231.nc</a></i><br><br></div>Thanks in advance <br><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div><div class="m_-3087751893350672393gmail_signature"><div dir="ltr"><div>Izidine Pinto<br><br><br><br><br></div></div></div></div>
</div></font></span></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><br clear="all"><div><br></div>-- <br><div class="gmail_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: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US 914 432 3108<br></div></div></div>
</div>