Skip to main content

Snow analysis tool for basin forecasting

Project description

snowtool

Snow analysis tool for basin forecasting.

snowtool manages a snowdb — an on-disk directory holding multiple gridded snow datasets (SNODAS, UA SWANN, SPIRES/INSTARR, …) — and answers per-basin queries against it: zonal statistics of snow variables crossed over elevation bands, aspect classes, and forest-cover thresholds. It ships as a CLI and a read-only HTTP API, both sitting on the same core.

A snowdb is a plain directory: a root config, a pourpoints/ catalog, and a data/<dataset>/ tree of per-date COGs. Basins are delineated from pourpoints and burned into per-dataset area-weighted masks; queries reduce datasets over those masks live. Raster I/O is rasterio + async-tiff + griffine — no system GDAL required.

Installation

Requires Python 3.14+. Install as a uv tool:

uv tool install snowtool

Or run from a clone for development — see CONTRIBUTING.md.

Configuration

snowtool reads its snowdb location from the SNOWTOOL_SNOWDB_CONFIG environment variable (or the per-command --config/-C option). Dotenv loading is disabled, so the variable must be set in the environment:

export SNOWTOOL_SNOWDB_CONFIG=/path/to/snowdb/snowdb_conf.json

Usage

The CLI is organized into command groups (snowdb, dataset, pourpoint, query, report, api, windows); run snowtool --help or snowtool <group> --help for details. Serve the read-only HTTP API with uvicorn snowtool.api.app:get_app --factory (or snowtool api serve).

See the documentation for full usage, deployment (including Windows/IIS), and generated CLI, HTTP API, and Python API reference.

Contributing

See CONTRIBUTING.md for development setup, testing, and project conventions.

Team members: see the development notes for additional context.

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

snowtool-0.1.0.tar.gz (338.4 kB view details)

Uploaded Source

Built Distribution

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

snowtool-0.1.0-py3-none-any.whl (215.6 kB view details)

Uploaded Python 3

File details

Details for the file snowtool-0.1.0.tar.gz.

File metadata

  • Download URL: snowtool-0.1.0.tar.gz
  • Upload date:
  • Size: 338.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for snowtool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a422a6922f9dc5946e2472d823b5bd4b992f5f69645090e12fea6b94cc7ef82f
MD5 de3969f3fddd85c4de4a1dc3d17ff16d
BLAKE2b-256 4f6f54ae37d549ac3acbfc2061bbe076a0c784e7b4da249f65f365954679ce7f

See more details on using hashes here.

Provenance

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

Publisher: release.yml on PSU-CSAR/snowtool

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

File details

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

File metadata

  • Download URL: snowtool-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 215.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for snowtool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcc28e6e5c99b66b5221e2c699109b0212715fa34e09bcea98d56ee0906dc0ba
MD5 f0ad866fe3ecb8e165ecdd30f0a2f987
BLAKE2b-256 2c703fba87b1df0c626f1c6d9e567215db68bb06eab230aa8ef9643cbb9db43f

See more details on using hashes here.

Provenance

The following attestation bundles were made for snowtool-0.1.0-py3-none-any.whl:

Publisher: release.yml on PSU-CSAR/snowtool

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