huntLSinput: Create an input file for Fortran program HuntLS

View source: R/input_file_utils.R

huntLSinputR Documentation

Create an input file for Fortran program HuntLS

Description

Program HuntLS reads an "outlier" raster created by program Align. The "outlier" k values indicate the number of interquartile ranges (q3-q1) a DoD de (delta elevation) value falls outside of the interquartile range: k = (de-q1)/(q3-a1) if k is less than q1 and k = (de-q3)/(q3-q1) if k is greater than q3. Values of de between q1 and q3 are given k values of zero. HuntLS associates k patches with field-mapped landslide locations surveyed for the Post Mortem (Stewart et al., 2013) study.

Usage

huntLSinput(
  DEM,
  Outlier,
  DoD,
  Accum,
  AccumThreshold,
  LSpnts,
  IDfield,
  Radius,
  AspectLength,
  GradLength,
  OutlierThreshold,
  ScratchDir,
  OutPatch,
  OutGrad,
  Outcsv
)

Arguments

DEM

Character: The reference DTM used for program Align.

Outlier

Character: The input outlier raster (.flt) created by Align.

DoD

Character: Input DoD raster (.flt) created by Align.

Accum

Character: Input flow accumulation raster created by bldgrds.

AccumThreshold

Numeric (dbl): Contributing area above which landslide patches are precluded.

LSpnts

Character: Input point shapefile of mapped landslide points.

IDfield

Character: LSpnts attributes-table field name for record ID.

Radius

Numeric (dbl): Search radius in meters for matching landslide points to k-value patches.

AspectLength

Numeric (dbl): Length in meters to calculate aspect.

GradLength

Numeric (dbl): Length in meters to calculate gradient.

OutlierThreshold

Numeric (dbl): Minimum absolute k value for a patch.

ScratchDir

Character: Scratch directory.

OutPatch

Character: Output patch raster (.flt).

OutGrad

Character: Output gradient raster (.flt).

Outcsv

Character: Output comma-delimited table.

Value

returnCode, a value of zero indicates success


tabrasel/WetlandTools documentation built on June 1, 2025, 8:07 p.m.