RAVE
pycartesianvolume.c File Reference

Python version of the CartesianVolume API. More...

#include "pyravecompat.h"
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "cartesian_odim_io.h"
#include "pycartesianvolume.h"
#include <arrayobject.h>
#include "pyprojection.h"
#include "pycartesian.h"
#include "pyrave_debug.h"
#include "rave_alloc.h"
#include "rave.h"

Macros

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 
#define PYCARTESIANVOLUME_MODULE
 to get correct part in pycartesianvolume.h
 
#define raiseException_gotoTag(tag, type, msg)
 Sets a python exception and goto tag.
 
#define raiseException_returnNULL(type, msg)
 Sets python exception and returns NULL.
 

Functions

 PYRAVE_DEBUG_MODULE ("_cartesianvolume")
 Debug this module.
 
 PyDoc_STRVAR (_pycartesianvolume_type_doc, "The cartesian volume is a container for cartesian products. The member attributes should reflect some basic features of the included " "cartesian images as well as some basic information like object type.\n" "Since the parameter probably should contain a lot of attributes as defined in the ODIM H5 specification, these can be " "added within the attribute mapping (how/, what/, where/) groups. E.g. addAttribute(\"how/sthis\", 1.2).\n" "A list of avilable member attributes are described below. For information about member functions, check each functions doc.\n" "\n" "time - Time this cartesian product should represent as a string with format HHmmSS\n" "date - Date this cartesian product should represent as a string in the format YYYYMMDD\n" "source - The source for this product. Defined as what/source in ODIM H5. I.e. a comma separated list of various identifiers. For example. NOD:seang,WMO:1234,....\n" "objectType - The object type as defined in ODIM H5 this cartesian product should be defined as. Can be _rave.Rave_ObjectType_CVOL or _rave.Rave_ObjectType_COMP\n" "xscale - The scale in meters in x-direction.\n" "yscale - The scale in meters in y-direction.\n" "areaextent - A tuple of four representing the outer boundaries of this cartesian product. Defined as (lower left X, lower left Y, upper right X, upper right Y).\n" "projection - The projection object of type ProjectionCore that defines what projection that this cartesian product is defined with.\n" "xsize - The xsize of the area represented. ReadOnly, initialization occurs when adding first image.\n" "ysize - The ysize of the area represented. ReadOnly, initialization occurs when adding first image.\n" "\n" "Usage:\n" " import _cartesianvolume\n" " vol = _cartesianvolume.new()\n" " vol.addImage(cartesian1)\n" " vol.addImage(cartesian2)\n" " ...")
 
 MOD_INIT (_cartesianvolume)
 Initializes polar volume.
 

Variables

PyTypeObject PyCartesianVolume_Type
 

Detailed Description

Python version of the CartesianVolume API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2010-06-23

Macro Definition Documentation

◆ PYCARTESIANVOLUME_MODULE

#define PYCARTESIANVOLUME_MODULE

to get correct part in pycartesianvolume.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 python exception and returns NULL.

Function Documentation

◆ MOD_INIT()

MOD_INIT ( _cartesianvolume )

Initializes polar volume.

◆ PYRAVE_DEBUG_MODULE()

PYRAVE_DEBUG_MODULE ( "_cartesianvolume" )

Debug this module.

Variable Documentation

◆ PyCartesianVolume_Type

PyTypeObject PyCartesianVolume_Type

Type definitions