shoot.profiles.download.Download

shoot.profiles.download.Download#

class shoot.profiles.download.Download(time, lat_min, lat_max, lon_min, lon_max, root_path, max_depth=1000)[source]#

Download and manage Argo profile data

Fetches Argo profile data from ERDDAP for a specified spatiotemporal region. Caches downloaded data by year to avoid repeated downloads.

Parameters:
  • time (xarray.DataArray) – Time coordinate range for data download.

  • lat_min (float) – Minimum latitude.

  • lat_max (float) – Maximum latitude.

  • lon_min (float) – Minimum longitude.

  • lon_max (float) – Maximum longitude.

  • root_path (str) – Root directory for caching downloaded data.

  • max_depth (float, default 1000) – Maximum depth (m) for profile data.

profiles#

Downloaded Argo profiles concatenated across all years.

Type:

xarray.Dataset

__init__(time, lat_min, lat_max, lon_min, lon_max, root_path, max_depth=1000)[source]#

Initialize downloader and fetch data

Parameters:
  • time (xarray.DataArray) – Time coordinate range for data download.

  • lat_min (float) – Minimum latitude.

  • lat_max (float) – Maximum latitude.

  • lon_min (float) – Minimum longitude.

  • lon_max (float) – Maximum longitude.

  • root_path (str) – Root directory for caching downloaded data.

  • max_depth (float, default 1000) – Maximum depth (m) for profile data.

Methods

from_ds(ds, root_path[, max_depth])

Create Download instance from a dataset's spatiotemporal extent