pet_calc#

Calculate potential evapotranspiration from meteorological inputs.

The module supports several PET methods, mainly temperature-based variants, and handles coordinate metadata, time-step detection, optional parallel processing, and NetCDF output on the original or requested grid.

Authors#

  • Matthias Kelbling

  • Simon Lüdke

  • Stephan Thober

Functions#

calculate_pet(out_file[, tavg_file, ...])

Calculate PET in parallel across time dimension and save to NetCDF.

e_rad_calculator(time, lat)

Calculate extraterrestrial radiation (MJ/m²/day) for a given day/lat.

get_time_and_freq(ds, stat_freq)

Return time as array and time frequencs as string.

pet_calculator(lat, time, stat_freq[, ...])

Calculate PET/ET0 using several formulations (as in your figure).

validate_tmin_tmax(tmin, tmax)

Test that tmin smaller or equal tmax at every point and time.