The isce3::io namespace. More...
Classes | |
struct | float16 |
struct | n1bit |
struct | n2bit |
struct | findMeta |
class | IDataSet |
Our derived dataset structure that includes utility functions. More... | |
class | IGroup |
class | IH5File |
class | IH5Dataset |
IH5 interface to GDAL Dataset to allow read/write to HDF5 datasets from ISCE. More... | |
class | IH5RasterBand |
Raster band of an IH5 Dataset derived from GDALPamRasterBand. More... | |
class | Raster |
Data structure meant to handle Raster I/O operations. More... | |
Typedefs | |
typedef struct isce3::io::float16 | float16 |
typedef struct isce3::io::n1bit | n1bit |
typedef struct isce3::io::n2bit | n2bit |
Functions | |
CPLFree (pasGCPList) | |
H5::DataType | IH5GetNativeType (H5::DataType &intype) |
void | GDALRegister_IH5 () |
Function to register driver with GDAL. | |
template<typename H5obj > | |
bool | exists (H5obj &h5obj, const std::string &name, const std::string start=".", const std::string type="BOTH") |
Check existence of a dataset or group. More... | |
template<typename H5obj , typename T > | |
void | loadFromH5 (H5obj &h5obj, const std::string &datasetPath, T &v) |
Load scalar dataset from HDF5 file. More... | |
template<typename H5obj , typename T > | |
void | loadFromH5 (H5obj &h5obj, const std::string &datasetPath, std::vector< T > &v) |
Load vector dataset from HDF5 file. More... | |
template<typename H5obj , typename T > | |
void | loadFromH5 (H5obj &h5obj, const std::string &datasetPath, std::valarray< T > &v) |
Load valarray dataset from HDF5 file. More... | |
template<typename H5obj , typename T > | |
void | loadFromH5 (H5obj &h5obj, const std::string &datasetPath, isce3::core::Matrix< T > &m) |
Load Matrix dataset from HDF5 file. More... | |
template<typename H5obj , typename T > | |
void | saveToH5 (H5obj &h5obj, const std::string &datasetPath, const T &val, const std::string &units="") |
Write scalar dataset to HDF5 file. More... | |
template<typename H5obj , typename T > | |
void | saveToH5 (H5obj &h5obj, const std::string &datasetPath, const std::vector< T > &v, const std::string &units="") |
Write vector dataset to HDF5 file. More... | |
template<typename H5obj , typename T > | |
void | saveToH5 (H5obj &h5obj, const std::string &datasetPath, const std::valarray< T > &v, const std::string &units="") |
Write valarray dataset to HDF5 file. More... | |
template<typename H5obj , typename T , size_t S> | |
void | saveToH5 (H5obj &h5obj, const std::string &datasetPath, const std::vector< T > &v, std::array< size_t, S > dims, const std::string &units="") |
Write vector dataset with dimensions to HDF5 file. More... | |
template<typename H5obj , typename T , size_t S> | |
void | saveToH5 (H5obj &h5obj, const std::string &datasetPath, const std::valarray< T > &v, std::array< size_t, S > dims, const std::string &units="") |
Write valarray dataset with dimensions to HDF5 file. More... | |
template<typename H5obj , typename T > | |
void | saveToH5 (H5obj &h5obj, const std::string &datasetPath, const isce3::core::Matrix< T > &mat, const std::string &units="") |
Write Matrix dataset to HDF5 file. More... | |
template<typename H5obj > | |
std::vector< int > | getImageDims (H5obj &h5obj, const std::string &datasetPath) |
Get dimensions of complex imagery from HDF5 file. More... | |
template<typename H5obj > | |
isce3::core::DateTime | getRefEpoch (H5obj &h5obj, const std::string &datasetPath) |
Parse time units in a dataset attribute to get a reference epoch. More... | |
template<typename H5obj > | |
void | setRefEpoch (H5obj &h5obj, const std::string &datasetPath, const isce3::core::DateTime &refEpoch) |
Save reference epoch DateTime as an attribute. More... | |
Variables | |
const std::string | defaultGDALDriver = "VRT" |
Default GDAL driver used by Raster for creation. | |
const GDALDataType | defaultGDALDataType = GDT_Float32 |
Default GDAL data type used by Raster for creation. | |
template<typename T > | |
auto | asGDT = gdal::detail::Type2GDALDataType<T>::datatype |
const hsize_t | chunkSizeX = 128 |
const hsize_t | chunkSizeY = 128 |
const int | STRLENGTH = 50 |
return | pszProjection |
return | CE_None |
pszGCPProjection = CPLStrdup("") | |
nGCPCount = nNewCount | |
pasGCPList = GDALDuplicateGCPs( nGCPCount, pasNewGCPList ) | |
The isce3::io namespace.
|
inline |
Check existence of a dataset or group.
[in] | h5obj | HDF5 file or group object. |
[in] | name | H5 path of dataset relative to h5obj. |
[in] | start | Relative path from current group/file to start search from. |
[in] | type | Type of object to search for. Default: BOTH |
|
inline |
Get dimensions of complex imagery from HDF5 file.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of image dataset relative to h5obj. |
|
inline |
Parse time units in a dataset attribute to get a reference epoch.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of dataset relative to h5obj. |
[out] | epoch | isce3::core::DateTime of reference epoch. |
|
inline |
Load scalar dataset from HDF5 file.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of dataset relative to h5obj. |
[in] | v | Scalar return value. |
|
inline |
Load vector dataset from HDF5 file.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of dataset relative to h5obj. |
[in] | v | Vector to store dataset. |
|
inline |
Load valarray dataset from HDF5 file.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of dataset relative to h5obj. |
[in] | v | Valarray to store dataset. |
|
inline |
Load Matrix dataset from HDF5 file.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of dataset relative to h5obj. |
[in] | m | Matrix to store dataset. |
|
inline |
Write scalar dataset to HDF5 file.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of dataset relative to h5obj. |
[in] | val | Value to write |
[in] | units | Units of dataset. |
|
inline |
Write vector dataset to HDF5 file.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of dataset relative to h5obj. |
[in] | v | Vector to write. |
[in] | units | Units of dataset. |
|
inline |
Write valarray dataset to HDF5 file.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of dataset relative to h5obj. |
[in] | v | Valarray to write. |
[in] | units | Units of dataset. |
|
inline |
Write vector dataset with dimensions to HDF5 file.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of dataset relative to h5obj. |
[in] | v | Vector to write. |
[in] | units | Units of dataset. |
|
inline |
Write valarray dataset with dimensions to HDF5 file.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of dataset relative to h5obj. |
[in] | v | Valarray to write. |
[in] | units | Units of dataset. |
|
inline |
Write Matrix dataset to HDF5 file.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of dataset relative to h5obj. |
[in] | mat | Matrix to write. |
[in] | units | Units of dataset. |
|
inline |
Save reference epoch DateTime as an attribute.
[in] | h5obj | HDF5 file or group object. |
[in] | datasetPath | H5 path of dataset relative to h5obj. |
[in] | epoch | isce3::core::DateTime of reference epoch. |
isce3::io::pszProjection |