Learn R Programming

mkde (version 0.1)

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")

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.

Value

No value is returned

Details

This function writes XDMF XML wrapper and binary data file.

Examples

Run this code
library(raster)
data(condordem)
# Save as XDMF (notice no file extension in file name)
writeRasterToXDMF(condordem, "condor_dem")

Run the code above in your browser using DataLab