pytesmo.io.bufr package

Submodules

pytesmo.io.bufr.bufr module

Created on May 21, 2014

@author: Christoph Paulik christoph.paulik@geo.tuwien.ac.at

class pytesmo.io.bufr.bufr.BUFRReader(filename, kelem_guess=500, max_tries=10)[source]

Bases: object

BUFR reader based on the pybufr-ecmwf package but faster

Parameters
  • filename (string) – filename of the bufr file

  • kelem_guess (int, optional) – if the elements per variable in as message are known please specify here. Otherwise the elements will be found out via trial and error This works most of the time but is not 100 percent failsafe Default: 500

  • max_tries (int, optional) – the Reader will try max_tries times to unpack a bufr message. Some messages can not be read even if the array sizes are ok. Most of the time these files are corrupt.

messages()[source]
Raises

IOError: – if a message cannot be unpacked after max_tries tries

Returns

data

Return type

yield results of messages

Module contents