NETCDF Read [message #89124] |
Fri, 25 July 2014 13:49  |
Gompie
Messages: 76 Registered: August 2012
|
Member |
|
|
Hi,
I have 100 netcdfiles that I wish to read in a loop. So I do the following.
OPTFILES=file_search('MARK*.nc')
a=read_netcdf_all(optfiles(0))
a= REPLICATE(A, n_elements(OPTFILES))
endlimit0=n_elements(OPTFILES) -1
for index = 0, endlimit0 Do Begin
a(index)=read_netcdf_all(optfiles(index))
endfor
END
But I get the error
Array dimensions must be greater than 0.
% Execution halted at: READ_NETCDF_ALL
Interestingly the optfiles array gets currupted.
When I try using read_netCDF function instead of read_netcdf_all I get a similar error message.
Any help.
Glan Plon
PS: These functions are here...
http://www.laketemp.net/~laketemp/home/dataF/read_netcdf_all .pro
http://download.hao.ucar.edu/pub/stans/timed/util/read_netcd f.pro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|