handle_Agromet_Chile: Handle weather data downloaded from the Agromet Chilean...

handle_agromet_chileR Documentation

Handle weather data downloaded from the Agromet Chilean database

Description

This function convert a previously downloaded weather file into a dataframe in the chillR format. For now, the function only works with hourly records. The downloading part must be done directly by the user through accessing the agromet website Once there, the user needs to select the weather station, the variables requested, the time-step and the period of interest. Finally, the data must be downloaded in Excel or CSV format.

Usage

handle_agromet_chile(inputfile, vars = c("Temp", "Humidity"))

Arguments

inputfile

Character string or dataframe. This is the complete path to the weather file containing the data. It must include the extension (".xls") of the file. The function also supports a dataframe

vars

Character string. Vector of one or more variables that are requested from the original weather file. Default is set to "Temp" and "Humidity" since for now, the function only works for hourly records. Available options depend on the variables specified by the user while downloading from the website. Possible inputs are "Temp", "Humidity", "Prec_accum", "Solar_radiation", "Wind_speed", "Pressure_ATM", "Surface_Temp", "Soil_Temp", "Wind_direction"

Examples


handle_agromet_chile(inputfile = agromet_weather_data, vars = c("Temp", "Humidity"))


EduardoFernandezC/dormancyR documentation built on Aug. 24, 2022, 7:21 a.m.