This release is a pre-release and may not be stable for production use.
herbievtx
Download NOAA model data with Herbie and process it into HEC-DSS files with HEC-Vortex, scripted from Python through JPype.
Status: alpha (0.1.0). The API and CLI may change without notice.
What it does
- Uses Herbie to fetch GRIB2 data (GFS, HRRR, etc.), including subsetting by variable.
- Starts a JVM with Vortex on the classpath via JPype, so you can call Vortex classes (
DataReader,BatchImporter, ...) directly from Python. - Provides a
herbievtx setupcommand that downloads and unpacks a pinned Vortex release for your OS.
Requirements
- Python 3.13 or newer
- A Java runtime that JPype can find (for example,
JAVA_HOMEset) - Network access, for Herbie downloads and the one-time Vortex download
- Windows, Linux or macOS. Vortex is downloaded as a
.zip,.tar.gzor.dmgrespectively.
Installation
pip install herbievtx
# or
uv add herbievtx
Quick start
1. Install Vortex
herbievtx setup
This downloads Vortex 1.1.1 from the HEC GitHub releases and unpacks it into a per-user data directory.
| Command | Purpose |
|---|---|
herbievtx setup |
Download and install Vortex |
herbievtx setup --dest PATH |
Install to a custom location (overrides VORTEX_HOME) |
herbievtx setup --force |
Re-download even if already present |
herbievtx setup --quiet |
Hide the progress bar |
herbievtx where |
Print the resolved Vortex location |
herbievtx where --dest PATH |
Show the path for an override |
The Vortex location is resolved in this order:
- The
--destargument - The
VORTEX_HOMEenvironment variable - The per-user data directory (
platformdirs.user_data_dir("herbievtx")/vortex/<version>)
2. Download data and write DSS
from pathlib import Path
from jpype import JString
from herbievtx.jvm import ensure_jvm
ensure_jvm() # starts the JVM with Vortex on the classpath (default max heap 2g)
from java.util import ArrayList
from mil.army.usace.hec.vortex.io import BatchImporter
from herbie.core import Herbie
# Download a subset of GFS (precipitation rate only)
H = Herbie(date="2026-11-24", model="gfs", product="pgrb2.0p50", fxx=3)
grib = Path(H.download(search=":PRATE:surface:.*ave fcst:"))
# Process into HEC-DSS with Vortex
importer = (
BatchImporter.builder()
.inFiles(ArrayList([JString(grib.as_posix())]))
.variables(ArrayList([JString("Precipitation_rate_surface_3_Hour_Average")]))
.destination("vortex.dss")
.geoOptions({
"targetCellSize": "2000",
"targetEpsg": "5070",
"resamplingMethod": "Bilinear",
"minX": "-81.6251", "minY": "6.8749",
"maxX": "-77.8749", "maxY": "10.6251",
})
.writeOptions({
"partA": "SHG",
"partB": "Panama",
"partC": "PRECIPITATION",
"partF": "GFS 0p50",
"dataType": "PER-CUM",
"units": "MM",
})
.build()
)
importer.process()
A fuller example is in scripts/processGfs.py.
Notes:
- Call
ensure_jvm()before importing anyjava.*ormil.army.usace.hec.vortex.*modules. - A JVM can only be started once per Python process.
- To list the variables available in a file, use
DataReader.getVariables(path).
Troubleshooting
- "Vortex not found at ...": run
herbievtx setupor setVORTEX_HOME. - "No Vortex jars found under ...": the install is incomplete. Run
herbievtx setup --force. - JVM or DLL errors on Windows: confirm that a Java runtime is installed and that the Vortex
app,gdalandnetcdffolders exist under the install.
Development
git clone [https://github.com/jeffsuperglide/herbievtx](https://github.com/jeffsuperglide/herbievtx)
cd herbievtx
uv sync
uv run pytest # tests marked `integration` need network and Vortex
uv run pytest -m "not integration"
uv run ruff check .
Acknowledgments
- HEC-Vortex, US Army Corps of Engineers Hydrologic Engineering Center
- Herbie, by Brian Blaylock
- JPype
This project is not affiliated with or endorsed by USACE, HEC or NOAA.
License
Released under the MIT License.
Metadata
Release files for herbievtx 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| herbievtx-0.1.0a1.tar.gz | 110.7 kB | With provenance | Details for herbievtx-0.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| herbievtx-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for herbievtx-0.1.0a1-py3-none-any.whl |
Total release size: 118.7 kB
Release files / herbievtx-0.1.0a1.tar.gz
| Download URL | herbievtx-0.1.0a1.tar.gz |
|---|---|
| Size | 110.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e133c6715d9942bce56307bcb4b2de682d584ab84595e2e195baebe7b2783707
|
|
BLAKE2b-256 checksum How to use checksums |
c62e8951b12d180fae3b441f3be43ef110ae4350bb3392241b6acc9e5d955885
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / herbievtx-0.1.0a1-py3-none-any.whl
| Download URL | herbievtx-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3be619eb9d9eff18ae15992fda7f198c96c316311df789aaa9b9c6242426a8fa
|
|
BLAKE2b-256 checksum How to use checksums |
38021bc0083cefc720e1cdcc5429ca1d6d84decef67b09a498fe36472fb58ff6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for herbievtx 0.1.0a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for herbievtx-0.1.0a1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.