Create a SpacePy datamodel representation of an HDF5 file or netCDF4 file which is HDF5 compliant
Parameters: | file : string
|
---|---|
Returns: | out : spacepy.datamodel.SpaceData
|
Notes
This function is expected to work with any HDF5-compliant files, including netCDF4 (not netCDF3) and MatLab save files from v7.3 or later, but some datatypes are not supported, e.g., non-string vlen datatypes, and will raise a warning.
Examples
>>> import spacepy.datamodel as dm
>>> data = dm.fromHDF5('test.hdf')