Replies: 1 comment 1 reply
|
Hi @hseybold, Glad to hear you are trying to use PyET! The Oudin method and PyET are not directly designed to do that as they are designed to work with daily values. For example, the Oudin equation internally computes the daily extraterrestrial radiation, which is computed based on the Day of the Year, which it gets from the time dimension of tmean, and latitude. You can:
tindex = pd.date_range("2000-1-1", "2000-12-31") # Create the time dimension Hope this helps! Best, |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have single layer geotiff rasters for which I want to calculate ET
I can read the data into a 2 dimensional xarray.
However pyet complains about a missing time dimension
I've tried to add a time dimension with a single date to the xarray but was not successful in getting pyet calculating ET (see example below)
Any hint how to calculate 2d ET maps with pyet from single band rasters is appreciated.
Thank you very much
Example
pet_oudin = pyet.oudin(tmean_ds, lat=lat), where tmean_ds and lat are loaded from single band geotiffs using
tmean = rioxarray.open_rasterio("./normals/PRISM_tmean_30yr_normal_800mM5_annual_bil.tif")
lat = rioxarray.open_rasterio("Lat.tif")
All reactions