Skip to main content

waterledger-models

The models behind Water Ledger: the water large new users take, use up and send back, starting with data centers and battery cell plants, and the power that serves them.

pip install waterledger-models          # numpy and numba
pip install "waterledger-models[all]"   # with xarray ensembles, BMI components and STAC publishing
  • datacenter.physics: the cooling equations and parameter ranges, vectorized (Rutberg evaporative ratio as in USGS SIR 2013-5188, DOE FEMP water balance, Stull wet bulb), for each cooling plant inside the building (PLANTS: a shared facility loop, the default; a separate warm liquid loop; conventional chilled water; design 0007).
  • datacenter.kernel: the Monte Carlo's hourly heat balance and water compiled with Numba, one pass per hour; it agrees with physics to the last bit or two and is tested against it for every design and plant.
  • datacenter.cooling: the per-run Monte Carlo over decades of hourly weather for towers, hybrid, and dry coolers or air-cooled chillers with or without evaporative pads (each with a closed loop inside the building), for one plant (run_location) or each (run_plants); staff water at the campus's size.
  • battery: battery cell plants (design 0009): physics, the plant's heat, electricity, fuel and water hour by hour per GWh/yr of cells for NMC or LFP cells, with returns to the sewer, the source or (with a permit of its own) a stream; plant.run_location, the Monte Carlo at one location, with the data centers' designs, full-capacity peak and water at the power plants; bmi.BatteryCellBmi ([bmi]).
  • gas: new gas plants (design 0014): physics, output, fuel, heat and water hour by hour for the demand served, by technology (combined cycle, simple-cycle turbine, engine, solid oxide fuel cell, design 0019) and cooling design, where the wastewater goes; plant.run_location, the Monte Carlo on the shared runner; bmi.GasPlantBmi ([bmi]).
  • supply: power supply scenarios (design 0014): pv (PVWatts, tested against pvlib) and wind (the IEA 3.4 MW reference curve) from ERA5 radiation and 100 m wind; on a study's own forcing (design 0018), pv.hourly_from_ghi from global horizontal radiation alone (pv.decompose, pv.RANGES_AORC) and wind.hourly_from_10m with a month-by-hour shear table, and scenario.ForcingWeather to run scenarios on it; scenario, resources and a residual rule as the shared runner's extra=, with sizing; land, solar and wind projects' land, runoff and construction water.
  • heat_rejection: cooling towers, hybrid and dry coolers, assist's adiabatic pads, the loops' chillers, pumps and fans, their equipment ranges, psychrometrics and Latin hypercube sampling, shared by every water user; each user keeps its own operating settings (OPERATING: cycles of concentration, the operator's switch setting and the switch margin above the loop's limit).
  • once_through: once-through cooling from a Great Lake, shared by every water user: withdrawal from the heat and the rise, forced evaporation (Diehl et al. 2013), the lake's ranges and NOAA GLERL temperatures.
  • runs: the Monte Carlo at one location for any water user type (design 0010): the draws, the standard loads, daily statistics, water at the power plants and the result names; a type supplies its designs, draws and each draw's hours. extra= sees every draw's hourly electricity.
  • daily: daily totals and their statistics (average, 1-in-10-year peak day, months, worst year), shared by every water user.
  • grid: water at the power plants supplying any user's hourly electricity, at grid level (design 0008): a balancing authority's table by month, UTC hour and the user's temperature, average and marginal, with GridWaterBmi ([bmi]); RunWater, the plant water in any user's Monte Carlo, which the data center and battery runs both call.
  • datacenter.lake: lake-source (once-through) cooling for a campus, on once_through.
  • datacenter.ensemble: vectorized ensembles as xarray, dask across locations ([ensemble]).
  • datacenter.bmi: CoolingWaterBmi and LakeCoolingBmi, CSDMS BMI 2.0 with CSDMS Standard Names ([bmi]), on the public ScalarPointBmi base for components built on them. CoolingWaterBmi takes a withdrawal limit, dry mode and intake concentrations, and reports heat not removed, the return's temperature and the dissolved mass in it (design 0006); with no limit its outputs are unchanged.
  • datacenter.stac: ensemble results as zarr with a STAC catalog ([stac]).
  • hydrology: screening hydrology: SCS curve-number runoff, Theis drawdown and Glover stream depletion (on arrays).
  • runoff: runoff, sediment, nutrients, road salt and fuel from a developed site.
  • quantile_mapping: an ERA5 cell's hourly temperature and dew point corrected toward the stations within 100 km: shore stations for cells under 90% land, land stations for the rest (design 0005; land cells from model 1.9); temperature and dew point are each mapped on their own quantiles (from model 1.10), and the dew point never passes the temperature.
  • weather: hourly weather from the Open-Meteo archive, its best match (ERA5, ERA5-Land and, from 2017, IFS HRES); humidity conversions (Bolton 1980) and a record's design dry-bulb.

MODEL_VERSION is Water Ledger's model version (1.17), which changes when the numbers do; the package version (semver) changes with the code. They are independent. One model version covers every water user type; MODELS says which types a version changes and which model's snapshots it reads (snapshot_model()): model 1.12 adds battery cell plants and reads 1.11's.

Metadata

Release files for waterledger-models 3.25.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for waterledger-models 3.25.0
File Size Uploaded Provenance Actions
waterledger_models-3.25.0.tar.gz 128.0 kB With provenance Details for waterledger_models-3.25.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for waterledger-models 3.25.0
File Interpreter ABI Platform Actions
waterledger_models-3.25.0-py3-none-any.whl Python 3 none any Details for waterledger_models-3.25.0-py3-none-any.whl

Total release size: 274.3 kB

Release files / waterledger_models-3.25.0.tar.gz

Download URL waterledger_models-3.25.0.tar.gz
Size 128.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2db5f3807299bef5c7e63fba33a5c160891679c755c39209924f9ae38f4f6292
BLAKE2b-256 checksum
How to use checksums
699f54cabc01b55013a1f2847744b11cf01ef75d27c8e72ce5975adf7bd105fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 19, 2026.

Transparency log

Release files / waterledger_models-3.25.0-py3-none-any.whl

Download URL waterledger_models-3.25.0-py3-none-any.whl
Size 146.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7482baf0afc6b845d6efea8af9aa0145d35466943e030c1264cff5c728f6c329
BLAKE2b-256 checksum
How to use checksums
b426edee2edb3820285ba1d657d25ab4faf0b83270dd7a95f05174a70dabe3af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 19, 2026.

Transparency log

Security for waterledger-models 3.25.0

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.

Select from 2 files

Attestation for waterledger_models-3.25.0.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 Nov 19, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

3.25.0 This release

2 release files Full provenance

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