writeTiles: Write multiple output tiles

Description Usage Arguments Details Value Warning See Also Examples

Description

A utility function to output all the possible model renderings model list. It builds the output filename as follows: <path><base><model class><ext>

Usage

1
2
writeTiles(models, inRdata, base, path = "./", extension = ".tif",
  echo = TRUE, ...)

Arguments

models

a list of model names, the standard output from generateModels

inRdata

is the image from which to generate the rendering, which can be read in using readTile

base

the base portion of the filename

path

(optional) the path of the folder; defaults to './' the current directory

extension

(optional) the latter part of the filename; defaults to '.tif'

echo

(optional) should the function report its progress; defaults to TRUE

...

other parameter(s) to pass on to writeTile, e.g. threshold, labels, et.c

Details

Sometimes it is desirable to render all the models in a block (a list of models), for example for comparison—this function performs that task. It is a wrapper that loops through all models and calls writeTile with a generated filename to which to render.

Value

Invisibly returns the time it took each model output to execute

Warning

Runtimes may be long! On an 2015 iMac (Intel I5 quad-core 3.3 GHz, 8GB RAM, and SSD) it takes 12-15 hours to do a full rendering of a single tile approximately 15k x 15k pixels (=225 Mpix). Also, output file sizes can be large(ish)—~2+ GB... and this is only for a single tile. It is recommended that writeTiles be reserved for outputting comparison tiles of a smaller size, or subsampled data.

See Also

writeTile for the engine that does the rendering

Examples

1
# See the examples at writeTile.

henkelstone/NPEL.Classification documentation built on May 17, 2019, 3:42 p.m.