BUFR object

class Bufr

Metview’s Bufr object represents BUFR data. As this format is very complicated to work with, its only method is write().

Some Bufr objects can also be plotted directly if they conform to certain standards.

Bufr objects can also be passed to the thermo_bufr() function in order to compute a thermodynamic diagram.

To work directly with the values of BUFR data in Metview, you must filter it using one of Metview’s filters.

Construction

A BUFR file can be read from disk using read():

import metview as mv

bu = mv.read("obs.bufr")

Methods and functions

This is the list of all the functions related to Bufr data.

append()

Appends the given data to file

bufr_picker()

Filters Bufr data with complex structure

cleanfile()

Removes unwanted header padding from GRIB and Bufr files

file()

Returns a file handler for the specified filename

obsfilter()

Filters Bufr data

read()

Reads the given file and returns a variable of the appropriate type

retrieve()

Retrieves data from MARS

thermo_bufr()

Generates thermodynamical profile from Bufr

write()

Writes/appends the given data to file