cf.Data.uncompress

Data.uncompress(inplace=False)[source]

Uncompress the underlying data.

Compression saves space by identifying and removing unwanted missing data. Such compression techniques store the data more efficiently and result in no precision loss.

Whether or not the data is compressed does not alter its functionality nor external appearance.

Data that is already uncompressed will be returned uncompressed.

The following type of compression are available:

  • Ragged arrays for discrete sampling geometries (DSG). Three different types of ragged array representation are supported.

  • Compression by gathering.

New in version 3.0.6.

Parameters
inplace: bool, optional

If True then do the operation in-place and return None.

Returns
Data or None

The uncompressed data, or None of the operation was in-place.

Examples:

>>> d.get_compression_type()
'ragged contiguous'
>>> d.uncompress()
>>> d.get_compression_type()
''