RAVE
pypia.c File Reference

Python version of the PIA API. More...

#include "pyravecompat.h"
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "pyrave_debug.h"
#include "pypia.h"
#include "pyravefield.h"
#include "pypolarscan.h"
#include "pypolarscanparam.h"
#include "rave_alloc.h"

Macros

#define PYPIA_MODULE
 to get correct part in pypia.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 ("_pia")
 Debug this module.
 
 PyDoc_STRVAR (_pypia_module_doc, "Performs the path integrated attenuation according to the Hitchfeld-Bordan method\n\n" "Usage:\n" " import _pia\n" " pia = _pia.new()\n" " scan = _raveio.open(\"qcvol.h5\").object.getScan(0)\n" " pia.process(scan, \"DBZH\", True, True, True) # Booleans are addparam, reprocessquality, apply\n\n")
 
 MOD_INIT (_pia)
 

Variables

PyTypeObject PyPia_Type
 

Detailed Description

Python version of the PIA API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2025-12-04

Macro Definition Documentation

◆ PYPIA_MODULE

#define PYPIA_MODULE

to get correct part in pypia.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 ( "_pia" )

Debug this module.