HEC-RAS model automation
Project description
ripple1d
Utilities for repurposing HEC-RAS models for use in the production of Flood Inundation Maps (FIMs) and rating curves for use in near-real time flood forecasting on the NOAA National Water Model network. Go to ReadTheDocs for more information on ripple1d.
Contents
- api : Source code for the Flask API and Huey queueing system for managing parallel compute.
- production (Deprecation Warning) : This directory contains scripts used by the development team for testing ripple1d outside of the API. The contents are not included in the PyPi package and may not be stable or up to date.
- ripple1d: Source code for the ripple1d library.
- tests: Unit tests.up
Requirements
OS Dependency: Ripple requires Python version >=3.10 and a Windows environment with Desktop Experience (GUI, not a headless Windows server) and HEC-RAS installed (currently version 6.3.1 is supported).
Installing Ripple
NOTE: Using a python virtual environment is not required but is highly recommended.
Using pip
-
Activate virtual environment as shown below and install the
ripple1d
package usingpip
using PowerShell:pip install ripple1d
Building from source
-
Activate virtual environment as shown below and build from source:
git clone https://github.com/dewberry/ripple1d.git cd ripple1d # if needed install build tools pip install setuptools wheel build python -m build_wheel pip install dist/*.whl # Either have PowerShell get the file name or look in the dist/ directory for the latest .whl file # Example filename: `ripple1d-0.3.0-py3-none-any.whl` $wheel = Get-ChildItem -Path dist -Filter *.whl | Select-Object -First 1 pip install $wheel.FullName
Testing the Installation
-
Verify the installation by importing
ripple1d
in a Python shell:python >>> import ripple1d >>> print(ripple1d.__version__)
-
Run the unit tests to ensure everything is working correctly:
pytest tests/
See the REST API documentation for available endpoints and usage.
Setting up a virtual environment
-
Install Python
-
Create a virtual Python environment using Command Prompt or PowerShell:
Option 1: Windows Command Prompt
%LOCALAPPDATA%\Programs\Python\Python312\python.exe -m venv %homepath%\venvs\venv-py312
Option 2: Windows PowerShell
$pythonExe = "$env:LOCALAPPDATA\Programs\Python\Python312\python.exe" $venvPath = "$env:USERPROFILE\venvs\venv-py312" & $pythonExe -m venv $venvPath
-
Activate (enter) the new virtual environment:
Option 1: Windows Command Prompt
%homepath%\venvs\venv-py312\Scripts\activate.bat
Option 2: Windows PowerShell
& "$env:USERPROFILE\venvs\venv-py312\Scripts\Activate.ps1"
-
Confirm that the activation worked.
- You should see that a parenthetical
(venv-py312)
has been added to the left side of your current line in the terminal. - Enter
where python
and confirm that the top result is sourcing Python from the new directory.
- You should see that a parenthetical
Credits and References
- Office of Water Prediction (OWP)
- Dewberry
- Raytheon
- Earth Resources Technology, Inc.
- ras2fim
- USACE HEC-RAS
- NOAA National Water Model (NWM)
Special Thanks to: David Bascom (FEMA), Christina Lindemer (FEMA), Dave Rosa (FEMA), Paul Rooney (FEMA), Julia Signell and Dan Pilone of Element84, and the developers of STAC.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ripple1d-0.3.10.tar.gz
.
File metadata
- Download URL: ripple1d-0.3.10.tar.gz
- Upload date:
- Size: 73.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f1151a628d7862fb7748e4b6434d680109f463a1ca25be1074293e0b0140e44 |
|
MD5 | 82422b6d63e3c2002d638cd20acef562 |
|
BLAKE2b-256 | bce3cfaad789746fa88566e5699a665783e283e002121eddf5bf68bd95bedfb2 |
File details
Details for the file ripple1d-0.3.10-py3-none-any.whl
.
File metadata
- Download URL: ripple1d-0.3.10-py3-none-any.whl
- Upload date:
- Size: 82.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f62a6fda466688e23d9a61854523cac633aa63afd9d0f57caf32e023577959a |
|
MD5 | a6f2c0b719207b151aa1622aea44f6c6 |
|
BLAKE2b-256 | 11b2b79aec627427f6dd77e401121eb0baffe47ffa32a29cf684df90d572dbfc |