RAVE
|
Polar ODIM IO functions. More...
#include "vp_odim_io.h"
#include "rave_hlhdf_utilities.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include <string.h>
#include "odim_io_utilities.h"
#include <math.h>
Classes | |
struct | _VpOdimIO_t |
The Vertical Profile ODIM IO adaptor. More... | |
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. | |
Polar ODIM IO functions.
@co-author Ulf E. Nordh, SMHI
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 |
RaveCoreObjectType VpOdimIO_TYPE |
Type definition to use when creating a rave object.