<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]:(/home/user/Documents/yr/tasmax/tasmax_NCC-NorESM1-M_historical_19510101-20051231.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>;***********************************************************************<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>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"<br><br>begin<br><br>;************************************************<br>; read in netCDF file<br>;************************************************<br> files = asciiread("/home/files_path.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/tasmax/tasmax_NCC-NorESM1-M_historical_19510101-20051231.nc <br>/home/user/Documents/yr/tasmax/tasmax_CNRM-CERFACS-CNRM-CM5_historical_19510101-20051231.nc</i><br><br></div>Thanks in advance <br><br clear="all"><div><div><div class="gmail_signature"><div dir="ltr"><div>Izidine Pinto<br><br><br><br><br></div></div></div></div>
</div></div>