Skip to main content

A package to calulate equilibrium function for dlem

Project description

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)

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) Celsius
fch Fetch length m
mth Month of interest NA
tds Total dissolved solids ppm

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

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

resdlem-0.0.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

resdlem-0.0.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file resdlem-0.0.2.tar.gz.

File metadata

  • Download URL: resdlem-0.0.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for resdlem-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c862b0b102972ac507da592b9ce08f1b3865f3f6fd7a0d0b9fcb1d9747212e9f
MD5 e92004da2d56b4e1efc1637300a25921
BLAKE2b-256 33801a963f935e4aaf3a18b413358fdf5fcafc187ea2f149cf7fcd28b35e4c83

See more details on using hashes here.

File details

Details for the file resdlem-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: resdlem-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for resdlem-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 777d5febca1e6d6c83885370c50219f55c2ff0ee1931981e4652747a7c3d967c
MD5 da99b61bab42f55b7316d6fb5b1db756
BLAKE2b-256 6cfb1c9494a5f7bb29d7c6d1dc6b34e5f29a721aa59a011403c64403ea3ff96d

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