PFA_debris_flow: Function PFA_debris_flow; terrain attributes along...

PFA_debris_flowR Documentation

Function PFA_debris_flow; terrain attributes along debris-flow runout path. A wrapper for Fortran program PFA_debris_flow.

Description

Provides a csv file that can be read to a dataframe for a Cox survival model.

Usage

PFA_debris_flow(
  dem = "none",
  init_points = "nofile",
  geo_poly = "nofile",
  stand_age = "nofile",
  tracks = "nofile",
  radius = 0,
  initRadius = 0,
  length_scale = 0,
  slope_intercept = 0,
  slope_coef = 0,
  bulk_coef = 0,
  init_width = 0,
  init_length = 0,
  DF_width = 0,
  alpha = 0,
  uncensored,
  scratch_dir = "none"
)

Arguments

dem

Character string: The file name (full path) of the dem (elevation raster) for construction of an input file.

radius

double: Distance in meters to extend the search for a road.

uncensored

string: if "TRUE", interpret all end-point tracks as uncensored, even without mapped deposition

scratch_dir

Character string: A scratch directory where temporary files are written. If an input file for program partial is created, it is written here.

input_file

Character string: a "partial" input file (optional). If no input file is specified and no other arguments are present, a Windows Explorer window opens for file selection.

init_points:

string: File name for initiation-point shapefile.

geo_poly:

string: File name for rock-type polygon shapefile.

stand_age:

string: File name for LEMMA stand-age flt raster.

tracks:

string: File name for DOGAMI debris-flow-track polyline shapefile.

radius:

dbl: Search radius in meters for matching DEM flow path to DOGAMI track.

length_scale:

dbl: Length in meters to measure elevation derivatives.

bulk_coef:

dbl: Coefficient for linear bulking equation

alpha:

dbl: Proportion of debris-flow cross-sectional volume deposited per unit length.

Details

A list of multinomial-logistic-regression-model coefficients for probability of scour and deposition are required; these are hard wired into this code.

Value

A csv data file.


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