mapshader.transforms.squeeze#

mapshader.transforms.squeeze(arr, dim)[source]#

Return a new xarray.DataArray with squeezed data.

Parameters:
  • arr (xarray.DataArray) – The data source.

  • dim (str) – Drop a specific field name.

Returns:

squeezed_data – The squeezed data.

Return type:

xarray.DataArray