RAVE
rave_bufr_io.c File Reference

Adaptor for polar BUFR files. More...

#include "rave_bufr_io.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include "rave_utilities.h"
#include "rave_data2d.h"
#include "hlhdf.h"
#include "hlhdf_alloc.h"
#include "hlhdf_debug.h"
#include "string.h"
#include "stdarg.h"
#include "raveobject_hashtable.h"
#include "raveobject_list.h"
#include "polarvolume.h"
#include "cartesianvolume.h"
#include "rave_field.h"
#include "rave_hlhdf_utilities.h"
#include "cartesian_odim_io.h"
#include "polar_odim_io.h"
#include <time.h>
#include <zlib.h>
#include <float.h>
#include <ctype.h>
#include "rave_config.h"
#include "desc.h"
#include "bufr.h"

Classes

struct  _RaveBufrIO_t
 Defines the structure for the RaveIO in a volume. More...
 

Functions

int RaveBufrIO_setTableDir (RaveBufrIO_t *self, const char *dirname)
 Sets the table dir name where the descriptor information resides.
 
const char * RaveBufrIO_getTableDir (RaveBufrIO_t *self)
 Returns the table dir name.
 
RaveCoreObjectRaveBufrIO_read (RaveBufrIO_t *self, const char *filename)
 Reads the bufr file.
 
int RaveBufrIO_isBufr (const char *filename)
 Tests if the specified file is a bufr file.
 

Variables

RaveCoreObjectType RaveBufrIO_TYPE
 Type definition to use when creating a rave object.
 

Detailed Description

Adaptor for polar BUFR files.

This object supports RAVE_OBJECT_CLONE.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2011-11-08

Function Documentation

◆ RaveBufrIO_getTableDir()

const char * RaveBufrIO_getTableDir ( RaveBufrIO_t * self)

Returns the table dir name.

Parameters
[in]self- self
Returns
the directory name

◆ RaveBufrIO_isBufr()

int RaveBufrIO_isBufr ( const char * filename)

Tests if the specified file is a bufr file.

Parameters
[in]filename- the name to check
Returns
1 if file is a BUFR file, otherwise 0

◆ RaveBufrIO_read()

RaveCoreObject * RaveBufrIO_read ( RaveBufrIO_t * self,
const char * filename )

Reads the bufr file.

Parameters
[in]self- self
[in]filename- the filename that should be read
Returns
the rave core object on success otherwise NULL

◆ RaveBufrIO_setTableDir()

int RaveBufrIO_setTableDir ( RaveBufrIO_t * self,
const char * dirname )

Sets the table dir name where the descriptor information resides.

Parameters
[in]self- self
[in]dirname- the directory name
Returns
1 on success otherwise 0

Variable Documentation

◆ RaveBufrIO_TYPE

RaveCoreObjectType RaveBufrIO_TYPE
Initial value:
= {
"RaveBufrIO",
sizeof(RaveBufrIO_t),
RaveBufrIO_constructor,
RaveBufrIO_destructor,
NULL
}
struct _RaveBufrIO_t RaveBufrIO_t
Defines the bufr adaptor.
Definition rave_bufr_io.h:35

Type definition to use when creating a rave object.