RAVE
pyodimsource.c File Reference

Python version of the OdimSource API. More...

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

Macros

#define PYODIMSOURCE_MODULE
 to get correct part in pyodimsource.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 ("_odimsource")
 Debug this module.
 
 PyDoc_STRVAR (_pyodimsource_doc, "This class provides functionality for defining an odim source.\n" "\n" "The odim source instance is used as a container for the different identification of a source.\n" "Since this instance is used for defining a source it doesn't contain any methods. Instead there are only a number\n" "of members which are:\n\n" " * nod - a string identifying the NOD.\n\n" " * wmo - a string identifying the WMO.\n\n" " * wigos - a string identifying the WIGOS.\n\n" " * plc - a string identifying the PLC.\n\n" " * rad - a string identifying the RAD.\n\n" " * cccc - a string identifying the CCCC.\n\n" " * org - a string identifying the ORG.\n\n" "\n")
 
 MOD_INIT (_odimsource)
 

Variables

PyTypeObject PyOdimSource_Type
 

Detailed Description

Python version of the OdimSource API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2025-01-16

Macro Definition Documentation

◆ PYODIMSOURCE_MODULE

#define PYODIMSOURCE_MODULE

to get correct part in pyodimsource.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 ( "_odimsource" )

Debug this module.