Skip to main content

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 with submit and download subcommands.

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 package data/ directory.
  • --start-date: Start date in YYYY-MM-DD format. If not set, uses the earliest available date.
  • --end-date: End date in YYYY-MM-DD format. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

physoce_datasets-0.1.0.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

physoce_datasets-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for physoce_datasets-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6bab9a8fba48e764bacf35dc25e09816a4c184ff4e07dd2b3b9ded8a1d9e73b4
MD5 82d61260d3cfb6ec224b4e21b6b502df
BLAKE2b-256 316d1107dd726a150870e695db70201a29737811b2e7d54e5d46ab83ddc66e33

See more details on using hashes here.

Provenance

The following attestation bundles were made for physoce_datasets-0.1.0.tar.gz:

Publisher: build-publish.yaml on andrew-s28/physoce-datasets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file physoce_datasets-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for physoce_datasets-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 906770e5c37a047e0833f12a83dc8da853d228a4fcec51505670b57b9bb8266c
MD5 201e8fd5ac39f07538ce1b097f004726
BLAKE2b-256 1737b30b922c7e4b9add8031b99801576e19c5209de651a69f8c532b7d14d31d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page