sort_split {igapfill} | R Documentation |
Console-based application to sort and split spatio-temporal chunks of images
Description
An application of split_replace
to split/divide/configure
images in parts to which a subsequent call of applyGapfill
can be easily handled by regular computer systems.
Usage
sort_split(path, startYear, endYear, nrow_split, ncol_split)
Arguments
path |
character with full path name to a directory containing a set of files to be split. |
startYear |
numeric indicating the starting time-point, on the annual scale, of a time series of satellite images. |
endYear |
numeric indicating the ending time-point, on the annual scale, of a time series of satellite images. |
nrow_split |
numeric, in how many equal parts the images' rows must be split? See Details. |
ncol_split |
numeric, in how many equal parts the images' cols must be split? See Details. |
Details
This function asks the user a series of inputs on-the-fly. Should the user allow it,
these inputs will be used as arguments in a subsequent call to split_replace
.
create_dirs
defines a specific directory
structure used by sort_split
, hence, it is highly recommended
to use create_dirs
in advance. Also, it is highly recommended to use
sort_split
before using applyGapfill
.
Value
When the user decides not to proceed with this function,
a NULL
is returned at the console.
Otherwise, the resulting splits (.tif files) will be saved at the sub-directories
defined by paste0(path, "/gapfill/splits")
and a corresponding final _invisible_
message is displayed at the console.
Note
The "sort" part of the function means that in case that the file
list created from path
is not originally ordered, then sort_split
will sort it out internally.
See Also
waysToSplit
, dimsReport
,
split_replace
.