44 RaveIO_FileFormat_CF = 2
RaveCoreObjectType RaveIO_TYPE
Type definition to use when creating a rave object.
Definition rave_io.c:1178
int RaveIO_load(RaveIO_t *raveio, int lazyLoading, const char *preloadQuantities)
Loads the HDF5 file into the raveio instance.
Definition rave_io.c:748
RaveCoreObject * RaveIO_getObject(RaveIO_t *raveio)
Returns the loaded object/object to be saved.
Definition rave_io.c:886
void RaveIO_setStrict(RaveIO_t *raveio, int strict)
If writing should be done strictly.
Definition rave_io.c:1024
int RaveIO_isHDFFile(const char *filename)
Checks if specified file is a HDF file or not.
Definition rave_io.c:743
int RaveIO_setExtras(RaveIO_t *raveio, RaveValue_t *hashtable)
When saving a file you can provide a set of extra attributes to be added to the /how-groups.
Definition rave_io.c:1003
void RaveIO_setIStoreK(RaveIO_t *raveio, long k)
Sets the istore_k value.
Definition rave_io.c:1102
int RaveIO_setFileFormat(RaveIO_t *raveio, RaveIO_ODIM_FileFormat format)
Sets what file format to use.
Definition rave_io.c:979
void RaveIO_getSymk(RaveIO_t *raveio, int *ik, int *lk)
Returns the symk.
Definition rave_io.c:1091
void RaveIO_setSymk(RaveIO_t *raveio, int ik, int lk)
Sets the symk.
Definition rave_io.c:1084
RaveIO_t * RaveIO_open(const char *filename, int lazyLoading, const char *preloadQuantities)
Opens a supported HDF5 file and loads it into the RaveIO instance.
Definition rave_io.c:681
unsigned long long RaveIO_getUserBlock(RaveIO_t *raveio)
Returns the user block.
Definition rave_io.c:1060
RaveIO_ODIM_Version RaveIO_getOdimVersion(RaveIO_t *raveio)
Returns the ODIM version that will be used to write the file.
Definition rave_io.c:945
const char * RaveIO_getFilename(RaveIO_t *raveio)
Returns the current filename.
Definition rave_io.c:911
const char * RaveIO_getErrorMessage(RaveIO_t *raveio)
If an error occurs during writing, you might get an indication for why by checking the error message.
Definition rave_io.c:1154
RaveIO_ODIM_FileFormat
The file format of the data that has been read.
Definition rave_io.h:40
@ RaveIO_ODIM_FileFormat_HDF5
HDF 5.
Definition rave_io.h:42
@ RaveIO_ODIM_FileFormat_UNDEFINED
undefined
Definition rave_io.h:41
@ RaveIO_ODIM_FileFormat_BUFR
BUFR.
Definition rave_io.h:43
void RaveIO_setUserBlock(RaveIO_t *raveio, unsigned long long userblock)
Sets the user block.
Definition rave_io.c:1054
void RaveIO_close(RaveIO_t *raveio)
Closes the HDF5 file but will keep the RaveIO instance.
Definition rave_io.c:672
int RaveIO_supports(RaveIO_ODIM_FileFormat format)
Returns if the raveio supports the provided file format.
Definition rave_io.c:1161
int RaveIO_setBufrTableDir(RaveIO_t *raveio, const char *dname)
Sets the bufr table directory to use when reading bufr files.
Definition rave_io.c:1126
const char * RaveIO_getBufrTableDir(RaveIO_t *raveio)
Returns the bufr table directory.
Definition rave_io.c:1148
int RaveIO_getFileObjectLoading(RaveIO_t *raveio)
Returns if file object loading should be forced or not.
Definition rave_io.c:996
void RaveIO_setObject(RaveIO_t *raveio, RaveCoreObject *object)
Sets the object to be saved.
Definition rave_io.c:879
void RaveIO_getSizes(RaveIO_t *raveio, size_t *sz, size_t *addr)
Returns the sizes.
Definition rave_io.c:1073
long RaveIO_getIStoreK(RaveIO_t *raveio)
Returns the istore_k value.
Definition rave_io.c:1108
long RaveIO_getMetaBlockSize(RaveIO_t *raveio)
Returns the meta block size.
Definition rave_io.c:1120
struct _RaveIO_t RaveIO_t
Defines a Rave IO instance.
Definition rave_io.h:50
RaveIO_t * RaveIO_openFileObject(const char *filename, int lazyLoading, const char *preloadQuantities)
Opens a supported file object and loads it into the RaveIO instance.
Definition rave_io.c:711
void RaveIO_setSizes(RaveIO_t *raveio, size_t sz, size_t addr)
Sets the sizes.
Definition rave_io.c:1066
RaveIO_ODIM_FileFormat RaveIO_getFileFormat(RaveIO_t *raveio)
Will return the file format that this file was read as.
Definition rave_io.c:973
RaveValue_t * RaveIO_getExtras(RaveIO_t *raveio)
Returns a RaveValue of type Hashtable with how-attributes or NULL.
Definition rave_io.c:1017
int RaveIO_save(RaveIO_t *raveio, const char *filename)
Saves a rave object as specified according to ODIM HDF5 format specification.
Definition rave_io.c:774
Rave_ObjectType RaveIO_getObjectType(RaveIO_t *raveio)
Returns the object type for the currently opened file.
Definition rave_io.c:917
RaveIO_ODIM_H5rad_Version RaveIO_getH5radVersion(RaveIO_t *raveio)
Returns the h5rad version.
Definition rave_io.c:967
void RaveIO_setMetaBlockSize(RaveIO_t *raveio, long sz)
Sets the meta block size.
Definition rave_io.c:1114
int RaveIO_setH5radVersion(RaveIO_t *raveio, RaveIO_ODIM_H5rad_Version version)
Sets the ODIM h5rad version to use when saving the file.
Definition rave_io.c:957
void RaveIO_setCompressionLevel(RaveIO_t *raveio, int lvl)
Sets the compression level.
Definition rave_io.c:1040
void RaveIO_setFileObjectLoading(RaveIO_t *raveio, int override)
Sets if file object loading should be forced or not.
Definition rave_io.c:990
int RaveIO_setOdimVersion(RaveIO_t *raveio, RaveIO_ODIM_Version version)
Sets the ODIM version to use when saving the file.
Definition rave_io.c:935
RaveIO_ODIM_Version RaveIO_getReadOdimVersion(RaveIO_t *raveio)
Returns the ODIM version of the file that was read.
Definition rave_io.c:951
int RaveIO_isStrict(RaveIO_t *raveio)
If writing should be done strictly.
Definition rave_io.c:1034
int RaveIO_setFilename(RaveIO_t *raveio, const char *filename)
Sets the filename that should be used when saving the object.
Definition rave_io.c:892
int RaveIO_getCompressionLevel(RaveIO_t *raveio)
Returns the compression level.
Definition rave_io.c:1048
Generic implementation of an object that is used within rave.
struct _raveobject RaveCoreObject
The basic raveobject that contains the header information for all rave objects.
struct _raveobjecttype RaveCoreObjectType
The rave object type definition.
Type definitions for RAVE.
RaveIO_ODIM_Version
The /Conventions version in a ODIM HDF5 file.
Definition rave_types.h:43
Rave_ObjectType
Object types that defines the /what/object in the ODIM format.
Definition rave_types.h:82
RaveIO_ODIM_H5rad_Version
The /what/version in a ODIM HDF5 file.
Definition rave_types.h:59
A value object that can represent standard types like int, double, .
struct _RaveValue_t RaveValue_t
Defines a rave value.
Definition rave_value.h:47
Defines the structure for the RaveIO in a volume.
Definition rave_io.c:60
RaveIO_ODIM_Version version
the odim version
Definition rave_io.c:63
int strict
if strict writing should be enforced, from 2.4, several how-attributes are required.
Definition rave_io.c:69
char * filename
the filename
Definition rave_io.c:70