clouddrift.adapters.gdp6h.download

Contents

clouddrift.adapters.gdp6h.download#

clouddrift.adapters.gdp6h.download(url: str, tmp_path: str, drifter_ids: list | None = None, n_random_id: int | None = None)[source]#

Download individual NetCDF files from the AOML server.

Parameters#

drifter_idslist

List of drifter to retrieve (Default: all)

n_random_idint

Randomly select n_random_id drifter IDs to download (Default: None)

urlstr

URL from which to download the data (Default: GDP_DATA_URL). Alternatively, it can be GDP_DATA_URL_EXPERIMENTAL.

tmp_pathstr, optional

Path to the directory where the individual NetCDF files are stored (default varies depending on operating system; /tmp/clouddrift/gdp6h on Linux)

Returns#

outlist

List of retrieved drifters