Expand description
Map HDF5 datatypes to NetCDF-4 types.
HDF5 has a richer type system than NetCDF-4. This module maps the subset
of HDF5 types that are valid in NetCDF-4 to NcType:
| HDF5 Datatype | NcType |
|---|---|
| FixedPoint { size=1, signed } | Byte |
| FixedPoint { size=1, !signed} | UByte |
| FixedPoint { size=2, signed } | Short |
| FixedPoint { size=2, !signed} | UShort |
| FixedPoint { size=4, signed } | Int |
| FixedPoint { size=4, !signed} | UInt |
| FixedPoint { size=8, signed } | Int64 |
| FixedPoint { size=8, !signed} | UInt64 |
| FloatingPoint { size=4 } | Float |
| FloatingPoint { size=8 } | Double |
| String (any) | String |
| Enum { base=byte } | Byte* |
| Compound { .. } | Compound |
| Opaque { .. } | Opaque |
| Array { base, dims } | Array |
| VarLen { base=u8 } | String* |
| VarLen { base!=u8 } | VLen |
- Enums are mapped to their base integer type.
- NetCDF-4
NC_STRINGis stored as HDF5 variable-length bytes.
Functionsยง
- hdf5_
to_ nc_ type - Map an HDF5 datatype to a NetCDF type.