RAVE
pyodimsources.c File Reference

Python version of the Area registry. More...

#include "pyravecompat.h"
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "pyrave_debug.h"
#include "pyodimsources.h"
#include "rave_alloc.h"
#include "pyodimsource.h"

Macros

#define PYODIMSOURCES_MODULE
 to get correct part in pyodimsources.h
 
#define raiseException_gotoTag(tag, type, msg)
 Sets a python exception and goto tag.
 
#define raiseException_returnNULL(type, msg)
 Sets a python exception and return NULL.
 

Functions

 PYRAVE_DEBUG_MODULE ("_odimsources")
 Debug this module.
 
 PyDoc_STRVAR (_pyodimsources_type_doc, "The odim sources registry provides the user with odim sources when working with the data.\n" "\n" "A simple example on how this odim sources registry can be used is:\n" " import _odimsources\n" " reg = _odimsources.load(\"odim_sources.xml\"))\n" " source = reg.get(\"sekkr\")")
 
 PyDoc_STRVAR (_pyodimsources_module_doc, "This class provides functionality for querying an odim sources registry.\n" "\n" "See the load function for information about format of the xml file.\n" "\n" "Usage:\n" " import _odimsources\n" " reg = _odimsources.load(\"/tmp/odim_sources.xml\")\n" " area = reg.get(\"sekkr\")\n")
 
 MOD_INIT (_odimsources)
 

Variables

PyTypeObject PyOdimSources_Type
 

Detailed Description

Python version of the Area registry.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2010-12-15

Macro Definition Documentation

◆ PYODIMSOURCES_MODULE

#define PYODIMSOURCES_MODULE

to get correct part in pyodimsources.h

◆ raiseException_gotoTag

#define raiseException_gotoTag ( tag,
type,
msg )
Value:
{PyErr_SetString(type, msg); goto tag;}

Sets a python exception and goto tag.

◆ raiseException_returnNULL

#define raiseException_returnNULL ( type,
msg )
Value:
{PyErr_SetString(type, msg); return NULL;}

Sets a python exception and return NULL.

Function Documentation

◆ PYRAVE_DEBUG_MODULE()

PYRAVE_DEBUG_MODULE ( "_odimsources" )

Debug this module.