RAVE
pybitmapgenerator.c File Reference

Python version of the Transform API. More...

#include "pyravecompat.h"
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <pybitmapgenerator.h>
#include "pycartesian.h"
#include "pycartesianparam.h"
#include "pyravefield.h"
#include "pyrave_debug.h"
#include "rave_alloc.h"

Macros

#define PYBITMAP_GENERATOR_MODULE
 include correct part of pybitmapgenerator.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 ("_bitmapgenerator")
 This modules name.
 
 PyDoc_STRVAR (_pybitmapgenerator_module_doc, "This class provides creating a bitmap defining the outer border of the involved radars within a composite. It can also add intersections between radars " "but in that case there must be a radar index quality field added to figure out where the included radar change are locateds. Note, in some " "situations it might not be practical to create the interesect if the composite has been made with an algorithm that doesn't take into account height " " or range.\n" "\n" "Usage:\n" " import _bitmapgenerator\n" " generator = _bitmapgenerator.new()\n" " field = generator.create_intersect(cartesian.getParameter(\"DBZH\"), \"se.smhi.composite.index.radar\")\n" " newparam = cartesian.createParameter(\"BRDR\", _rave.RaveDataType_UCHAR)\n" " newparam.setData(field.getData())\n")
 
 MOD_INIT (_bitmapgenerator)
 

Variables

PyTypeObject PyBitmapGenerator_Type
 

Detailed Description

Python version of the Transform API.

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

Macro Definition Documentation

◆ PYBITMAP_GENERATOR_MODULE

#define PYBITMAP_GENERATOR_MODULE

include correct part of pybitmapgenerator.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 ( "_bitmapgenerator" )

This modules name.