get_4Darray {igapfill} | R Documentation |
Assembles a 4D-array
Description
This function returns a 4D-array which is an auxiliary
object when invoking applyGapfill
.
Usage
get_4Darray(listPath, i, lon, lat, days, years)
Arguments
listPath |
list, containing lists with names of files to be assembled as a 4D array. |
i |
numeric indicating |
lon |
character vector whose entries indicate longitude coordinates. |
lat |
character vector whose entries indicate latitude coordinates. |
days |
numeric vector indicating what days are being considered. Length of this
object must be equal to length of |
years |
integer vector indicating what years are being considered. Length of this
object must be equal to length of |
Details
Each entry of listPath
must contain files associated with images
registered during the same year. lon
and lat
can be obtained with the functions get_LON
and get_LAT
, respectively. days
must be provided by the user, otherwise
it will be set to 1:length(years)
.
Value
An array of 4 dimensions: longitude, latitude, days and years
Note
This function may be useful when employing Gapfill
independently of the current package.