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

Home » Public Forums » archive » netCDF tools?
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 tools [message #75574 is a reply to message #19588] Thu, 31 March 2011 14:17 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 3/31/11 12:48 PM, Kenneth P. Bowman wrote:
> I have never had much use for a completely general-purpose
> routine that reads an entire file, because, among other things,
> the files are often larger than system memory. Adding the
> capability to read just parts of a file will make the program
> much more complex. At that point I find it easier to just
> write the code to get what I want.

I have a program that you can read just parts of a netCDF file, since
that is usually what I have to do. This works like:

IDL> im = tx_nc_getdata(sample_filename, '/image')

or even,

IDL> plot, tx_nc_getdata(sample_filename, '/image[*, 256]')

You can read attributes too:

title = tx_nc_getdata(sample_filename, '/image.TITLE')

I have a TX_NC_DUMP routine that prints a listing of the contents of a
file and a TX_NC_BROWSER that is like H5_BROWSER.

Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Bringing widgets to the front
Next Topic: v8: Little love for astronomers?

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

Current Time: Sun Nov 30 20:01:55 PST 2025

Total time taken to generate the page: 0.23899 seconds