seagrid.download#

The download layer shared by every seagrid data source.

Modules#

http

The one streamed HTTP(S) downloader (fetch()), remote existence checks, directory listings, decompression.

earthdata

NASA Earthdata login, CMR search and authenticated downloads.

copernicus

Copernicus Marine file downloads and subsets.

opendap

Remote OPeNDAP datasets and local caching to netCDF/Zarr.

obpg

NASA OB.DAAC L3 file naming rules.

cache

.partial writes and completeness checks of cached files.

optional

The download packages a clean install may leave out.

credentials

Which providers need an account, and whether its credentials are set up.

The service modules are imported on first use, so importing seagrid.download does not load earthaccess or copernicusmarine.

Exceptions#

DownloadError

Any failed download.

AuthenticationError

Missing or refused credentials (a DownloadError).

Exceptions

AuthenticationError

The server refused the credentials, or asked for a login.

DownloadError

A file could not be downloaded or a remote dataset could not be opened.

exception seagrid.download.AuthenticationError#

Bases: DownloadError

The server refused the credentials, or asked for a login.

Check ~/.netrc (NASA Earthdata), copernicusmarine login or the username/password keys in .secrets.toml.

exception seagrid.download.DownloadError#

Bases: Exception

A file could not be downloaded or a remote dataset could not be opened.

Raised for connection failures, HTTP errors, empty search results, checksum mismatches and interrupted transfers. The underlying exception, if any, is attached as __cause__.

Modules

cache

Local cache files that survive interrupted downloads.

copernicus

Copernicus Marine Data Store access through copernicusmarine.

credentials

Which data providers need an account, and whether its credentials are set up.

earthdata

NASA Earthdata access: login, CMR granule search and authenticated downloads.

errors

Exceptions raised by the seagrid download layer.

http

The one HTTP(S) downloader used by every seagrid data source.

http_server

Legacy HTTP download helper, kept for the 2.x series.

obpg

File naming rules of NASA OB.DAAC Level-3 mapped products.

obpg_filedata

Legacy OB.DAAC file-name helpers, kept for the 2.x series.

opendap

Open remote datasets over OPeNDAP and cache them locally.

optional

Download packages that a "clean" install of seagrid leaves out.

pydap

Legacy OPeNDAP-to-netCDF helper, kept for the 2.x series.