View source: R/nc4_relevents.R
Write the grid data to the file as a ArcInfo type ASCII file by offering a list of grid data like the output of points2grid() or create_flow_direction(), or a matrix and some necessary informations like cell size, x and y corner of the grid data and so on.
1 2 | write_arc_grid(grid, out_file, xcor = NULL, ycor = NULL, csize = NULL,
NA_value = -9999)
|
grid |
A list of grid data or a matrix. When it's a matrix, xcor, ycor and csize are necessary. |
out_file |
Output file path. |
xcor |
X corner of the grid. Necessary when grid is a matrix. |
ycor |
Y corner of the grid. Necessary when grid is a matrix. |
csize |
Cell size of the grid. Necessary when grid is a matrix. |
NA_value |
A value to reprent the NA value. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.