MI - Fimex
Macros | Enumerations | Functions
CDMconstants.h File Reference
#include "fimex/deprecated.h"

Go to the source code of this file.

Macros

#define MIFI_VERSION_MAJOR   0
 constants used through-out fimex More...
 
#define MIFI_VERSION_MINOR   63
 
#define MIFI_VERSION_PATCH   4
 
#define MIFI_VERSION_STATUS   0xF0
 
#define MIFI_VERSION_STRING   "0.63.4"
 
#define MIFI_VERSION_INT(major, minor, patch)   (1000000*major + 1000*minor + patch)
 
#define MIFI_VERSION_CURRENT_INT   MIFI_VERSION_INT(MIFI_VERSION_MAJOR, MIFI_VERSION_MINOR, MIFI_VERSION_PATCH)
 
#define MIFI_EARTH_RADIUS_M   6371000
 
#define MIFI_WGS84_LATLON_PROJ4   "+proj=latlong +datum=WGS84 +towgs84=0,0,0 +no_defs"
 
#define MIFI_FILL_CHAR   ((signed char)-127)
 
#define MIFI_FILL_SHORT   ((short)-32767)
 
#define MIFI_FILL_INT   (-2147483647L)
 
#define MIFI_FILL_FLOAT   (9.9692099683868690e+36f) /* near 15 * 2^119 */
 
#define MIFI_FILL_DOUBLE   (9.9692099683868690e+36)
 
#define MIFI_FILL_UCHAR   (255)
 
#define MIFI_FILL_USHORT   (65535)
 
#define MIFI_FILL_UINT   (4294967295U)
 
#define MIFI_FILL_INT64   ((long long)-9223372036854775806LL)
 
#define MIFI_FILL_UINT64   ((unsigned long long)18446744073709551614ULL)
 

Enumerations

enum  mifi_filetype {
  MIFI_FILETYPE_UNKNOWN =-1, MIFI_FILETYPE_FELT, MIFI_FILETYPE_NETCDF, MIFI_FILETYPE_NCML,
  MIFI_FILETYPE_GRIB, MIFI_FILETYPE_WDB, MIFI_FILETYPE_METGM, MIFI_FILETYPE_PRORAD,
  MIFI_FILETYPE_GRBML, MIFI_FILETYPE_RW =1024
}
 

Functions

const char * fimexVersion ()
 
unsigned int mifi_version_major ()
 
unsigned int mifi_version_minor ()
 
unsigned int mifi_version_patch ()
 
unsigned int mifi_version_status ()
 
int mifi_get_filetype (const char *filetypeName)
 get the filetype of a filetype name More...
 
const char * mifi_get_filetype_name (int filetype)
 get the filetype-name of a filetype More...
 
int mifi_get_max_filetype_number ()
 
int fimexHas (int fileType)
 
 MIFI_DEPRECATED (int fimexHasNetcdf())
 

Macro Definition Documentation

#define MIFI_EARTH_RADIUS_M   6371000

the default radius of a spherical earth in meter

#define MIFI_FILL_CHAR   ((signed char)-127)

default fill values taken from netcdf.h

#define MIFI_FILL_DOUBLE   (9.9692099683868690e+36)
#define MIFI_FILL_FLOAT   (9.9692099683868690e+36f) /* near 15 * 2^119 */
#define MIFI_FILL_INT   (-2147483647L)
#define MIFI_FILL_INT64   ((long long)-9223372036854775806LL)
#define MIFI_FILL_SHORT   ((short)-32767)
#define MIFI_FILL_UCHAR   (255)
#define MIFI_FILL_UINT   (4294967295U)
#define MIFI_FILL_UINT64   ((unsigned long long)18446744073709551614ULL)
#define MIFI_FILL_USHORT   (65535)
#define MIFI_VERSION_INT (   major,
  minor,
  patch 
)    (1000000*major + 1000*minor + patch)
#define MIFI_VERSION_MAJOR   0

constants used through-out fimex

CDMConstants stores several constants used in fimex, accessible from C and C++. Constants are either available as macro, or as function.

#define MIFI_VERSION_MINOR   63
#define MIFI_VERSION_PATCH   4
#define MIFI_VERSION_STATUS   0xF0
#define MIFI_VERSION_STRING   "0.63.4"
#define MIFI_WGS84_LATLON_PROJ4   "+proj=latlong +datum=WGS84 +towgs84=0,0,0 +no_defs"

the default earth projection (WGS84 latlong)

Enumeration Type Documentation

The mifi_filetype define the available input and output file-formats. Maximum 1023.

Enumerator
MIFI_FILETYPE_UNKNOWN 

only filetype < 0

MIFI_FILETYPE_FELT 
MIFI_FILETYPE_NETCDF 
MIFI_FILETYPE_NCML 
MIFI_FILETYPE_GRIB 
MIFI_FILETYPE_WDB 
MIFI_FILETYPE_METGM 
MIFI_FILETYPE_PRORAD 
MIFI_FILETYPE_GRBML 
MIFI_FILETYPE_RW 

MIFI_FILETYPE_RW is a flag to specify that files should be opened in read-write mode. Example: MIFI_FILETYPE_NETCDF|MIFI_FILETYPE_RW

Function Documentation

int fimexHas ( int  fileType)

check if fimex is configured with the filetype

Parameters
fileTypeone of the mifi_filetype define constants
const char* fimexVersion ( )

version of fimex

MIFI_DEPRECATED ( int   fimexHasNetcdf())

check if fimex is configured with netcdf-support

Deprecated:
use fimexHas(fileType)

check if fimex is configured with grib_api-support

Deprecated:
use fimexHas(fileType)

check if fimex is configured with felt-support

Deprecated:
use fimexHas(fileType)
int mifi_get_filetype ( const char *  filetypeName)

get the filetype of a filetype name

Returns
one of mifi_filetype
const char* mifi_get_filetype_name ( int  filetype)

get the filetype-name of a filetype

Parameters
filetypeone of mifi_filetype
int mifi_get_max_filetype_number ( )

get the maximum number of filetypes, that is , the largest number of valid filetype you can get.

unsigned int mifi_version_major ( )

major version of fimex

unsigned int mifi_version_minor ( )

minor version of fimex

unsigned int mifi_version_patch ( )

patch version of fimex

unsigned int mifi_version_status ( )

fimex version status, e.g >=0xF0 = final, 0xAX = alphaX, 0xBX = betaX, 0xCX= releaseCandidateX