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.

Source Distribution

PE_Oudin-0.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

PE_Oudin-0.3-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file PE_Oudin-0.3.tar.gz.

File metadata

  • Download URL: PE_Oudin-0.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for PE_Oudin-0.3.tar.gz
Algorithm Hash digest
SHA256 1b828b21af27b262c7699ea5f20673e0a0c40e14bb05d648b85926dc2ce19765
MD5 b6120743ef5dad4df26e65138bc34eec
BLAKE2b-256 a5b369722deb7eaef7984706fd81956d24211c1cb4ce169030d4ecb1b4175ddc

See more details on using hashes here.

File details

Details for the file PE_Oudin-0.3-py3-none-any.whl.

File metadata

  • Download URL: PE_Oudin-0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for PE_Oudin-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5055f6407c825728a2c9b4e23042e50fc469fca564a9525f0986bc7634cd67e5
MD5 5e39442b49a6f0d99cb11bc397c7bb0c
BLAKE2b-256 abcdb5c3780511be016a809441c836346b46a605fea5ea400601d3d84e915fd7

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