xarray_eop.open_datatree

Contents

xarray_eop.open_datatree#

xarray_eop.open_datatree(product_urlpath: str | Path, *, engine: str | None = None, **kwargs: Any) DataTree[Any]#

Open a tree data (zarr sentinel product) from bucket or local file system, based on datatree.DataTree

Parameters:
  • product_urlpath – Product path. It could be local path such as “/path/to/product/”, S3 bucket location as “s3://bucket/product” or fsspec-like chained url as “zip::s3://bucket/product.zip”

  • engine – engine to be used by xarray among [“zarr”,”SAFE”], by default None. It will try to guess the engine given the product extension

  • optional – engine to be used by xarray among [“zarr”,”SAFE”], by default None. It will try to guess the engine given the product extension

  • **kwargs – secret_alias:

Return type:

datatree.DataTree

Raises:
  • ValueError – if chunks is explicitely set to None

  • NotImplementedError – if engine not in [“zarr”,”SAFE”]