assert_xr_encoding_attrs

assert_xr_encoding_attrs#

assert_xr_encoding_attrs(xda_1: DataArray | Dataset, xda_2: DataArray | Dataset, unchecked_attr: list | str | None = None)[source]#

Assert that the attributes and the encoding of xarray.DataArray/set are the same

Parameters:
  • xda_1 (AnyXrDataStructure) – First xarray

  • xda_2 (AnyXrDataStructure) – Second xarray

  • unchecked_attr (Union[list, str]) – Don’t check this list of attributes