radarlib 1.4.6
|
OdimH5 v2.0 SCAN quantity data. More...
#include <radarlib/odimh5v20_classes.hpp>
Public Member Functions | |
virtual std::string | getObject () |
Get the value of 'object' attribute. | |
virtual void | setObject (const std::string &val) |
Set the value of 'object' attribute. | |
virtual std::string | getVersion () |
Get the value of 'version' attribute. | |
virtual void | setVersion (const std::string &val) |
Set the value of 'version' attribute. | |
virtual time_t | getDateTime () |
Get the joined value of 'date' and 'time' attributes. | |
virtual void | setDateTime (const time_t val) |
Set the value of 'date' and 'time' attributes. | |
virtual SourceInfo | getSource () |
Get the value of 'source' attribute. | |
virtual void | setSource (const SourceInfo &val) |
Set the value of 'source' attribute. | |
virtual std::string | getProduct () |
Get the value of 'product' attribute. | |
virtual void | setProduct (const std::string &val) |
Set the value of 'product' attribute. | |
virtual double | getProdPar () |
Get the value of 'prodpar' attribute as double value. | |
virtual VILHeights | getProdParVIL () |
Get the value of 'prodpar' attribute as VILHeights pair. | |
virtual void | setProdPar (double val) |
Set the value of 'prodpar' attribute. | |
virtual void | setProdPar (const VILHeights &val) |
Set the value of 'prodpar' attribute using the given VILHeights values. | |
virtual std::string | getQuantity () |
Set the value of 'quantity' attribute. | |
virtual void | setQuantity (const std::string &val) |
Get the value of 'quantity' attribute. | |
virtual time_t | getStartDateTime () |
Get the value of 'startdate' and 'starttime' attributes. | |
virtual void | setStartDateTime (time_t val) |
Set the value of 'startdate' and 'starttime' attributes. | |
virtual time_t | getEndDateTime () |
Get the value of 'enddate' and 'endtime' attributes. | |
virtual void | setEndDateTime (time_t val) |
Set the value of 'enddate' and 'endtime' attributes. | |
virtual double | getGain () |
Get the value of 'gain' attribute. | |
virtual void | setGain (double val) |
Set the value of 'gain' attribute. | |
virtual double | getOffset () |
Get the value of 'offset' attribute. | |
virtual void | setOffset (double val) |
Set the value of 'offset' attribute. | |
virtual double | getNodata () |
Get the value of 'nodata' attribute. | |
virtual void | setNodata (double val) |
Set the value of 'nodata' attribute. | |
virtual double | getUndetect () |
Get the value of 'undetect' attribute. | |
virtual void | setUndetect (double val) |
Set the value of 'undetect' attribute. | |
virtual int | getNumRays () |
Get the number of rays in the matrix. | |
virtual int | getNumBins () |
Get the number of bins in each ray of the matrix. | |
H5::AtomType | getBinType () |
Get the type of each element in the matrix. | |
virtual void | readTranslatedData (RayMatrix< float > &matrix) |
Read the matrix data translating the values | |
virtual void | readTranslatedData (RayMatrix< double > &matrix) |
Read the matrix data translating the values | |
virtual void | writeAndTranslate (RayMatrix< float > &matrix, float offset, float gain, H5::DataType type) |
Write the given matrix of data into the quantity matrix. | |
virtual void | writeAndTranslate (RayMatrix< double > &matrix, double offset, double gain, H5::DataType type) |
Write the given matrix of data into the quantity matrix. | |
virtual H5::Group * | getH5Object () |
Get the HDF5 group associated to this object. | |
virtual bool | existWhat () |
Test is the WHAT attributes group exist. | |
virtual bool | existWhere () |
Test is the WHERE attributes group exist. | |
virtual bool | existHow () |
Test is the HOW attributes group exist. | |
virtual MetadataGroup * | getWhat () |
Get the WHAT attributes group. | |
virtual MetadataGroup * | getWhere () |
Get the WHERE attributes group. | |
virtual MetadataGroup * | getHow () |
Get the HOW attributes group. | |
virtual H5::AtomType | getDataType () |
Get the HDF5 atom type of the elements of the HDF5 dataset contained inside this 'data' group. | |
virtual int | getDataWidth () |
Get the width (cols num) of the matrix associated to this data group. | |
virtual int | getDataHeight () |
Get the height (rows num) of the matrix associated to this data group. | |
virtual void | getDataDimension (int *height, int *width) |
Get height and width (rows and cols num) of the matrix associated to this data group. | |
virtual void | writeData (const void *buff, int width, int height, const H5::DataType &elemtype) |
Write data to the matrix associated to this 'data' group. | |
virtual void | writeData (const char *buff, int width, int height) |
Write data to the matrix associated to this 'data' group. | |
virtual void | writeData (const unsigned char *buff, int width, int height) |
Write data to the matrix associated to this 'data' group. | |
virtual void | writeData (const unsigned short *buff, int width, int height) |
Write data to the matrix associated to this 'data' group. | |
virtual void | writeData (const float *buff, int width, int height) |
Write data to the matrix associated to this 'data' group. | |
virtual void | writeData (const DataMatrix< char > &matrix) |
Write data to the matrix associated to this 'data' group. | |
virtual void | writeData (const DataMatrix< unsigned char > &matrix) |
Write data to the matrix associated to this 'data' group. | |
virtual void | writeData (const DataMatrix< unsigned short > &matrix) |
Write data to the matrix associated to this 'data' group. | |
virtual void | writeData (const DataMatrix< float > &matrix) |
Write data to the matrix associated to this 'data' group. | |
virtual void | readData (void *buffer) |
Read data from the dataset of this 'data' group | |
virtual int | getQualityCount () |
Get the number of 'quality' groups inside this data group. | |
virtual OdimQuality * | createQuality () |
Create a new group 'Quality' inside this data. | |
virtual OdimQuality * | getQuality (int index) |
Get an existing Quality group using the given index. | |
virtual void | removeQuality (int index) |
Remove a 'quality' group from this dataset. | |
OdimH5 v2.0 SCAN quantity data.
This class represents OdimH5 data group associated with a OdimH5 quantity Generic data manipulations can be done using methods provided by the OdimObject interface
|
virtual |
Get the value of 'object' attribute.
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATRootMetadata.
|
virtual |
Set the value of 'object' attribute.
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATRootMetadata.
|
virtual |
Get the value of 'version' attribute.
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATRootMetadata.
|
virtual |
Set the value of 'version' attribute.
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATRootMetadata.
|
virtual |
Get the joined value of 'date' and 'time' attributes.
Get the joined value of 'date' and 'time' attributes in a single time_t value
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATRootMetadata.
|
virtual |
Set the value of 'date' and 'time' attributes.
Set the value of 'date' and 'time' attributes using the given time_t value
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATRootMetadata.
|
virtual |
Get the value of 'source' attribute.
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATRootMetadata.
|
virtual |
Set the value of 'source' attribute.
Set the value of 'source' attribute according to OdimH5 format, using the values stored in a SourceInfo object
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATRootMetadata.
|
virtual |
Get the value of 'product' attribute.
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Set the value of 'product' attribute.
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Get the value of 'prodpar' attribute as double value.
This method is used only for some kind of products
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Get the value of 'prodpar' attribute as VILHeights pair.
This method is used only for some kind of products
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Set the value of 'prodpar' attribute.
This method is used only for some kind of products
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Set the value of 'prodpar' attribute using the given VILHeights values.
Set the value of 'prodpar' attribute using the given VILHeights values This method is used only for some kind of products
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Set the value of 'quantity' attribute.
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Get the value of 'quantity' attribute.
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Get the value of 'startdate' and 'starttime' attributes.
Get the value of 'startdate' and 'starttime' attributes joined into a time_t value
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Set the value of 'startdate' and 'starttime' attributes.
Set the value of 'startdate' and 'starttime' attributes using the given absolute time_t value
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Get the value of 'enddate' and 'endtime' attributes.
Get the value of 'enddate' and 'endtime' attributes joined into a time_t value
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Set the value of 'enddate' and 'endtime' attributes.
Set the value of 'enddate' and 'endtime' attributes using the given absolute time_t value
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Get the value of 'gain' attribute.
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Set the value of 'gain' attribute.
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Get the value of 'offset' attribute.
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Set the value of 'offset' attribute.
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Get the value of 'nodata' attribute.
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Set the value of 'nodata' attribute.
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Get the value of 'undetect' attribute.
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Set the value of 'undetect' attribute.
val | the value to write |
OdimH5Exception | if an unexpected error occurs |
Implements OdimH5v20::WHATDatasetMetadata.
|
virtual |
Get the number of rays in the matrix.
OdimH5Exception | Throwed if an error occurs |
|
virtual |
Get the number of bins in each ray of the matrix.
OdimH5Exception | Throwed if an error occurs |
H5::AtomType OdimH5v20::PolarScanData::getBinType | ( | ) |
Get the type of each element in the matrix.
OdimH5Exception | Throwed if an error occurs |
|
virtual |
Read the matrix data translating the values
Read the matrix data translating the values using 'gain' and 'offset' attributes.
The result is store int the given 32 floating point values matrix.
OdimH5Exception | Throwed if an error occurs |
|
virtual |
Read the matrix data translating the values
Read the matrix data translating the values using 'gain' and 'offset' attributes The result is store int the given 32 floating point values matrix
OdimH5Exception | Throwed if an error occurs |
|
virtual |
Write the given matrix of data into the quantity matrix.
Write the given matrix of data into the HDF5 dataset associated to this quantity.
Value will be written according to the given HDF5 type and translated useing the given gain and offset.
matrix | the values to rite |
gain | the gain value used to translate values |
offset | the offset value used to translate values |
type | the type to use fo the HDF5 dataset elements |
OdimH5Exception | Throwed if an error occurs |
|
virtual |
Write the given matrix of data into the quantity matrix.
Write the given matrix of data into the HDF5 dataset associated to this quantity.
Values will be written according to the given HDF5 type and translated useing the given gain and offset.
matrix | the values to rite |
gain | the gain value used to translate values |
offset | the offset value used to translate values |
type | the type to use fo the HDF5 dataset elements |
OdimH5Exception | Throwed if an error occurs |
|
virtualinherited |
Get the HDF5 group associated to this object.
Get the HDF5 group associated to this object
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Test is the WHAT attributes group exist.
Check if the WHAT attributes group of this object exist.
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Test is the WHERE attributes group exist.
Check if the WHERE attributes group of this object exist.
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Test is the HOW attributes group exist.
Check if the HOW attributes group of this object exist.
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Get the WHAT attributes group.
Get the WHAT attributes group of this object. If it does not exist it will be created
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Get the WHERE attributes group.
Get the WHERE attributes group of this object. If it does not exist it will be created
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Get the HOW attributes group.
Get the HOW attributes group of this object. If it does not exist it will be created
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Get the HDF5 atom type of the elements of the HDF5 dataset contained inside this 'data' group.
Get the HDF5 atom type of the elements of the HDF5 dataset contained inside this 'data' group.
If the HDF5 dataset is not present then NATIVE_OPAQUE will be returned. OdimH5 allow only atomic types: char, schar, uchar, short, ushort, int, uint, long, ulong, llong, ullong, float, double.
OdimH5Exception | if an unexpected error occurs |
OdimH5UnsupportedException | if the dataset type cannot be converted to an atomic type |
|
virtualinherited |
Get the width (cols num) of the matrix associated to this data group.
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Get the height (rows num) of the matrix associated to this data group.
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Get height and width (rows and cols num) of the matrix associated to this data group.
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Write data to the matrix associated to this 'data' group.
Write data to the matrix associated to this 'data' group from the given buffer where each element has the given type.
The buffer must be a continuous memory array logically organized as a matrix divided in rows and cols.
The size of the buffer must be at least equal to (height * width * elemtype.getSize()). Otherwise a buffer overflow will occur.
buff | the buffer containing the data to write |
width | the number of cols in the matrix |
height | the number of rows in the matrix |
elemtype | the HDF5 datatype of the buffer's elements |
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Write data to the matrix associated to this 'data' group.
Write data to the matrix associated to this 'data' group from the given 8 bit signed buffer
buff | the buffer containing the data to write |
width | the number of cols in the matrix |
height | the number of rows in the matrix |
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Write data to the matrix associated to this 'data' group.
Write data to the matrix associated to this 'data' group from the given 8 bit unsigned buffer
buff | the buffer containing the data to write |
width | the number of cols in the matrix |
height | the number of rows in the matrix |
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Write data to the matrix associated to this 'data' group.
Write data to the matrix associated to this 'data' group from the given 16 bit unsigned char buffer
buff | the buffer containing the data to write |
width | the number of cols in the matrix |
height | the number of rows in the matrix |
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Write data to the matrix associated to this 'data' group.
Write data to the matrix associated to this 'data' group from the given 32 bit floating point buffer
buff | the buffer containing the data to write |
width | the number of cols in the matrix |
height | the number of rows in the matrix |
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Write data to the matrix associated to this 'data' group.
Write data to the matrix associated to this 'data' group from the DataMatrix object.
The HDF5 dataset will be created using the size and type of the given matrix object.
matrix | the matrix object containing the data |
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Write data to the matrix associated to this 'data' group.
Write data to the matrix associated to this 'data' group from the DataMatrix object.
The HDF5 dataset will be created using the size and type of the given matrix object.
matrix | the matrix object containing the data |
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Write data to the matrix associated to this 'data' group.
Write data to the matrix associated to this 'data' group from the DataMatrix object.
The HDF5 dataset will be created using the size and type of the given matrix object.
matrix | the matrix object containing the data |
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Write data to the matrix associated to this 'data' group.
Write data to the matrix associated to this 'data' group from the DataMatrix object The HDF5 dataset will be created using the size and type of the given matrix object
matrix | the matrix object containing the data |
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Read data from the dataset of this 'data' group
Read data from the dataset of this 'data' group into the given buffer.
The buffer must be large enough to store all elements in the HDF5 dataset.
The minimum size in byte is (getDataWidth() x getDataHeight() x getDataType().getSize()).
buffer | the buffer to store the loaded data |
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Get the number of 'quality' groups inside this data group.
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Create a new group 'Quality' inside this data.
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Get an existing Quality group using the given index.
Get an existing dataset using the given index
index | the quality index from 0 to n-1 |
OdimH5Exception | if an unexpected error occurs |
|
virtualinherited |
Remove a 'quality' group from this dataset.
Remove a 'quality' group from this dataset
index | the dataset index from 0 to n-1 |
OdimH5Exception | if an unexpected error occurs |