makegrids_input: Create an input file for Fortran program makegrids

View source: R/input_file_utils.R

makegrids_inputR Documentation

Create an input file for Fortran program makegrids

Description

MakeGrids is called by functions in surface_metrics. MakeGrids reads an ASCII input file with a "Keyword: arguments" format.

Usage

makegrids_input(dem, length_scale, scratch_dir, rasters, overwrite = TRUE)

Arguments

dem:

File name (full path) to input DEM.

length_scale:

Diameter in meters over which to measure attributes.

scratch_dir:

Directory for storing temporary files. The input file is written to the scratch_dir.

rasters:

A character vector. Each element contains two strings separated by a comma. The first specifies the type of attribute, the second specifies the file name (full path) for the output floating point binary (.flt) raster.

overwrite:

If TRUE, allows overwriting of an existing input file.

Value

There is no return object, but an explicit side effect is writing to disk of the makegrids input file.


tabrasel/WetlandTools documentation built on Dec. 20, 2024, 8:50 a.m.