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
.partialwrites 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
The server refused the credentials, or asked for a login. |
|
A file could not be downloaded or a remote dataset could not be opened. |
- exception seagrid.download.AuthenticationError#
Bases:
DownloadErrorThe server refused the credentials, or asked for a login.
Check
~/.netrc(NASA Earthdata),copernicusmarine loginor theusername/passwordkeys in.secrets.toml.
- exception seagrid.download.DownloadError#
Bases:
ExceptionA 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
Local cache files that survive interrupted downloads. |
|
Copernicus Marine Data Store access through |
|
Which data providers need an account, and whether its credentials are set up. |
|
NASA Earthdata access: login, CMR granule search and authenticated downloads. |
|
Exceptions raised by the seagrid download layer. |
|
The one HTTP(S) downloader used by every seagrid data source. |
|
Legacy HTTP download helper, kept for the 2.x series. |
|
File naming rules of NASA OB.DAAC Level-3 mapped products. |
|
Legacy OB.DAAC file-name helpers, kept for the 2.x series. |
|
Open remote datasets over OPeNDAP and cache them locally. |
|
Download packages that a "clean" install of seagrid leaves out. |
|
Legacy OPeNDAP-to-netCDF helper, kept for the 2.x series. |