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

Home » Public Forums » archive » 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 #66202 is a reply to message #66142] Tue, 21 April 2009 20:48 Go to previous messageGo to previous message
Mark[1] is currently offline  Mark[1]
Messages: 66
Registered: February 2008
Member
On Apr 22, 6:38 am, David Fanning <n...@dfanning.com> wrote:
> renaud.dussur...@gmail.com writes:
>> I've posted the a link to the original file on the other post:
>
>> ftp://ftp.ifremer.fr/ifremer/argo/dac/coriolis/69003/69003_p rof.nc
>
> Pretty weird. NONE of the HISTORY_* variables were
> populated in this file. I've modified my nCDF_Browser
> routine to handle this strange state of affairs.
> Download this new file:
>
>   http://www.dfanning.com/programs/ncdf_data__define.pro
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

First, please accept apologies for starting a new thread (I don't know
how that happened) and for not reading the other thread thoroughly
enough to see that the file had already been posted.

That said, there's nothing weird about this file except that it has an
unlimited dimension (N_HISTORY) with size zero. And that's not really
very weird at all.

The ncdump utility shows this:

$ ncdump -v HISTORY_PARAMETER 69003_prof.nc
netcdf \69003_prof {
dimensions:
DATE_TIME = 14 ;
STRING256 = 256 ;
STRING64 = 64 ;
STRING32 = 32 ;
STRING16 = 16 ;
STRING8 = 8 ;
STRING4 = 4 ;
STRING2 = 2 ;
N_PROF = 16 ;
N_PARAM = 2 ;
N_LEVELS = 94 ;
N_CALIB = 1 ;
N_HISTORY = UNLIMITED ; // (0 currently)
variables:
...etc

and so does IDL

IDL> id = ncdf_open('C:\Temp\69003_prof.nc')
IDL> inq = ncdf_inquire(id)
IDL> ncdf_diminq, id, inq.recdim, name, size
IDL> print, name, size
N_HISTORY 0
IDL> ncdf_close, id

And this is what I said in the first post of the current thread.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: VISualize 2009 summary
Next Topic: image correlation

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

Current Time: Thu Oct 09 23:20:19 PDT 2025

Total time taken to generate the page: 0.16099 seconds