Calculate potential evapotranspiration using Oudin formula
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 PEdaily_Oudin function.
Original source found at https://github.com/cran/airGR/blob/master/R/PEdaily_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)
Usage:
from potEvap import potEvap
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/month' or 'mm/year'
potEvap(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/month' or 'mm/year'
potEvap(temp, date, lat, latUnit, out_units)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file PE_Oudin-pazdror-0.0.1.tar.gz
.
File metadata
- Download URL: PE_Oudin-pazdror-0.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5e0614d393f44ea435617ea3f465b05e070b6e9fde5d85e62040ed6ac2240d3c
|
|
MD5 |
a40b743f077fcc5b74293957dac550d1
|
|
BLAKE2b-256 |
c6a0e2c30fd1f98d9c8dbbc3d832fe9510f507887be779bd4d7e6cc127d60f7c
|
File details
Details for the file PE_Oudin_pazdror-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: PE_Oudin_pazdror-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c990e3d4ae39cf21ca1ece4ad4db0cf534b0366b252b4f121d827be83d25ca98
|
|
MD5 |
f83fb269c648047cdb3df72ecf384e94
|
|
BLAKE2b-256 |
a1554030bb69fd2fa27f8f05e1e3fc0f893c4b37b8a587accf6682394e841c52
|