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

Description Usage Arguments Details Value Author(s) Examples

View source: R/mkdeFunctions.R

Description

Write the raster to a XDMF files.

Usage

1
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
[email protected]
James Sheppard, PhD
San Diego Zoo Institute for Conservation Research
[email protected]
Amit Chourasia, MS
San Diego Supercomputer Center
[email protected]

Examples

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

Example output

Loading required package: sp
writing raster cell 1 of 466627 to file condor_dem.dat
writing raster cell 100001 of 466627 to file condor_dem.dat
writing raster cell 200001 of 466627 to file condor_dem.dat
writing raster cell 300001 of 466627 to file condor_dem.dat
writing raster cell 400001 of 466627 to file condor_dem.dat
[1] 1

mkde documentation built on May 29, 2017, 8:26 p.m.