RAVE
|
Python version of the RaveField API. More...
#include "pyravecompat.h"
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "pyrave_debug.h"
#include "pyravefield.h"
#include <arrayobject.h>
#include "rave_alloc.h"
#include "raveutil.h"
#include "rave.h"
Macros | |
#define | NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION |
#define | PYRAVEFIELD_MODULE |
to get correct part of pycartesian.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 ("_ravefield") | |
Debug this module. | |
MOD_DIR_FORWARD_DECLARE (PyRaveField) | |
PyDoc_STRVAR (_pyravefield_type_doc, "A data container that is used as for example quality fields or other similar constructs.\n\n" "The only 3 member attributes that are accessible are:\n" "xsize - xsize of data field (read only)\n" "ysize - ysize of data field (read only)\n" "datatype - data type (read only)\n" "\n" "These attributes will be set when initializing the field with setData.\n" "\n" "Since a lot of RAVE has been developed with ODIM H5 in mind, it is also possible to add arbitrary attributes in " "various groups, e.g. c.addAttribute(\"how/this\", 1.2) and so on.\n\n" "\n" "Usage:\n" " import _ravefield, numpy\n" " dfield = _ravefield.new()\n" " dfield.setData(numpy.array([[1,2],[3,4]],numpy.uint8))") | |
MOD_INIT (_ravefield) | |
Variables | |
PyTypeObject | PyRaveField_Type |
Python version of the RaveField API.
#define PYRAVEFIELD_MODULE |
to get correct part of pycartesian.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.
PYRAVE_DEBUG_MODULE | ( | "_ravefield" | ) |
Debug this module.