TimeVectVariable
is a data class that is based on a 2D array. It has two dimensions: time and spatial. The spatial dimension also holds the geological vector data (points, lines, polygons) that is saved in theSpat_Data
.TimeVectArray
is a data class that is based on a 3D array. It has three dimensions: time, spatial, and variable. The spatial dimension also holds the geological vector data (points, lines, polygons) that is saved in theSpat_Data
.
Usage
new_TimeVectVariable(
data_,
Name_,
Unit_,
Time_,
Spat_ID,
Spat_Data,
na_check = FALSE
)
new_TimeVectArray(
data_,
Name_,
Unit_,
Time_,
Spat_ID,
Spat_Data,
na_check = FALSE
)
Arguments
- data_
(num-array) 2D for
TimeVectVariable
and 3D forTimeVectArray
- Name_, Unit_
(char or vector of char) name and unit of Variable,
Unit_
should be converted byunits::as_units()
- Time_
(vector of lubridate::timepoint) time dimension, created by
lubridate::as_date()
orlubridate::as_datetime()
- Spat_ID
(vector of char) the identifying of the spatial-dimension, they must be contained in the
Spat_Data
- Spat_Data
(terra::SpatVector) geological data, create by
terra::vect()
, it must contain the key (attribute) named as "Spat_ID"- na_check
(bool) if check the NAs