Skip to main content

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 has top-level commands (init, status, doctor, stats) and command groups (dataset, pourpoint, api, windows); run snowtool --help or snowtool <command|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.

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.6.0.tar.gz (639.1 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.6.0-py3-none-any.whl (404.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for snowtool-0.6.0.tar.gz
Algorithm Hash digest
SHA256 22c3113fe4b9f5ec2dc9d7d6024a60f80567cdcc1dc33d059b7feeb7f4e7e6b5
MD5 ce307b9584a514ad0f98c61a91f464c5
BLAKE2b-256 ae9694e0e14483bb9a9dabbbf535163e7dc5f02a2ffbff166179bdaac309faab

See more details on using hashes here.

Provenance

The following attestation bundles were made for snowtool-0.6.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.6.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for snowtool-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 092063b04d517b2521e5e249ec34d4f649b5432323fc27ab8e3f5a836cb050a8
MD5 03cc766d2d6be49b2f9bd44cf1aef84b
BLAKE2b-256 00fb7de3b31bdf9554c10147060a339a404d6428af9fe5bd4a4e44870d5820ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for snowtool-0.6.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.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page