Skip to main content

Calculate potential evapotranspiration from temperature

Project description

potEvap

Compute PE (Potential Evapotranspiration) using the formula from Oudin et al. (2005).

This is a pure python implementation of the R - AirGR PE_Oudin function.

Original source found at https://rdrr.io/cran/airGR/src/R/PE_Oudin.R

AirGR package can be found at https://cran.r-project.org/package=airGR

Changes from the original (R package) include:

  • Support single day as well as multiple days (list, numpy array, pandas etc.).
  • Get latitude in degrees or radians (default degrees).
  • Can choose output units (useful for GR2M and GR2A)
  • Can calculate single hourly value

Usage:

from from PE_Oudin.PE_Oudin import PE_Oudin

For single value:

temp = 20  # Degrees celcius
date = datetime(2018,1,1)
lat = 32  # Degrees (but can be set to radians)
latUnit = 'deg'  # Optional, and default. Can also be 'rad'
out_units = 'mm/day'  # Optional, and default. Can also be 'mm/hour', mm/month' or 'mm/year'

PE_Oudin.pe_oudin(temp, date, lat, latUnit, out_units)

For multiple values (list, pandas series etc.):

temp = [20, 25] # Degrees celcius
date = [datetime(2018,1,1), datetime(2018,1,1)]
lat = 32 # Degrees (but can be set to radians)
latUnit = 'deg'  # Optional, and default. Can also be 'rad'
out_units = 'mm/day'  # Optional, and default. Can also be 'mm/hour', 'mm/month' or 'mm/year'

PE_Oudin.pe_oudin(temp, date, lat, latUnit, out_units)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PE-Oudin, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size PE_Oudin-0.3-py3-none-any.whl (11.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size PE_Oudin-0.3.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page