RAVE
pyprojectionpipeline.c File Reference

Python version of the projection API. More...

#include "pyravecompat.h"
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "pyprojectionpipeline.h"
#include "pyprojection.h"
#include "pyrave_debug.h"
#include "rave_alloc.h"

Macros

#define PYPROJECTIONPIPELINE_MODULE
 to get correct part of pyprojectionpipeline.h
 
#define raiseException_gotoTag(tag, type, msg)
 Sets a python exception and goto tag.
 
#define raiseException_returnNULL(type, msg)
 Sets a python exception and returns NULL.
 

Functions

 PYRAVE_DEBUG_MODULE ("_projectionpipeline")
 Debug this module.
 
 MOD_DIR_FORWARD_DECLARE (PyProjectionPipeline)
 
 PyDoc_STRVAR (_pyprojectionpipeline_type_doc, "Helper for forwarding from one projection to another regardless if it is PROJ.4 or > PROJ.4\n" "A list of avilable member attributes are described below. For information about member functions, check each functions doc.\n" "\n" "first - First projection.\n" "second - Second projection.\n" "\n" "Usage:\n" " import _projectionpipeline\n" " pipeline = _projectionpipeline.new(proj1, proj2)\n" " xy = pipeline.fwd(deg2rad((12.8544, 56.3675)))\n")
 
 MOD_INIT (_projectionpipeline)
 

Variables

PyTypeObject PyProjectionPipeline_Type
 

Detailed Description

Python version of the projection API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2021-10-14

Macro Definition Documentation

◆ PYPROJECTIONPIPELINE_MODULE

#define PYPROJECTIONPIPELINE_MODULE

to get correct part of pyprojectionpipeline.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 returns NULL.

Function Documentation

◆ PYRAVE_DEBUG_MODULE()

PYRAVE_DEBUG_MODULE ( "_projectionpipeline" )

Debug this module.