How-To Guides#

Recipes for a reader who already knows what they want. Each page answers one question and stops there.

They assume you can already draw a tephigram. If you cannot yet, the tutorials are the shorter way in, and the gallery shows finished examples to work backwards from.

Every python block on these pages is executed by the test suite, as one script per page and on every supported Python version, so what you copy is what ran.

Read a Sounding From an Archive

An ascent out of the IGRA archive, or the Wyoming service.

Decode BUFR With ecCodes

A format tephpy does not read, decoded with ecCodes.

Build a Sounding From Your Own Data

Arrays, a pandas.DataFrame or an xarray.Dataset you already hold.

Frame the View

Fit the view to the data, or fix it so two figures compare.

Emphasise a Reference Isopleth

Draw one member of a family heavier than the rest.

Label and Compose the Diagram

Label the edges, and set a tephigram beside another figure.

Add the tephpy Logo

Brand a figure with the project mark.

Configure tephpy From a File

Set your own defaults once, in a file.

Work With Units

What the API takes, and what it hands back.