processDirectory: Process a classification directory

Description Usage Arguments

View source: R/processDirectory.R

Description

Process a classification directory applying a function to every tif file it belongs. For each file, a new file in the output directory will be created with the result of a user-defined processing function.

Usage

1
processDirectory(inputDir, outputDir, whatToDo, overwrite = FALSE)

Arguments

inputDir

A string with the input directory path.

outputDir

A string with the output directory path.

whatToDo

A function that takes one or two arguments. The first argument is the file name. The second one (optional) is a number with the year related to the file name. The year is extracted from the file name. It is represented as the last four characters before the file extension.

overwrite

Should the output be overwritten?


pedro-andrade-inpe/sits.validate documentation built on Dec. 4, 2019, 3:02 p.m.