Download examples/open_with_xarray.py from ESA-philab/OceanDepths: direct link, hf CLI and curl.
- Browser
- Download file 179 Bytes
-
https://huggingface.co/datasets/ESA-philab/OceanDepths/resolve/main/examples/open_with_xarray.py
- Command line
-
hf download hf://datasets/ESA-philab/OceanDepths/examples/open_with_xarray.py
-
curl -L -o open_with_xarray.py https://huggingface.co/datasets/ESA-philab/OceanDepths/resolve/main/examples/open_with_xarray.py
179 Bytes
| from pathlib import Path | |
| import xarray as xr | |
| ROOT = Path(__file__).resolve().parents[1] | |
| ds = xr.open_zarr(ROOT / "data/argo_glors_ostia_ssh.zarr", consolidated=None) | |
| print(ds) | |