Buckets:

ESA-philab/OceanDepths / examples /subset_by_region_time.py
rubencart's picture
download
raw
534 Bytes
from pathlib import Path
import pandas as pd
import xarray as xr
ROOT = Path(__file__).resolve().parents[1]
profiles = pd.read_parquet(ROOT / "indices/profiles.parquet")
subset = profiles[
(profiles["profile_date"] >= 20100101)
& (profiles["profile_date"] <= 20101231)
& (profiles["latitude"].between(30.0, 46.0))
& (profiles["longitude"].between(-6.0, 37.0))
]
ds = xr.open_zarr(ROOT / "data/argo_glors_ostia_ssh.zarr", consolidated=None)
subset_ds = ds.sel(profile=subset["profile"].to_numpy())
print(subset_ds)

Xet Storage Details

Size:
534 Bytes
·
Xet hash:
13f06a44f7636109e89b73c582743c0be9f6342f575d1308f967eeb85ef06bd5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.