writeasciigrid: Function to write a grid to an ASCII grid on disk

View source: R/writeasciigrid.R

writeasciigridR Documentation

Function to write a grid to an ASCII grid on disk

Description

This function writes grid, an object of class grid as an ASCII grid to the location specified by path. It substitutes the na.value into NA values in the grid prior to writing.

Usage

writeasciigrid(grid, path, na.value = -9999)

Arguments

grid

A grid object to be written.

path

The path and file name to write to.

na.value

The value to use to represent NA values on disk.

Value

Nothing is returned.

Author(s)

Ethan Plunkett

See Also

readasciigrid, readasciigridheader asgrid for conversion from Raster objects which can be read from many formats with raster

Examples

## Not run: 
 writeasciigrid(grid, "testgrid.asc")

## End(Not run)



ethanplunkett/gridprocess documentation built on Feb. 1, 2024, 2:24 a.m.