variables (str or list or tuple, optional) – List of variables to be downloaded. The acceptable variables are:
tmin, tmax, prcp, srad, vp, swe, dayl
Descriptions can be found here.
Defaults to None i.e., all the variables are downloaded.
pet (str, optional) – Method for computing PET. Supported methods are
penman_monteith, priestley_taylor, hargreaves_samani, and
None (don’t compute PET). The penman_monteith method is based on
Allen et al.[1] assuming that soil heat flux density is zero.
The priestley_taylor method is based on
Priestley and TAYLOR[2] assuming that soil heat flux density is zero.
The hargreaves_samani method is based on Hargreaves and Samani[3].
Defaults to None.
snow (bool, optional) – Compute snowfall from precipitation and minimum temperature. Defaults to False.
time_scale (str, optional) – Data time scale which can be daily, monthly (monthly summaries),
or annual (annual summaries). Defaults to daily.
region (str, optional) – Region in the US, defaults to na. Acceptable values are:
t_rain (float, optional) – Threshold for temperature for considering rain, defaults to 2.5 degrees C.
t_snow (float, optional) – Threshold for temperature for considering snow, defaults to 0.6 degrees C.
Returns:
pandas.DataFrame or xarray.Dataset – Input data with snow(mm/day) column if input is a pandas.DataFrame,
or snow variable if input is an xarray.Dataset.