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 #66124] Mon, 20 April 2009 05:18 Go to previous message
renaud.dussurget is currently offline  renaud.dussurget
Messages: 8
Registered: April 2008
Junior Member
On 20 avr, 01:08, Mark <mark.h...@gmail.com> wrote:
> 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.

NCDF_INQUIRE and NCDF_DIMINQ just give what the properties of the
variable should be, and not what it really is in the file (i.e. no
data)
[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: Fri Oct 10 01:25:18 PDT 2025

Total time taken to generate the page: 0.39984 seconds