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 #86019 is a reply to message #86018] Tue, 24 September 2013 09:31 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
rjp23@le.ac.uk writes:

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

Well, I have to confess, I've never looked at a 22.5 GByte netCDF file
before, but I suspect both are possible.

It *is* possible to read just a portion of a large data set from a
netCDF file. See the GetVarData method in the NDCF_File object. See the
COUNT, OFFSET, and STRIDE keywords. I can't advise sensibly without
knowing more about the data, but I think it is possible to do what you
want to do. You certainly don't want to read that data file all at once
into the variable "a". ;-)

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
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 10:16:10 PDT 2025

Total time taken to generate the page: 0.55789 seconds