isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Classes | Typedefs | Functions | Variables
isce3::io Namespace Reference

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 )
 

Detailed Description

The isce3::io namespace.

Function Documentation

template<typename H5obj >
bool isce3::io::exists ( H5obj &  h5obj,
const std::string &  name,
const std::string  start = ".",
const std::string  type = "BOTH" 
)
inline

Check existence of a dataset or group.

Parameters
[in]h5objHDF5 file or group object.
[in]nameH5 path of dataset relative to h5obj.
[in]startRelative path from current group/file to start search from.
[in]typeType of object to search for. Default: BOTH
template<typename H5obj >
std::vector<int> isce3::io::getImageDims ( H5obj &  h5obj,
const std::string &  datasetPath 
)
inline

Get dimensions of complex imagery from HDF5 file.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of image dataset relative to h5obj.
template<typename H5obj >
isce3::core::DateTime isce3::io::getRefEpoch ( H5obj &  h5obj,
const std::string &  datasetPath 
)
inline

Parse time units in a dataset attribute to get a reference epoch.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of dataset relative to h5obj.
[out]epochisce3::core::DateTime of reference epoch.
template<typename H5obj , typename T >
void isce3::io::loadFromH5 ( H5obj &  h5obj,
const std::string &  datasetPath,
T &  v 
)
inline

Load scalar dataset from HDF5 file.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of dataset relative to h5obj.
[in]vScalar return value.
template<typename H5obj , typename T >
void isce3::io::loadFromH5 ( H5obj &  h5obj,
const std::string &  datasetPath,
std::vector< T > &  v 
)
inline

Load vector dataset from HDF5 file.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of dataset relative to h5obj.
[in]vVector to store dataset.
template<typename H5obj , typename T >
void isce3::io::loadFromH5 ( H5obj &  h5obj,
const std::string &  datasetPath,
std::valarray< T > &  v 
)
inline

Load valarray dataset from HDF5 file.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of dataset relative to h5obj.
[in]vValarray to store dataset.
template<typename H5obj , typename T >
void isce3::io::loadFromH5 ( H5obj &  h5obj,
const std::string &  datasetPath,
isce3::core::Matrix< T > &  m 
)
inline

Load Matrix dataset from HDF5 file.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of dataset relative to h5obj.
[in]mMatrix to store dataset.
template<typename H5obj , typename T >
void isce3::io::saveToH5 ( H5obj &  h5obj,
const std::string &  datasetPath,
const T &  val,
const std::string &  units = "" 
)
inline

Write scalar dataset to HDF5 file.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of dataset relative to h5obj.
[in]valValue to write
[in]unitsUnits of dataset.
template<typename H5obj , typename T >
void isce3::io::saveToH5 ( H5obj &  h5obj,
const std::string &  datasetPath,
const std::vector< T > &  v,
const std::string &  units = "" 
)
inline

Write vector dataset to HDF5 file.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of dataset relative to h5obj.
[in]vVector to write.
[in]unitsUnits of dataset.
template<typename H5obj , typename T >
void isce3::io::saveToH5 ( H5obj &  h5obj,
const std::string &  datasetPath,
const std::valarray< T > &  v,
const std::string &  units = "" 
)
inline

Write valarray dataset to HDF5 file.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of dataset relative to h5obj.
[in]vValarray to write.
[in]unitsUnits of dataset.
template<typename H5obj , typename T , size_t S>
void isce3::io::saveToH5 ( H5obj &  h5obj,
const std::string &  datasetPath,
const std::vector< T > &  v,
std::array< size_t, S >  dims,
const std::string &  units = "" 
)
inline

Write vector dataset with dimensions to HDF5 file.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of dataset relative to h5obj.
[in]vVector to write.
[in]unitsUnits of dataset.
template<typename H5obj , typename T , size_t S>
void isce3::io::saveToH5 ( H5obj &  h5obj,
const std::string &  datasetPath,
const std::valarray< T > &  v,
std::array< size_t, S >  dims,
const std::string &  units = "" 
)
inline

Write valarray dataset with dimensions to HDF5 file.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of dataset relative to h5obj.
[in]vValarray to write.
[in]unitsUnits of dataset.
template<typename H5obj , typename T >
void isce3::io::saveToH5 ( H5obj &  h5obj,
const std::string &  datasetPath,
const isce3::core::Matrix< T > &  mat,
const std::string &  units = "" 
)
inline

Write Matrix dataset to HDF5 file.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of dataset relative to h5obj.
[in]matMatrix to write.
[in]unitsUnits of dataset.
template<typename H5obj >
void isce3::io::setRefEpoch ( H5obj &  h5obj,
const std::string &  datasetPath,
const isce3::core::DateTime refEpoch 
)
inline

Save reference epoch DateTime as an attribute.

Parameters
[in]h5objHDF5 file or group object.
[in]datasetPathH5 path of dataset relative to h5obj.
[in]epochisce3::core::DateTime of reference epoch.

Variable Documentation

isce3::io::pszProjection
Initial value:
{
return ""

Generated for ISCE3.0 by doxygen 1.8.5.