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
Re: NETCDF Read [message #89125 is a reply to message #89124] Fri, 25 July 2014 13:53 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Gompie writes:

> 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.

Put the program in debug mode. (Set the internal debug_mode variable to
1.) Recompile and re-run the program. Then tell us what happens.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[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: Fri Oct 10 09:40:19 PDT 2025

Total time taken to generate the page: 0.32014 seconds