accum_input: Create an input file for Fortran program Partial.

View source: R/input_file_utils.R

accum_inputR Documentation

Create an input file for Fortran program Partial.

Description

Program Partial builds a raster giving the contributing area to each DEM cell for a storm of specified duration. Inputs to Partial are read from an ASCII input file using "Keyword: arguments" format.

Usage

accum_input(dem, k, d, length_scale, scratch_dir, out_raster)

Arguments

dem

Character string: The file name (full path) for the input DEM.

k

Numeric (dbl): Saturated hydraulic conductivity, in meters per hour.

d

Numeric (dbl): Storm duration in hours.

length_scale

Numeric (dbl): Diameter for smoothing the DEM.

scratch_dir

Character string: Directory for temporary files. The input file is written to the scratch_dir.

out_raster

Character string: File name (full path) for the output binary floating point (.flt) raster.

Value

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


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