RAVE
|
Adaptor for polar ODIM H5 files. More...
#include <lazy_nodelist_reader.h>
#include "rave_object.h"
#include "hlhdf.h"
#include "polarscan.h"
#include "polarvolume.h"
#include "rave_list.h"
Go to the source code of this file.
Typedefs | |
typedef struct _PolarOdimIO_t | PolarOdimIO_t |
Defines the odim h5 adaptor for polar products. | |
Functions | |
void | PolarOdimIO_setVersion (PolarOdimIO_t *self, RaveIO_ODIM_Version version) |
Sets the version that this io class should handle. | |
RaveIO_ODIM_Version | PolarOdimIO_getVersion (PolarOdimIO_t *self) |
Returns the version that this io class handles. | |
void | PolarOdimIO_setStrict (PolarOdimIO_t *self, int strict) |
If writing should be done strictly. | |
int | PolarOdimIO_isStrict (PolarOdimIO_t *self) |
If writing should be done strictly. | |
const char * | PolarOdimIO_getErrorMessage (PolarOdimIO_t *self) |
If an error occurs during writing, you might get an indication for why by checking the error message. | |
int | PolarOdimIO_validateVolumeHowAttributes (PolarOdimIO_t *self, PolarVolume_t *volume) |
Validates if the attributes in the polar volume are valid according to the version rules and strictness. | |
int | PolarOdimIO_validateScanHowAttributes (PolarOdimIO_t *self, PolarScan_t *scan) |
Validates if the attributes in the polar scan are valid according to the version rules and strictness. | |
int | PolarOdimIO_readScan (PolarOdimIO_t *self, LazyNodeListReader_t *lazyReader, PolarScan_t *scan) |
Reads a scan from the nodelist and sets the data in the scan. | |
int | PolarOdimIO_readVolume (PolarOdimIO_t *self, LazyNodeListReader_t *lazyReader, PolarVolume_t *volume) |
Reads a volume from the nodelist and sets the data in the volume. | |
int | PolarOdimIO_fillScan (PolarOdimIO_t *self, PolarScan_t *scan, HL_NodeList *nodelist) |
Fills a nodelist with information about a scan. | |
int | PolarOdimIO_fillVolume (PolarOdimIO_t *self, PolarVolume_t *volume, HL_NodeList *nodelist) |
Fills a nodelist with information about a volume. | |
Variables | |
RaveCoreObjectType | PolarOdimIO_TYPE |
Type definition to use when creating a rave object. | |
typedef struct _PolarOdimIO_t PolarOdimIO_t |
Defines the odim h5 adaptor for polar products.
int PolarOdimIO_fillScan | ( | PolarOdimIO_t * | self, |
PolarScan_t * | scan, | ||
HL_NodeList * | nodelist ) |
Fills a nodelist with information about a scan.
[in] | self | - self |
[in] | scan | - the polar scan |
[in] | nodelist | - the hlhdf nodelist to fill |
int PolarOdimIO_fillVolume | ( | PolarOdimIO_t * | self, |
PolarVolume_t * | volume, | ||
HL_NodeList * | nodelist ) |
Fills a nodelist with information about a volume.
[in] | self | - self |
[in] | volume | - the polar volume |
[in] | nodelist | - the hlhdf nodelist to fill |
const char * PolarOdimIO_getErrorMessage | ( | PolarOdimIO_t * | self | ) |
If an error occurs during writing, you might get an indication for why by checking the error message.
[in] | raveio | - rave io |
RaveIO_ODIM_Version PolarOdimIO_getVersion | ( | PolarOdimIO_t * | self | ) |
Returns the version that this io class handles.
[in] | self | - self |
int PolarOdimIO_isStrict | ( | PolarOdimIO_t * | self | ) |
If writing should be done strictly.
From ODIM H5 2.4 several how-attributes are mandatory. If any of these are missing and strict is set to true, then the writing will fail.
[in] | self | - self |
int PolarOdimIO_readScan | ( | PolarOdimIO_t * | self, |
LazyNodeListReader_t * | lazyReader, | ||
PolarScan_t * | scan ) |
Reads a scan from the nodelist and sets the data in the scan.
[in] | self | - self |
[in] | nodelist | - the hdf5 node list |
[in] | scan | - the scan that should get the attribute and data set |
int PolarOdimIO_readVolume | ( | PolarOdimIO_t * | self, |
LazyNodeListReader_t * | lazyReader, | ||
PolarVolume_t * | volume ) |
Reads a volume from the nodelist and sets the data in the volume.
[in] | self | - self |
[in] | nodelist | - the lazy node list |
[in] | volume | - the volume that should get the attribute and data set |
void PolarOdimIO_setStrict | ( | PolarOdimIO_t * | self, |
int | strict ) |
If writing should be done strictly.
From ODIM H5 2.4 several how-attributes are mandatory. If any of these are missing and strict is set to true, then the writing will fail.
[in] | self | - self |
[in] | strict | - if writing should be performed strictly or not |
void PolarOdimIO_setVersion | ( | PolarOdimIO_t * | self, |
RaveIO_ODIM_Version | version ) |
Sets the version that this io class should handle.
[in] | self | - self |
[in] | version | - the odim version |
int PolarOdimIO_validateScanHowAttributes | ( | PolarOdimIO_t * | self, |
PolarScan_t * | scan ) |
Validates if the attributes in the polar scan are valid according to the version rules and strictness.
[in] | self | - self |
[in] | scan | - the scan to validate |
int PolarOdimIO_validateVolumeHowAttributes | ( | PolarOdimIO_t * | self, |
PolarVolume_t * | volume ) |
Validates if the attributes in the polar volume are valid according to the version rules and strictness.
[in] | self | - self |
[in] | volume | - the volume to validate |
|
extern |
Type definition to use when creating a rave object.