RAVE
pyscansun.c File Reference

Python interface to KNMI's sun scanning functionality. More...

#include <pyravecompat.h>
#include "rave.h"
#include "rave_debug.h"
#include "pypolarvolume.h"
#include "pypolarscan.h"
#include "pyrave_debug.h"
#include "scansun.h"
#include "pyraveio.h"

Macros

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 
#define Raise(type, msg)
 Sets a Python exception.
 
#define raiseException_returnNULL(type, msg)
 Sets a Python exception and return NULL.
 

Functions

 PYRAVE_DEBUG_MODULE ("_scansun")
 Debug this module.
 
 PyDoc_STRVAR (_scansun_module_doc, "This module is based on KNMI's sun scanning functionality\n" "Original (but updated) preamble\n" "This program scans volume reflectivity data in ODIM_H5 format for solar\n" "interferences using SMHI's HL-HDF library. Added features:\n" "1) Use of minimum elevation and range is changed to use of minimum height and range\n" "2) Received solar power is normalized to the band width")
 
 MOD_INIT (_scansun)
 Initialize the _scansun module.
 

Detailed Description

Python interface to KNMI's sun scanning functionality.

Author
Daniel Michelson (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2011-01-19

Macro Definition Documentation

◆ Raise

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

Sets a Python exception.

◆ 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 ( _scansun )

Initialize the _scansun module.

◆ PYRAVE_DEBUG_MODULE()

PYRAVE_DEBUG_MODULE ( "_scansun" )

Debug this module.