Skip to main content

A Python package and CLI for downloading various physical oceanographic datasets.

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.1.tar.gz (371.9 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.1-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file physoce_datasets-0.1.1.tar.gz.

File metadata

  • Download URL: physoce_datasets-0.1.1.tar.gz
  • Upload date:
  • Size: 371.9 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.1.tar.gz
Algorithm Hash digest
SHA256 9e70ccce1253712d774c82ffcfc57cd269fc82b0392c3c85d497d2f4c36df556
MD5 f8e40ee2540af9da22a1e2c69ec9eed0
BLAKE2b-256 2db8f15120437434390fe263c54788a45bf75e8607e23d4dec2d1727db040fe7

See more details on using hashes here.

Provenance

The following attestation bundles were made for physoce_datasets-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for physoce_datasets-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 affa286fc6485d54a34516a19d09b70de143cbdf1ddff840bc75ff6ada23cab7
MD5 c08952e9578c289ec020374beb9c396f
BLAKE2b-256 7ee7ce4cce5b558710763a5e4175ff23d9351cacaf419bc9c5c5bdaf63d42a8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for physoce_datasets-0.1.1-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