RAVE
pypolarnavinfo.c File Reference

Python version of the PolarNavigationInfo API. More...

#include "pyravecompat.h"
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "pyrave_debug.h"
#include "rave_types.h"
#include "pypolarnavinfo.h"
#include "rave_alloc.h"

Macros

#define PYPOLARNAVIGATIONINFO_MODULE
 to get correct part in pypolarnavinfo.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 ("_pypolarnavinfo")
 Debug this module.
 
 PyDoc_STRVAR (_pypolarnavinfo_doc, "This class contains navigation information associated with a particular polar object like scan or volume.\n" "\n" "The instance is used as a container for a number of attributes that are relevant when defining navigating in a polar object.\n" "Members are:\n\n" " * lon - a double representing the longitude in radians.\n\n" " * lat - a double representing the latitude in radians.\n\n" " * height - a double representing the height in meters.\n\n" " * actual_height - a double representing the actual height in meters.\n\n" " * distance - a double representing the distance to the radar in meters.\n\n" " * range - a double representing the range along the ray in meters.\n\n" " * actual_range - a double representing the actual range along the ray in meters.\n\n" " * azimuth - a double representing the azimuth in radians\n\n" " * actual_azimuth - a double representing the actual azimuth in radians\n\n" " * elevation - a double representing the elevation in radians\n\n" " * otype - an integer representing the type of object this information comes from, either scan or pvol\n\n" " * ei - an integer representing the elevation index (if applicable)\n\n" " * ri - an integer representing the range index\n\n" " * ai - an integer representing the ray (azimuth) index\n\n" "\n")
 
 MOD_INIT (_pypolarnavinfo)
 

Variables

PyTypeObject PyPolarNavigationInfo_Type
 

Detailed Description

Python version of the PolarNavigationInfo API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2024-05-21

Macro Definition Documentation

◆ PYPOLARNAVIGATIONINFO_MODULE

#define PYPOLARNAVIGATIONINFO_MODULE

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

Debug this module.