Skip to main content

resdlem

Description

The resdlem python package provides a simple means of incorporating the Daily Lake Evaporation Model (DLEM) equilibrium function into python code.

It simply performs the calculation given the inputs. There is no unit support or other fluf. See below for inputs of the function and the units.

Code Example

from resdlem import equilibrium

devap = equilibrium.dlemEvap(
    lat=40,
    depth=20,
    elev=1000,
    solrad=270,
    ta=10,
    vpd=1,
    pres=89651.51985730644,
    ut=5,
    tw0=10,
    fch=1000,
    mth=5,
    tds=15_000,
    alb=0.1)

evap_hs = devap.evap_hs
tw = devap.tw

Function inputs

variable Description Units
lat Latitude degrees
depth Average depth of reservoir (capacity/area) meter
elev Elevation of water surface meter
solrad Incoming surface shortwave solar radiation W m-2 per day
ta Daily average temperature Celcius
vpd Vapor pressure deficit kPa
pres Atmospheric Pressure Pa
ut Wind speed at 2m m s-1
tw0 Water temp from previous timestep (tw) Celcius
fch Fetch length m
mth Month of interest NA
tds Total dissolved solids ppm
alb Water Body Albedo NA

Function outputs

variable Description Units
evap_hs Evaporation with Heat Storage mm/day
evap_hs_adj Evaporation with Heat Storage adjusted for total dissolved solids mm/day
evap_nhs Evaporation no Heat Storage (Penman Evaporation) mm/day
te Equilibrium Temperature Celcius
tw Water column temperature at end of timestep Celcius
rn Net solar radiation W m-2 per day
ierr Calculation code error (See Error Table)

Error Table (ierr)

value Description
0 Timestep is good
2 Depth is less than or equal to 0
3 Air temperature is less than wet bulb temperature
4 Downloading solar radiation is less than 0
5 Wind speed is less than 0.01m/s
6 Vapor Pressure Deficit is less than or euqal to 0
7 Vapor pressure deficit is greater than saturated vapor pressure

Citation

Zhao, B., Huntington, J., Pearson, C., Zhao, G., Ott, T., Zhu, J., Weinberg, A., Holman, K. D., Zhang, S.,Anderson, R., Strickler, M., Cotter, J., Fernando, N., Nowak, K., & Gao, H. (2024).Developing a general Daily Lake Evaporation Model and demonstrating its application inthe state of Texas. Water Resources Research, 60(3), e2023WR036181. Available at https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2023WR036181

Metadata

Release files for resdlem 0.0.4

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

Source distribution (sdist)

Source distribution for resdlem 0.0.4
File Size Uploaded Provenance
resdlem-0.0.4.tar.gz 8.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for resdlem 0.0.4
File Interpreter ABI Platform
resdlem-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / resdlem-0.0.4.tar.gz

Download URL resdlem-0.0.4.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1664272db97293f2f80c33c688daf16de1e1d1dbe134cc3b524690a525791413
BLAKE2b-256 checksum
How to use checksums
ebfbdcf6d467adc987aa622b4130438b460a7fdacea1b08646c8f1916cac1be7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.13

Release files / resdlem-0.0.4-py3-none-any.whl

Download URL resdlem-0.0.4-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d6036151b3c08b91fd16448c42b6fd8bd689ebe6a736c80633e5055075cd73a
BLAKE2b-256 checksum
How to use checksums
29587a77a6aa1bb92231754b181213670c47e7d03e30552f0227a6894fc704d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.13

Security for resdlem 0.0.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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