Core class for the Daymet functions.
- class pydaymet.core.Daymet(variables=None, pet=None, time_scale='daily', region='na')¶
Base class for Daymet requests.
tuple, optional) – List of variables to be downloaded. The acceptable variables are:
daylDescriptions can be found here. Defaults to None i.e., all the variables are downloaded.
str, optional) – Method for computing PET. Supported methods are
hargreaves_samani, and None (don’t compute PET). The
penman_monteithmethod is based on Allen et al.1 assuming that soil heat flux density is zero. The
priestley_taylormethod is based on Priestley and TAYLOR2 assuming that soil heat flux density is zero. The
hargreaves_samanimethod is based on Hargreaves and Samani3. Defaults to
str, optional) – Data time scale which can be daily, monthly (monthly summaries), or annual (annual summaries). Defaults to daily.
str, optional) – Region in the US, defaults to na. Acceptable values are:
na: Continental North America
pr: Puerto Rico
Richard G Allen, Luis S Pereira, Dirk Raes, Martin Smith, and others. Crop evapotranspiration-guidelines for computing crop water requirements-fao irrigation and drainage paper 56. Fao, Rome, 300(9):D05109, 1998.
Charles Henry Brian Priestley and Robert Joseph TAYLOR. On the assessment of surface heat flux and evaporation using large-scale parameters. Monthly weather review, 100(2):81–92, 1972.
George H. Hargreaves and Zohrab A. Samani. Estimating potential evapotranspiration. Journal of the Irrigation and Drainage Division, 108(3):225–230, sep 1982. URL: https://doi.org/10.1061%2Fjrcea4.0001390, doi:10.1061/jrcea4.0001390.
- static check_dates(dates)¶
Check if input dates are in correct format and valid.
- dates_todict(self, dates)¶
Set dates by start and end dates as a tuple, (start, end).
- dates_tolist(self, dates)¶
Correct dates for Daymet accounting for leap years.
Daymet doesn’t account for leap years and removes Dec 31 when it’s leap year.
- years_todict(self, years)¶
Set date by list of year(s).