R: Create an object of STFDF class from two data frames...
meteo2STFDF
R Documentation
Create an object of STFDF class from two data frames (observation and stations)
Description
The function creates an object of STFDF class, spatio-temporal data with full space-time grid, from two data frames (observation and stations). Observations data frame minimum contains station ID column, time column (day of observation) and measured variable column. Stations data frame contains at least station ID column, longitude (or x) and latitude (or y) column.
data.frame; observations data frame minimum contains station ID column, time column (day of observation) and measured variable column. It can contain additional variables (columns).
stations
data.frame; Stations data frame contains at least station ID column, longitude (or x) and latitude (or y) column.It can contain additional variables (columns).
obs.staid.time
numeric; records the column positions where in obs (observation) data frame the station ID and time values are stored.
stations.staid.lon.lat
numeric; records the column positions where in stations data frame the station ID, longitude (x) and latitude (y) values are stored.
crs
CRS; coordinate reference system (see CRS) of stations coordinates
delta
time; time interval to end points in seconds
Value
STFDF object
Note
The function is intended for conversion of meteorological data to STFDF object, but can be used for similar spatio temporal data stored in two separated tables.