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

Home » Public Forums » archive » Re: on reading NCDF files
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: on reading NCDF files [message #37672 is a reply to message #37669] Tue, 20 January 2004 01:35 Go to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <3ee6ff80.0401192300.534dc5b1@posting.google.com>, "Sangwoo"
<leesw@astro.snu.ac.kr> wrote:


> Hi everyone!<snip>...
> I wonder if there's any way to figure out
> all details of the included variables from an NCDF file directly.

NetCDF wouldn't be terribly useful if you needed to know what was in
there before using it :)

result=ncdf_inquire(cdfid)
; result is a struct containing the number of variables, dimensions and
attributes

var=ncdf_varinq(cdfid, varid)
;where 0 <= varid < result.nvars
;var is a struct containing the variable name, datatype, dimensions, etc.

ncdf_varget, cdfid, varid, data
;gets the data, as ever.

There's also NCDF_DIMINQ which does similar things for the dimensions in
the file.

Chris.
[Message index]
 
Read Message
Read Message
Previous Topic: Interpolation on a sphere
Next Topic: Another strsplit question

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

Current Time: Fri Oct 17 21:31:02 PDT 2025

Total time taken to generate the page: 0.00194 seconds