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

Home » Public Forums » archive » IDL, netCDF-4, VLEN
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL, netCDF-4, VLEN [message #94200] Mon, 20 February 2017 07:42 Go to next message
lse25p is currently offline  lse25p
Messages: 1
Registered: February 2017
Junior Member
Hi there

I need to read a netCDF-4 file that contains variable length arrays (VLEN). I can find no mention of this in the IDL netCDF documentation. Can anyone confirm that it IDL does not implement readers for VLEN data?

NetCDF-4 files are valid HDF5 files. Can I read the netCDF-4 file using the HDF routines? If so can anyone give me an example of how I can do this?

Many thanks for any help or suggestions.

Craig
Re: IDL, netCDF-4, VLEN [message #94210 is a reply to message #94200] Wed, 22 February 2017 19:16 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 2/20/17 8:42 AM, lse25p@gmail.com wrote:
> Hi there
>
> I need to read a netCDF-4 file that contains variable length arrays
> (VLEN). I can find no mention of this in the IDL netCDF
> documentation. Can anyone confirm that it IDL does not implement
> readers for VLEN data?
>
> NetCDF-4 files are valid HDF5 files. Can I read the netCDF-4 file
> using the HDF routines? If so can anyone give me an example of how I
> can do this?
>
> Many thanks for any help or suggestions.
>
> Craig
>

I don't know about VLEN data in netCDF.

To start with reading using the HDF5 library, try H5_PARSE and
H5_GETDATA, i.e.:

IDL> d = h5_parse(file_which('ncgroup.nc'))
% Compiled module: FILE_WHICH.
% Loaded DLM: HDF5.
IDL> help, d
** Structure <17085a8>, 7 tags, length=3496, data length=3414, refs=1:
_NAME STRING
'/Applications/exelis/idl85/examples/data/ncgroup.nc'
_ICONTYPE STRING 'hdf'
_TYPE STRING 'GROUP'
_FILE STRING
'/Applications/exelis/idl85/examples/data/ncgroup.nc'
_PATH STRING '/'
_COMMENT STRING ''
SUBMARINE STRUCT -> <Anonymous> Array[1]

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Como converter uma rotina IDL em ferramenta na extensão .sav para usar no ENVI.
Next Topic: Xrange ignored in Errorplot, why?

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

Current Time: Wed Oct 08 07:14:10 PDT 2025

Total time taken to generate the page: 0.00400 seconds