RAVE
pypolarscanparam.c File Reference

Python version of the PolarScan API. More...

#include "pyravecompat.h"
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "pypolarscanparam.h"
#include <arrayobject.h>
#include "pyrave_debug.h"
#include "rave_alloc.h"
#include "raveutil.h"
#include "rave.h"
#include "pyravefield.h"
#include "pyravedata2d.h"
#include "pyravelegend.h"

Macros

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 
#define PYPOLARSCANPARAM_MODULE
 to get correct part of pypolarscanparam,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 ("_polarscanparam")
 Debug this module.
 
 PyDoc_STRVAR (_pypolarscanparam_type_doc, "The polar scan parameter represents one quantity. Like for the polar scan, there are a number of members " "associated with this object.\n" "\n" "nbins - Number of bins in the data set.\n" "nrays - Number of rays in the data set.\n" "quantity - Quantity of this parameter.\n" "gain - Gain of the value in the formula offset + data*gain\n" "offset - Offset of the value in the formula offset + data*gain\n" "nodata - The value that represents a nodata (no coverage, ...)\n" "undetect - The value that represents undetect (coverage, but no hit)\n" "datatype - The data type. ReadOnly, initialization occurs when setting data using setData().\n" "Usage:\n" "import _polarscanparam\n" "p = _polarscanparam.new()\n" "p.setData(arr)\n" "...")
 
 MOD_INIT (_polarscanparam)
 

Variables

PyTypeObject PyPolarScanParam_Type
 

Detailed Description

Python version of the PolarScan API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2009-12-08

Macro Definition Documentation

◆ PYPOLARSCANPARAM_MODULE

#define PYPOLARSCANPARAM_MODULE

to get correct part of pypolarscanparam,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 ( "_polarscanparam" )

Debug this module.

Variable Documentation

◆ PyPolarScanParam_Type

PyTypeObject PyPolarScanParam_Type

Type definitions