tephi.transforms

Tephigram transform support.

In this module:


tephi.transforms.convert_Tt2pT(temperature, theta)

Transform temperature and potential temperature into pressure and temperature.

Args:

  • temperature:

    Temperature in degC.

  • theta:

    Potential temperature in degC.

Returns:

Tuple of pressure, in mb or hPa, and temperature, in degC.


tephi.transforms.convert_Tt2xy(temperature, theta)

Transform temperature and potential temperature to native display coordinates.

Args:

  • temperature:

    Temperature in degC.

  • theta:

    Potential temperature in degC.

Returns:

Native display x and y coordinates.


tephi.transforms.convert_pT2Tt(pressure, temperature)

Transform pressure and temperature into temperature and potential temperature.

Args:

  • pressure:

    Pressure in mb or hPa.

  • temperature:

    Temperature in degC.

Returns:

Tuple of temperature, in degC, and potential temperature, in degC.


tephi.transforms.convert_pt2pT(pressure, theta)

Transform pressure and potential temperature into pressure and temperature.

Args:

  • pressure:

    Pressure in mb or hPa.

  • theta:

    Potential temperature in degC.

  • Returns:

    Tuple of pressure, in mb or hPa, and temperature, in degC.


tephi.transforms.convert_pw2T(pressure, mixing_ratio)

Transform pressure and mixing ratios to temperature.

Args:

  • pressure:

    Pressure in mb in hPa.

  • mixing_ratio:

    Dimensionless mixing ratios.

Returns:

Temperature in degC.


tephi.transforms.convert_xy2Tt(x_data, y_data)

Transform native display coordinates to temperature and potential temperature.

Args:

  • x_data:

    Native display x-coordinate/s.

  • y_data:

    Native display y-coordinate/s.

Returns:

Temperature, in degC, and potential temperature, in degC.


Tephigram transformation to convert from temperature and potential temperature to native plotting device coordinates.

class tephi.transforms.TephiTransform(shorthand_name=None)

Tephigram transformation to convert from temperature and potential temperature to native plotting device coordinates.

has_inverse = True
input_dims = 2
inverted()

Return the inverse transformation.

is_separable = False
output_dims = 2
transform_non_affine(values)

Transform from tephigram temperature and potential temperature to native plotting device coordinates.

Args:

  • values:

    Values to be transformed, with shape (N, 2).


Tephigram inverse transformation to convert from native plotting device coordinates to tephigram temperature and potential temperature.

class tephi.transforms.TephiTransformInverted(shorthand_name=None)

Tephigram inverse transformation to convert from native plotting device coordinates to tephigram temperature and potential temperature.

has_inverse = True
input_dims = 2
inverted()

Return the inverse transformation.

is_separable = False
output_dims = 2
transform_non_affine(values)

Transform from native plotting display coordinates to tephigram temperature and potential temperature.

Args:

  • values:

    Values to be transformed, with shape (N, 2).