Logo Iris 1.12

Previous topic

iris.fileformats.pp

Next topic

iris.fileformats.pp_rules

This Page

iris.fileformats.pp_packing

This extension module provides access to the underlying libmo_unpack library functionality.

Deprecated since version 1.10: iris.fileformats.pp_packing is deprecated. Please install mo_pack (https://github.com/SciTools/mo_pack) instead. This provides additional pack/unpacking functionality.

In this module:

iris.fileformats.pp_packing.rle_decode(data, lbrow, lbnpt, bmdi)

Uncompress PP field data that has been compressed using Run Length Encoding.

Provides access to the libmo_unpack library function runlenDecode. Decodes the field by expanding out the missing data points represented by a single missing data value followed by a value indicating the length of the run of missing data values.

Args:

  • data (numpy.ndarray):

    The raw field byte array to be uncompressed.

  • lbrow (int):

    The number of rows in the grid.

  • lbnpt (int):

    The number of points (columns) per row in the grid.

  • bmdi (float):

    The value used in the field to indicate missing data points.

Returns:
numpy.ndarray, 2d array containing normal uncompressed field data.

Deprecated since version 1.10: iris.fileformats.pp_packing is deprecated. Please install mo_pack (https://github.com/SciTools/mo_pack) instead. This provides additional pack/unpacking functionality.

↑ top ↑

iris.fileformats.pp_packing.wgdos_unpack(data, lbrow, lbnpt, bmdi)

Unpack PP field data that has been packed using WGDOS archive method.

Provides access to the libmo_unpack library function Wgdos_Unpack.

Args:

  • data (numpy.ndarray):

    The raw field byte array to be unpacked.

  • lbrow (int):

    The number of rows in the grid.

  • lbnpt (int):

    The number of points (columns) per row in the grid.

  • bmdi (float):

    The value used in the field to indicate missing data points.

Returns:
numpy.ndarray, 2d array containing normal unpacked field data.

Deprecated since version 1.10: iris.fileformats.pp_packing is deprecated. Please install mo_pack (https://github.com/SciTools/mo_pack) instead. This provides additional pack/unpacking functionality.