writeINCABIL: Write a raster using the BIL format

View source: R/writeINCABIL.r

writeINCABILR Documentation

Write a raster using the BIL format

Description

Write a raster in the BIL format used e.g. by INCA

Usage

writeINCABIL(
  x,
  file,
  delete.stx = TRUE,
  overwrite = TRUE,
  hdr = "keep",
  bandorder = "BIL",
  noValue = NULL
)

Arguments

x

raster object. The raster that will be written.

file

character string. The file that will be written. Note that besides the .bil file, a .hdr and a .stx file are written, too.

delete.stx

logical. Should the stx file be deleted?

overwrite

logical. Should an existing file be overwritten?

hdr

character string. Any of "keep", "delete", or "update".

bandorder

any of 'BIL', 'BSQ', or 'BIP'

noValue

numeric or NULL. What value is assigned to nodata?

Details

file must be the filename of a raster file thar will be written. It may or may not have the file extension .bil. If not, it will be added to the srtring.

The stx-file is not necessary for further usage of the raster file and may be delted using delete.stx == TRUE.

The hdr-file matches the official ESRI specifications. However, Delft-FEWS needs the parameter NBLOCKS for reading time series. If hdr == 'update' the parameter NBANDS will be set to 1 and the new added parameter NBLOCKS will receive the former value of NBANDS.

hdr == 'delete' deltes the hdr-file whereas hdr == 'keep' keeps it unedited.

bandorder sets the bandorder of the binary raster file.

Author(s)

Simon Frey

See Also

readINCABIL readZAMGGRIB read.hdr


freysimon/ZAMGR documentation built on Nov. 3, 2023, 9:44 p.m.