parallel_mosaic: Mosaic from gapfilled objects

View source: R/parallel_mosaic.R

parallel_mosaicR Documentation

Mosaic from gapfilled objects

Description

Rasterizes the output of applyGapfill and the resulting raster objects are glued together in the manner of a mosaic.

Usage

parallel_mosaic(
  inputDirImages,
  inputDirRData,
  inputDirMaster,
  outputDir,
  progressReportDir,
  numCores,
  scaleFactor = 10000,
  dataType = "INT4S"
)

Arguments

inputDirImages

character. Full path name of directory containing files to be gap-filled.

inputDirRData

character. Full path name of directory containing RData files obtained as the result of using Gapfill. See Note.

inputDirMaster

character. Full path name of directory containing splits of a master file. See Details.

outputDir

character. Full path name of directory where output will be saved. See Note.

progressReportDir

character. Full path name of directory where a file reporting on the See Note.

numCores

numeric. How many cores should be employed in parallel computing?

scaleFactor

integer. Default is 1e4. See Note.

dataType

character. See writeRaster for further details. Default is INT4S. See Note.

Details

This function may be useful when employing Gapfill independently of the current package.

The term master refers to a raster with no missing values and whose coordinate reference system is used to rasterize objects such as matrices.

Value

At outputDir the user will find n Gtiff files, where n is equal to the number of files in inputDirImages.

Note

Within the workflow of this package, inputDirRData, inputDirMaster, outputDir and progressReportDir must be equal to the sub-directories /output, /master, /filled, and /progressReports, respectively. These folders can be created by create_dirs. Many satellite products come with a scale factor of 1e4 and are distributed in formats equivalent to INT4S. After applyGapfill the objects to rasterize/mosaic must be scaled back, therefore the default values for arguments scaleFactor and dataType.

See Also

mosaic, applyGapfill.


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