Closed jsignell closed 1 year ago
With the following set up:
import planetary_computer import pystac_client catalog = pystac_client.Client.open( "https://planetarycomputer.microsoft.com/api/stac/v1", modifier=planetary_computer.sign_inplace, ) collection = catalog.get_collection("daymet-daily-hi") asset = collection.assets["zarr-abfs"]
import xarray as xr ds = xr.open_zarr( asset.href, **asset.extra_fields["xarray:open_kwargs"], storage_options=asset.extra_fields["xarray:storage_options"] ) ds
import xarray as xr ds = xr.open_dataset(asset) ds
Closes #9
Note: code coverage is up to 93% after this PR.
With the following set up:
Without xpystac
With xpystac
Closes #9
Note: code coverage is up to 93% after this PR.