RAVE
|
Adaptor for VP ODIM H5 files. More...
#include "rave_object.h"
#include "hlhdf.h"
#include "vertical_profile.h"
#include "lazy_nodelist_reader.h"
Go to the source code of this file.
Typedefs | |
typedef struct _VpOdimIO_t | VpOdimIO_t |
Defines the odim h5 adaptor for vp products. | |
Functions | |
void | VpOdimIO_setVersion (VpOdimIO_t *self, RaveIO_ODIM_Version version) |
Sets the version that this io class should handle. | |
RaveIO_ODIM_Version | VpOdimIO_getVersion (VpOdimIO_t *self) |
Returns the version that this io class handles. | |
void | VpOdimIO_setStrict (VpOdimIO_t *self, int strict) |
If writing should be done strictly. | |
int | VpOdimIO_isStrict (VpOdimIO_t *self) |
If writing should be done strictly. | |
const char * | VpOdimIO_getErrorMessage (VpOdimIO_t *self) |
If an error occurs during writing, you might get an indication for why by checking the error message. | |
int | VpOdimIO_read (VpOdimIO_t *self, LazyNodeListReader_t *lazyReader, VerticalProfile_t *vp) |
Reads a vp from the nodelist and sets the data in the vp. | |
int | VpOdimIO_fill (VpOdimIO_t *self, VerticalProfile_t *vp, HL_NodeList *nodelist) |
Fills a nodelist with information about a vertical profile. | |
int | VpOdimIO_validateVpHowAttributes (VpOdimIO_t *self, VerticalProfile_t *vp) |
Validates a vertical profile according to strictness and version in order to verify if it contains necessary information. | |
Variables | |
RaveCoreObjectType | VpOdimIO_TYPE |
Type definition to use when creating a rave object. | |
typedef struct _VpOdimIO_t VpOdimIO_t |
Defines the odim h5 adaptor for vp products.
int VpOdimIO_fill | ( | VpOdimIO_t * | self, |
VerticalProfile_t * | vp, | ||
HL_NodeList * | nodelist ) |
Fills a nodelist with information about a vertical profile.
[in] | self | - self |
[in] | vp | - the vertical profile |
[in] | nodelist | - the hlhdf nodelist to fill |
const char * VpOdimIO_getErrorMessage | ( | VpOdimIO_t * | self | ) |
If an error occurs during writing, you might get an indication for why by checking the error message.
[in] | self | - self |
RaveIO_ODIM_Version VpOdimIO_getVersion | ( | VpOdimIO_t * | self | ) |
Returns the version that this io class handles.
[in] | self | - self |
int VpOdimIO_isStrict | ( | VpOdimIO_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 VpOdimIO_read | ( | VpOdimIO_t * | self, |
LazyNodeListReader_t * | lazyReader, | ||
VerticalProfile_t * | vp ) |
Reads a vp from the nodelist and sets the data in the vp.
[in] | self | - self |
[in] | nodelist | - the hdf5 node list |
[in] | vp | - the vertical profile that should get the attribute and data set |
void VpOdimIO_setStrict | ( | VpOdimIO_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 VpOdimIO_setVersion | ( | VpOdimIO_t * | self, |
RaveIO_ODIM_Version | version ) |
Sets the version that this io class should handle.
[in] | self | - self |
[in] | version | - the odim version |
int VpOdimIO_validateVpHowAttributes | ( | VpOdimIO_t * | self, |
VerticalProfile_t * | vp ) |
Validates a vertical profile according to strictness and version in order to verify if it contains necessary information.
[in] | self | - self |
[in] | vp | - the vertical profile to validate |
|
extern |
Type definition to use when creating a rave object.