comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » NETCDF Read
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
NETCDF Read [message #89124] Fri, 25 July 2014 13:49 Go to previous message
Gompie is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Axis units outside the page boundary when using PS_star
Next Topic: Deleting rows in a matrix

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:31:15 PDT 2025

Total time taken to generate the page: 0.00379 seconds