RAVE
pylazynodelistreader.c File Reference

Python version of the RaveIO API. More...

#include "pyravecompat.h"
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <pylazynodelistreader.h>
#include <arrayobject.h>
#include "pyravedata2d.h"
#include "pyrave_debug.h"
#include "rave_alloc.h"
#include "hlhdf.h"
#include "hlhdf_debug.h"

Macros

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 
#define PYLAZYNODELISTREADER_MODULE
 include correct part of pylazynodelistio.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 ("_lazynodelistreader")
 Name of the module debugged.
 
 PyDoc_STRVAR (_pylazynodelistreader_doc, "This instance wraps the Reader-routines used when for reading data through the lazy nodelist reader.\n" "\n" " * read()\n")
 
 PyDoc_STRVAR (_pylazynodelistio_module_doc, "This class provides functionality for reading HDF5 files without reading all datasets.\n" "Initially it will only read metadata and upon request the datasets." "\n" "To read a hdf-file:\n" ">>> import _lazynodelistio\n" ">>> obj = _lazynodelistio.open(\"seang_202001100000.h5\")\n" ">>> v = io.getRaveData2D(\"/dataset1/data1/data\")\n")
 Adds constants to the dictionary (probably the modules dictionary).
 
 MOD_INIT (_lazynodelistreader)
 

Variables

PyTypeObject PyLazyNodeListReader_Type
 

Detailed Description

Python version of the RaveIO API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2009-12-10

Macro Definition Documentation

◆ PYLAZYNODELISTREADER_MODULE

#define PYLAZYNODELISTREADER_MODULE

include correct part of pylazynodelistio.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

◆ PyDoc_STRVAR()

PyDoc_STRVAR ( _pylazynodelistio_module_doc ,
"This class provides functionality for reading HDF5 files without reading all datasets.\n" "Initially it will only read metadata and upon request the datasets." "\n" "To read a hdf-file:\n" ">> ,
import _lazynodelistio\n" "> > ,
obj = _lazynodelistio.open(\"seang_202001100000.h5\")\n" ">> )

Adds constants to the dictionary (probably the modules dictionary).

Parameters
[in]dictionary- the dictionary the long should be added to
[in]name- the name of the constant
[in]value- the value

◆ PYRAVE_DEBUG_MODULE()

PYRAVE_DEBUG_MODULE ( "_lazynodelistreader" )

Name of the module debugged.