### Install ETo via Package Managers Source: https://eto.readthedocs.io/en/latest/installation.html Commands to install the ETo library using pip or conda. Ensure you have the necessary environment configured before running these commands. ```bash pip install eto ``` ```bash conda install -c mullenkamp eto ``` -------------------------------- ### Initialize ETo Package Source: https://eto.readthedocs.io/en/latest/usage.html Demonstrates how to import and initialize the main ETo class from the package. This class serves as the primary interface for ETo calculations and can be instantiated without initial parameters. It depends on the Pandas library for data manipulation. ```python from eto import ETo, datasets import pandas as pd et1 = ETo() ``` -------------------------------- ### Initialize ETo Class Source: https://eto.readthedocs.io/en/latest/package_references.html Initializes the ETo class, which handles parameter estimation for meteorological values and calculation of reference ET. The class can be initiated with empty parameters or will default to the param_est function. ```python eto_instance = eto.ETo(df=None, freq='D', z_msl=None, lat=None, lon=None, TZ_lon=None, z_u=2, K_rs=0.16, a_s=0.25, b_s=0.5, alb=0.23) ``` -------------------------------- ### Parameter Estimation with ETo Source: https://eto.readthedocs.io/en/latest/usage.html Shows how to load time-series data using Pandas and then use it to estimate parameters within the ETo class. The `param_est` function requires the dataset, frequency, altitude, latitude, longitude, and time zone longitude. Outputs are stored in `ts_param`. ```python ex1_path = datasets.get_path('example_daily') tsdata = pd.read_csv(ex1_path, parse_dates=True, infer_datetime_format=True, index_col='date') z_msl = 500 lat = -43.6 lon = 172 TZ_lon = 173 freq = 'D' et1.param_est(tsdata, freq, z_msl, lat, lon, TZ_lon) ``` -------------------------------- ### Estimate Parameters for ETo Calculation Source: https://eto.readthedocs.io/en/latest/package_references.html Estimates parameters required for calculating reference ET (ETo) using the FAO 56 method. This function can utilize a minimum of T_min and T_max for daily estimates or T_mean and RH_mean for hourly estimates, with optional inclusion of other meteorological parameters. It prioritizes parameter estimation based on available input data. ```python eto_instance.param_est(df_, freq='D', z_msl=None, lat=None, lon=None, TZ_lon=None, z_u=2, K_rs=0.16, a_s=0.25, b_s=0.5, alb=0.23) ``` -------------------------------- ### Calculate FAO ETo Source: https://eto.readthedocs.io/en/latest/usage.html Illustrates the calculation of evapotranspiration using the FAO method after parameters have been estimated. The `eto_fao()` function is called on the initialized ETo object, returning a Pandas Series containing the calculated ETo values. ```python eto1 = et1.eto_fao() ``` -------------------------------- ### ETo FAO 56 Estimation Source: https://eto.readthedocs.io/en/latest/package_references.html Estimates reference ET (ETo) using the FAO 56 methodology. It can utilize various meteorological parameters and supports interpolation for missing values. ```APIDOC ## ETo.eto_fao ### Description Function to estimate reference ET (ETo) from the FAO 56 paper using a minimum of T_min and T_max for daily estimates and T_mean and RH_mean for hourly, but optionally utilising the maximum number of available met parameters. The function prioritizes the estimation of specific parameters based on the available input data. ### Method (Implied function call, not a direct HTTP method) ### Endpoint (Not applicable, this is a library function) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example (Not applicable for library functions) ### Response #### Success Response - **ETo Series/DataFrame** (Series or DataFrame) - Estimated ETo in mm. Returns a Series if fill=False, otherwise a DataFrame with an additional ETo column. #### Response Example (Not applicable for library functions) ### Parameters - **max_ETo** (float or int) - Optional - The max realistic value of ETo (mm). - **min_ETo** (float or int) - Optional - The min realistic value of ETo (mm). - **interp** (False or str) - Optional - Should missing values be filled by interpolation? Either False if no interpolation should be performed, or a string of the interpolation method. See Pandas interpolate function for methods. Recommended interpolators are ‘linear’ or ‘pchip’. - **maxgap** (int) - Optional - The maximum missing value gap for the interpolation. ``` -------------------------------- ### ETo Hargreaves Estimation Source: https://eto.readthedocs.io/en/latest/package_references.html Estimates Hargreaves ETo using a minimum of T_min and T_max, with an option to use more meteorological parameters. Supports interpolation for missing data. ```APIDOC ## ETo.eto_hargreaves ### Description Function to estimate Hargreaves ETo using a minimum of T_min and T_max, but optionally utilising the maximum number of available met parameters. The function prioritizes the estimation of specific parameters based on the available input data. ### Method (Implied function call, not a direct HTTP method) ### Endpoint (Not applicable, this is a library function) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example (Not applicable for library functions) ### Response #### Success Response - **ETo Series/DataFrame** (Series or DataFrame) - Estimated ETo in mm. Returns a Series if fill=False, otherwise a DataFrame with an additional ETo column. #### Response Example (Not applicable for library functions) ### Parameters - **max_ETo** (float or int) - Optional - The max realistic value of ETo (mm). - **min_ETo** (float or int) - Optional - The min realistic value of ETo (mm). - **interp** (False or str) - Optional - Should missing values be filled by interpolation? Either False if no interpolation should be performed, or a string of the interpolation method. See Pandas interpolate function for methods. Recommended interpolators are ‘linear’ or ‘pchip’. - **maxgap** (int) - Optional - The maximum missing value gap for the interpolation. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.