write_scales: write scales

View source: R/write_scales.R

write_scalesR Documentation

write scales

Description

This function saves each uncoupled scale as file

Usage

write_scales(
  x = NULL,
  buffer.names = NULL,
  format = "GTiff",
  path = NULL,
  overwrite = T,
  bylayer = F,
  ...
)

Arguments

x

an output of decouple function or a list of raster files

buffer.names

a vector of names same length as buffer scales or number of raster files on the list to be saved. If null, rasters will be saved as layers names.

format

one of the valids output in rgdal package or raster native defaults. For details, see raster::writeRaster help.

path

a path to save raster. Working directory is the default

overwrite

a boolean whether to overwrite files. TRUE by default

bylayer

a boolean whether to save files by layers in raster file. See bylayer in raster::writeRaster.

...

any other convinient param from raster::writeRaster

Author(s)

Wilson Frantine-Silva

See Also

decouple, raster::writeRaster, raster::writeFormats


wilsonfrantine/landscapeDecoupler documentation built on Oct. 31, 2024, 3:45 a.m.