24.12.2013 Views

wradlib Documentation - Bitbucket

wradlib Documentation - Bitbucket

wradlib Documentation - Bitbucket

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>wradlib</strong> <strong>Documentation</strong>, Release 0.1.1<br />

– descnames: a dictionary of descriptor names<br />

– descvals: dictionary of descriptor values<br />

Examples<br />

>>> import <strong>wradlib</strong>.bufr as bufr<br />

>>> buffile = "<strong>wradlib</strong>/examples/data/test.buf"<br />

>>> data, metadata = bufr.decodebufr(buffile)<br />

>>> metadata<br />

>>> data.shape<br />

3.2.2 <strong>wradlib</strong>.bufr.parse_desctable<br />

<strong>wradlib</strong>.bufr.parse_desctable(fpath)<br />

Parses the decriptor table and returns a dictionary of descriptors<br />

Parameters fpath : string representing the path to the descriptor table file<br />

Returns output : a tuple of two dictionaries (descnames, descvals)<br />

• descnames: a dictionary of descriptor names<br />

• descvals: dictionary of descriptor values<br />

3.3 Data Transformation<br />

Module transforms data e.g. from RVP-units to dBZ-values to Z-values and vice versa.<br />

rvp2dBZ<br />

decibel<br />

idecibel<br />

r2depth<br />

Calculates dBZ-values from DWD RVP6 values as given in DX-product<br />

Calculates the decibel representation of the input values<br />

Calculates the inverse of input decibel values<br />

Computes rainfall depth (mm) from rainfall intensity (mm/h)<br />

3.3.1 <strong>wradlib</strong>.trafo.rvp2dBZ<br />

<strong>wradlib</strong>.trafo.rvp2dBZ(x)<br />

Calculates dBZ-values from DWD RVP6 values as given in DX-product files.<br />

Parameters x : a number or an array<br />

3.3.2 <strong>wradlib</strong>.trafo.decibel<br />

<strong>wradlib</strong>.trafo.decibel(x)<br />

Calculates the decibel representation of the input values dBZ = 10*log10(z)<br />

Parameters x : a number or an array (must not be

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!