Writes an in-memory WhiteboxRaster object to a file in a supported raster format.
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.
References
For more information, see https://www.whiteboxgeo.com/manual/wbw-user-manual/book/tool_help.html#write_raster