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

Home » Public Forums » archive » Reading part of a netcdf file?
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: Reading part of a netcdf file? [message #86018 is a reply to message #86017] Tue, 24 September 2013 09:11 Go to previous messageGo to previous message
rjp23 is currently offline  rjp23
Messages: 97
Registered: June 2010
Member
On Tuesday, September 24, 2013 5:06:53 PM UTC+1, David Fanning wrote:
> rjp23@le.ac.uk writes:
>
>
>
>> I have a very large (22GB) netcdf file and I was hoping there was some way to read part of it at a time into IDL but I can't figure out how.
>
>>
>
>> For example, I have this variable:
>
>>
>
>> Var FLOAT = Array[144, 72, 17, 32161]
>
>>
>
>> The 4th dimension is time, i.e. the are 32161 timesteps.
>
>>
>
>> Is it possible to read only the first X in one go, then read the next X, etc meaning that less is stored in memory at once?
>
>
>
> You might find the tools I have developed to browse, read, and write
>
> netCDF files helpful:
>
>
>
> http://www.idlcoyote.com/fileio_tips/ncdf_browser.html
>
>
>
> 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.")

Hi David,

Do you mean in reference to copying part of the file into another file or for just reading part of the file?

It looks like both might be possible once I get my head around your code...?

Cheers

Rob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reading large files with restore
Next Topic: temporary() problem

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

Current Time: Fri Oct 10 14:52:17 PDT 2025

Total time taken to generate the page: 1.44022 seconds