Uncompress the data.

Only affects data that is compressed by convention, i.e.

  • Ragged arrays for discrete sampling geometries (DSG) and simple geometry cell definitions.

  • Compression by gathering.

  • Compression by coordinate subsampling.

Data that is already uncompressed is returned unchanged. Whether the data is compressed or not does not alter its functionality nor external appearance, but may affect how the data are written to a dataset on disk.

New in version 3.0.6.

inplace: bool, optional

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

Data or None

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


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