writeRasterToXDMF: Write a 2D raster to XDMF XML wrapper and binary data file.
Description
Write the raster to a XDMF files.
Usage
writeRasterToXDMF(rast, fname, nodat="NA")
Value
No value is returned
Arguments
rast
A RasterLayer object
fname
The path and base file name for output HDF5 files
nodat
A no data character string that will be written in place
of no data values.
Author
Jeff A. Tracey, PhD
USGS Western Ecological Research Center, San Diego Field Station jatracey@usgs.gov
James Sheppard, PhD
San Diego Zoo Institute for Conservation Research jsheppard@sandiegozoo.org
Amit Chourasia, MS
San Diego Supercomputer Center amit@sdsc.edu
Details
This function writes XDMF XML wrapper and binary data file.
library(raster)
data(condordem)
# Save as XDMF (notice no file extension in file name)writeRasterToXDMF(condordem, "condor_dem")
# Clean up filesunlink("condor_dem.dat")
unlink("condor_dem.xdmf")