FSE weather {meteor}R Documentation

Read FSE formatted weather data

Description

Read or write FSE formatted weather data

Usage

readFSEwth(f)
writeFSEwth(w, country='AAA', station=1, lon=0, lat=0, elev=0,  path=".")

example_weather()

Arguments

f

character. filename

w

data.frame with daily weather data. Must include the following variables: "date", "srad", "tmin", "tmax", "wind", "prec", "vapr". The data must be sorted by date in ascending order. "date" must be a Date, the other variables must be numeric

country

character code for a country (up to three letters)

station

positive integer. Station number for the country

lon

numeric. Longitude of the weather station (not used by the models)

lat

numeric. Latitude of the weather station

elev

numeric. Elevation of the weather station

path

character. Folder where you want to write the files. It must exist

Value

readFSEwth: data.frame

writeFSEwth: character (invisibly) with the filenames


[Package meteor version 0.4-5 Index]