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 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.                                                                         │
│ --show-completion             Show completion for the current shell, to copy it or customize the installation.                                  │
│ --help                        Show this message and exit.                                                                                       │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ download   Download and process NWM and USGS data for evaluations.                                                                              │
│ pair       Resample and pair NWM predictions to USGS observations.                                                                              │
│ compute    Compute evaluation metrics for NWM-USGS pairs.                                                                                       │
│ evaluate   Run standard evaluation including download, pair, and compute. Parameters set in configuration file.                                 │
│ export     Export evaluation metrics to CSV.                                                                                                    │
│ display    Launch graphical application in the browser. Shutdown the application using ctrl+c.                                                  │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Note that each command (download, pair, compute, etc. will show additional information using --help)

Standard Usage

Generally, users will want to run the evaluate and display commands in sequence to generate and explore NWM evaluations. The evaluate command will run generate standard evaluation metrics given the parameters in the JSON configuration file. For example, the configuration snippet below will run an evaluation labeled test_run_1 on National Water Model forecasts and analyses from 2024-10-01 to 2024-10-03. Running nwm-explorer evaluate will download NWM and USGS time series, pair time series, and compute evaluation metrics. After compute completes, metrics can be explored using the GUI by running nwm-explorer display.

    "evaluations": [
        {
            "label": "test_run_1",
            "start_time": "2024-10-01",
            "end_time": "2024-10-03"
        }
    ],

Graphical User Interface

The GUI includes many options for exploring evaluation results including mapping of metrics, filtering by lead time or aggregation, regional CDFs, 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-1.0.0.tar.gz (45.6 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-1.0.0-py3-none-any.whl (50.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nwm_explorer-1.0.0.tar.gz
  • Upload date:
  • Size: 45.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nwm_explorer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 80126aa121734b75ed6f3076ed486ae012b4c93a03e2cda3aaac985752b232e4
MD5 d5e0c8d7b93040be613c20e33c7222fb
BLAKE2b-256 6ab1d85933642d3eeaa385b953ec17f78ddb6f38a30113cf5df84df40fac0b6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nwm_explorer-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 50.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nwm_explorer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74fba7dd428ee3377e124f791930397c95c20dd222a5fcac038fcef5cdf94546
MD5 a50769011c7801396a2bbf43990ee039
BLAKE2b-256 31e6fa07dbb7a34c42980c7bf32f3e43095abdc43be1b6d12ff44dfa75a53159

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