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

Home » Public Forums » archive » Re: NetCDF and empty variables
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 and empty variables [message #66129 is a reply to message #66128] Sun, 19 April 2009 16:08 Go to previous messageGo to previous message
Mark[1] is currently offline  Mark[1]
Messages: 66
Registered: February 2008
Member
On Apr 18, 7:34 am, renaud.dussur...@gmail.com wrote:
> Well, as I've said, it is much nastier than this.
> varid returned by NCDF_VARID is correct
> (the variable exists in the netcdf file and this
> is its ID). The return of NCDF_VARINQ also suppose
> that this variable should have 3 dimensions
> (as, I think,the creator of this file
> intended it...) But there is simply NO DATA
> within this variable, and there is no way
> to check this before trying to get the
> data from the file.

To the best of my knowledge the only way you can get an "empty"
variable in a netCDF file is for that variable to depend on the
unlimited dimension, and for the unilimited dimension to have 0
records. You can check for the ID of the unlimited dimension with
NCDF_INQUIRE and then determine its size with NCDF_DIMINQ. You can
determine the dimensions associated with each variable with
NCDF_VARINQ. And you can use the ncdump utility (outside IDL) to give
you a user-friendly listing of the file structure and contents.

Yes, it's a pity IDL doesn't support empty arrays, isn't it?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Computing needs, here's free root account on Solaris10
Next Topic: DEM Volume (voxel_proj)

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

Current Time: Sat Oct 11 09:31:10 PDT 2025

Total time taken to generate the page: 0.55444 seconds