Prepares weather station data 2
read.WSdata2(WSdata, ..., height = 2.2, lat, long, elev, columns = c(date =
1, time = 2, radiation = 3, wind = 4, RH = 6, temp = 7, rain = 8),
date.format = "%d/%m/%Y", time.format = "%H:%M:%S",
datetime.format = "%Y-%m-%d %H:%M:%S", tz = "", cf = c(1, 3.6, 1,
1), MTL)
csv file with weather station data
additional parameter to pass to read.csv()
weather station sensors height in meters
latitude of weather station in decimal degrees. Negative values for south latitude
longitude of weather station in decimal degrees. Negative values for west longitude
elevation of weather station in meters
columns order of needed data. Vector containing "date", "time", "radiation", "wind", "RH", "temp" and "rain". Other values are ignored. If you have a column with date and time in the same column, you can include "datetime" and "date" and "time" are no longer needed.
date format. See strptime format argument.
time format. See strptime format argument.
datetime format. See strptime format argument.
timezone of the weather station dates. If not present assumes the same timezone as the computer running the code. See strptime for details.
conversion factor to convert radiation, wind, and temperature to W/m2; m/s and Celsius. See Details.
Metadata file. If not provided will look for one on working directory. If provided or present will calculate weather conditions on satellite flyby.
For cf, if your data is in W/m2, km/h and Celsius (radiation, wind, temperature), cf should be: cf = c(1,0.2777778,1)
Other Weather station related functions: plot.waterWeatherStation
,
print.waterWeatherStation
,
read.WSdata