Skip to main content

A web-based application used to explore National Water Model output and evaluation metrics.

Project description

National Water Model Evaluation Explorer

A web-based application used to explore National Water Model output and evaluation metrics. This package includes a command-line interface (CLI) for data retrieval and analysis, as well as a graphical user interface (GUI) for exploring evaluation results. The primary intended use-case is generating ad-hoc evaluations of National Water Model forecasts and analyses.

Installation

$ python3 -m venv env
$ source env/bin/activate
(env) $ pip install -U pip wheel
(env) $ pip install nwm_explorer

Command-line Interface

Once installed, the CLI is accessible from an activated python environment using nwm-explorer. For example,

$ nwm-explorer --help
Usage: nwm-explorer [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  build     Download and process data required by evaluations.
  display   Visualize and explore evaluation data.
  evaluate  Run a standard evaluation.
  export    Export predictions, observations, or evaluations to CSV.

Note that each command (build, display, evaluate, export will show additional information using --help)

Standard Usage

Generally, users will want to run the build, evaluate and display commands in sequence to generate and explore NWM evaluations. Suppose we wanted to perform an ad-hoc evaluation of NWM forecasts issued from 2023-10-01 to 2023-10-03. We would run the following operations to achieve this:

# First, retrieve and pair the required data
# This command will retrieve model output and matching observations.
# It will use up to 4 cores (j) to for data processing and retry retrievals up to twice (r).
$ nwm-explorer build -s 2023-10-01 -e 2023-10-03 -j 4 -r 2

# Second, run the standard evaluation over the same period.
# Note here we give this evaluation a special label (l). If a label isn't specified,
# The software will assign a generic label.
$ nwm-explorer evaluate -s 2023-10-01 -e 2023-10-03 -j 4 -l my_evaluation

# Lastly, we can view the results of this evaluation using the GUI
$ nwm-explorer display

Graphical User Interface

The GUI includes many options for exploring evaluation results including mapping of metrics, filtering by lead time or confidence bounds, regional histograms, hydrographs, and site information.

GUI

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

nwm_explorer-0.5.0.tar.gz (38.5 kB view details)

Uploaded Source

Built Distribution

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

nwm_explorer-0.5.0-py3-none-any.whl (47.1 kB view details)

Uploaded Python 3

File details

Details for the file nwm_explorer-0.5.0.tar.gz.

File metadata

  • Download URL: nwm_explorer-0.5.0.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for nwm_explorer-0.5.0.tar.gz
Algorithm Hash digest
SHA256 929af05ec6c33af2a98e50c1f145990e06a13a7d18825f0dfbb645c24cb94d23
MD5 7dbd38fe0363d96140de174f2c207923
BLAKE2b-256 567569ccea93e71f31048044cfe882ca372dec907b1881a87528a5066520431d

See more details on using hashes here.

File details

Details for the file nwm_explorer-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: nwm_explorer-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 47.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for nwm_explorer-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bdadf85c25d98b58a4f52f3e02781accf44f8e424f9dc4f72da385d62ce307d
MD5 9eeb70ab5a0627e5f4fc74c66a23fe94
BLAKE2b-256 2771df42edce8f69ad8a32744d14a9b01abc3d1f7c28785c9cb89b551208ce7c

See more details on using hashes here.

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