RAVE
pyctfilter.c File Reference

Python version of the MSG cloud-type filter. More...

#include "pyravecompat.h"
#include "arrayobject.h"
#include "rave.h"
#include "rave_debug.h"
#include "pyrave_debug.h"
#include "pycartesian.h"
#include "ctfilter.h"

Macros

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 
#define Raise(type, msg)
 Sets a Python exception.
 
#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 ("_ctfilter")
 Debug this module.
 
 PyDoc_STRVAR (_ctfilter_module_doc, "Filters product with cloud-top information. A quality field is created and added to the input product, containing removed echoes.\n" "Pixel values are from the CT product header. Probabilities of rain from:\n" "Dybbroe et al. 2005: NWCSAF AVHRR Cloud Detection and Analysis Using Dynamic Thresholds and Radiative Transfer Modelling. Part II. Tuning and Validation. J. Appl. Meteor. 44. p. 55-71. Table 11, page 69.\n" "Yes, we know the article addresses AVHRR and we are addressing MSG ...")
 
 MOD_INIT (_ctfilter)
 Initialize the _ctfilter module.
 

Detailed Description

Python version of the MSG cloud-type filter.

Author
Daniel Michelson (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2014-03-27

Macro Definition Documentation

◆ Raise

#define Raise ( type,
msg )
Value:
{PyErr_SetString(type,msg);}

Sets a Python exception.

◆ 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

◆ MOD_INIT()

MOD_INIT ( _ctfilter )

Initialize the _ctfilter module.

◆ PYRAVE_DEBUG_MODULE()

PYRAVE_DEBUG_MODULE ( "_ctfilter" )

Debug this module.