A Python package and CLI for downloading various physical oceanographic datasets.
Reason this release was yanked:
ModuleNotFoundError on cli due to misconfigured hatch settings
Project description
physoce-datasets
A Python package and CLI for downloading various physical oceanographic datasets.
Install
Clone the package and navigate to the directory:
git clone https://github.com/andrew-s28/physoce-datasets.git
cd physoce-datasets
uv
uv is the preferred way to manage this package. Please refer to the uv installation instructions. Once uv is installed, you can initialize a virtual environment with uv sync or you can run any commands directly with uv run and uv will handle the venv creation and activation auto-magically.
pip
Of course, you can also use the classic pip, but you have to handle creating and activating the venv yourself:
python -m venv .venv
source .venv/bin/activate
pip install -e .
Credentials
Upon usage, this package may prompt for credentials to various data stores. Please refer to their documentation for how to access credentials and how credentials are stored:
CLI usage
Run the CLI with uv:
uv run datasets.py --help
Note that if you prefer the pip environment management, activate your environment according to the above and replace all uv run commands with python, e.g.:
python datasets.py --help
Available commands:
eke: Download altimetry-derived geostrophic velocities and compute eddy kinetic energy from Copernicus Marine Services.era5: ERA5 workflow group withsubmitanddownloadsubcommands.
Show command help:
uv run datasets.py eke --help
Options
All commands share the same base options:
--save-dir: Directory where the dataset file is written. If not set, defaults to the packagedata/directory.--start-date: Start date inYYYY-MM-DDformat. If not set, uses the earliest available date.--end-date: End date inYYYY-MM-DDformat. If not set, uses the latest available date
Run eke download with defaults:
uv run datasets.py eke
Submit ERA5 jobs with explicit options:
uv run datasets.py era5 submit --save-dir data --start-date 2020-01-01 --end-date 2020-01-31 --max-active-requests 10
Download and process ERA5 files once all remote jobs are successful:
uv run datasets.py era5 download --save-dir data
The ERA5 workflow writes its progress to submitted_requests.csv inside the save directory. If the script exits or is interrupted, rerun the same command to resume from saved state.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file physoce_datasets-0.1.0.tar.gz.
File metadata
- Download URL: physoce_datasets-0.1.0.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bab9a8fba48e764bacf35dc25e09816a4c184ff4e07dd2b3b9ded8a1d9e73b4
|
|
| MD5 |
82d61260d3cfb6ec224b4e21b6b502df
|
|
| BLAKE2b-256 |
316d1107dd726a150870e695db70201a29737811b2e7d54e5d46ab83ddc66e33
|
Provenance
The following attestation bundles were made for physoce_datasets-0.1.0.tar.gz:
Publisher:
build-publish.yaml on andrew-s28/physoce-datasets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
physoce_datasets-0.1.0.tar.gz -
Subject digest:
6bab9a8fba48e764bacf35dc25e09816a4c184ff4e07dd2b3b9ded8a1d9e73b4 - Sigstore transparency entry: 1499321764
- Sigstore integration time:
-
Permalink:
andrew-s28/physoce-datasets@44ba941953e64a2b08d10d87d5958555c97cd1ac -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/andrew-s28
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-publish.yaml@44ba941953e64a2b08d10d87d5958555c97cd1ac -
Trigger Event:
release
-
Statement type:
File details
Details for the file physoce_datasets-0.1.0-py3-none-any.whl.
File metadata
- Download URL: physoce_datasets-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
906770e5c37a047e0833f12a83dc8da853d228a4fcec51505670b57b9bb8266c
|
|
| MD5 |
201e8fd5ac39f07538ce1b097f004726
|
|
| BLAKE2b-256 |
1737b30b922c7e4b9add8031b99801576e19c5209de651a69f8c532b7d14d31d
|
Provenance
The following attestation bundles were made for physoce_datasets-0.1.0-py3-none-any.whl:
Publisher:
build-publish.yaml on andrew-s28/physoce-datasets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
physoce_datasets-0.1.0-py3-none-any.whl -
Subject digest:
906770e5c37a047e0833f12a83dc8da853d228a4fcec51505670b57b9bb8266c - Sigstore transparency entry: 1499321863
- Sigstore integration time:
-
Permalink:
andrew-s28/physoce-datasets@44ba941953e64a2b08d10d87d5958555c97cd1ac -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/andrew-s28
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-publish.yaml@44ba941953e64a2b08d10d87d5958555c97cd1ac -
Trigger Event:
release
-
Statement type: