writeRasterToXDMF: Write a 2D raster to XDMF XML wrapper and binary data file.

View source: R/mkdeFunctions.R

writeRasterToXDMFR Documentation

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.

Details

This function writes XDMF XML wrapper and binary data file.

Value

No value is returned

Author(s)

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

Examples

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

# Clean up files
unlink("condor_dem.dat")
unlink("condor_dem.xdmf")

mkde documentation built on July 9, 2023, 6:41 p.m.