get_4Darray: Assembles a 4D-array

View source: R/get_4Darray.R

get_4DarrayR 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 i-th entry of listPath to be processed.

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 listPath.

years

integer vector indicating what years are being considered. Length of this object must be equal to length of listPath.

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.

See Also

create_dirs, get_3Darray


igapfill documentation built on June 8, 2025, 10:41 a.m.