writeINCABIL | R Documentation |
Write a raster in the BIL format used e.g. by INCA
writeINCABIL(
x,
file,
delete.stx = TRUE,
overwrite = TRUE,
hdr = "keep",
bandorder = "BIL",
noValue = NULL
)
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? |
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.
Simon Frey
readINCABIL readZAMGGRIB read.hdr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.