[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #AES-723647]: Can't open HDF5 attribute



Hello,

The netCDF utilities are not guaranteed to be able to open hdf5 files, as not 
every feature implemented in libhdf5 is used/supported by the netCDF library.  
Similarly, h5dump is not guaranteed to be able to properly represent a netCDF4 
file; while it will be able to read it, netCDF offers features (such as shared 
dimensions) that are not supported natively by libhdf5.  The best bet will be 
to use the netCDF utilities to read netCDF files, and the hdf5 utilities to 
read generic hdf5 files.

I hope this helps!

-Ward

> Full Name: Ann Al-Jazrawi
> Email Address: address@hidden
> Organization: Telophase/NASA Goddard contractor
> Package Version: netcdf library version 4.3.3.1 of Jan 23 2018 14:00:52
> Operating System: CentOS 6
> Hardware:
> Description of problem: I cannot use ncdump on the attached HDF5 file (a cut 
> down test file).
> 
> Thanks!
> 
> $ h5dump SDS.h5
> HDF5 "SDS.h5" {
> GROUP "/" {
> ATTRIBUTE "attr1" {
> DATATYPE  H5T_STD_I32LE
> DATASPACE  SIMPLE { ( 1, 1 ) / ( 1, 1 ) }
> DATA {
> (0,0): 23
> }
> }
> DATASET "IntArray" {
> DATATYPE  H5T_STD_I32LE
> DATASPACE  SIMPLE { ( 5, 6 ) / ( 5, 6 ) }
> DATA {
> (0,0): 0, 1, 2, 3, 4, 5,
> (1,0): 1, 2, 3, 4, 5, 6,
> (2,0): 2, 3, 4, 5, 6, 7,
> (3,0): 3, 4, 5, 6, 7, 8,
> (4,0): 4, 5, 6, 7, 8, 9
> }
> }
> }
> }
> $ ncdump SDS.h5
> ncdump: SDS.h5: NetCDF: Can't open HDF5 attribute
> 
> 
> 


Ticket Details
===================
Ticket ID: AES-723647
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.