Skip to contents

Writes an in-memory WhiteboxRaster object to a file in a supported raster format.

Usage

wbw_write_raster(x, file_name, compress = TRUE)

Arguments

x

Raster object of class WhiteboxRaster. See wbw_read_raster() for more details.

file_name

character Path to output file

compress

logical Whether to compress the output file

Details

Supported raster formats:

  • GeoTIFF (*.tif, *.tiff)

  • Big GeoTIFF (*.tif, *.tiff)

  • SAGA Binary (*.sdat, *.sgrd)

  • Idrisi (*.rst, *.rdc)

  • Surfer (*.grd)

  • ESRI Binary (*.flt)

  • ESRI BIL (*.bil)

The tool can read GeoTIFFs compressed using PackBits, DEFLATE, or LZW methods.

When writing GeoTIFFs, use compress=TRUE to enable DEFLATE compression.