TopoMetrics | R Documentation |
TopoMetrics
creates command lines for the FUSION TopoMetrics program and optionally executes them.
TopoMetrics(
surfacefile = NULL,
cellsize = NULL,
topopointspacing = NULL,
latitude = NULL,
tpiwindowsize = NULL,
outputfile = NULL,
quiet = FALSE,
verbose = FALSE,
version = FALSE,
newlog = FALSE,
log = NULL,
locale = FALSE,
grid = NULL,
gridxy = NULL,
align = NULL,
extent = NULL,
square = FALSE,
annulusinnerdia = NULL,
annuluswidth = NULL,
diskground = FALSE,
nointernalground = FALSE,
lockdtmcellsize = FALSE,
use64bit = TRUE,
runCmd = TRUE,
saveCmd = TRUE,
cmdFile = NULL,
cmdClear = FALSE,
echoCmd = FALSE,
comment = NULL
)
surfacefile |
character (required): Name for the input surface file (PLANS DTM format) surfacefile may be wildcard or text list file (extension .txt). |
cellsize |
numeric (required): Size of the cell used to report topographic metrics. |
topopointspacing |
numeric (required): The spacing between points in the 3 by 3 array used to compute the basic topographic metrics. |
latitude |
numeric (required): Latitude for the center of the data area. North latitude is positive, South is negative. Latitude is used to compute the solar radiation index. |
tpiwindowsize |
numeric (required): The size of the window used to compute the topographic
position index. When |
outputfile |
character (required): Base name for the output metrics (CSV format). "_topo_metrics" will be appended to the name provided on the command line. |
quiet |
boolean: Suppress all output during the run. |
verbose |
boolean: Display all status information during the run. |
version |
boolean: Report version information and exit with no processing. |
newlog |
boolean: Erase the existing log file and start a new log |
log |
character: Use the name specified for the log file. |
locale |
boolean: Adjust program logic to input and output locale-specific numeric formats (e.g. use a comma for the decimal separator). |
grid |
character: "X,Y,W,H": Force the origin of the output grid to be (X,Y) instead of computing an origin from the data extents and force the grid to be W units wide and H units high...W and H will be rounded up to a multiple of cellsize. |
gridxy |
character: "X1,Y1,X2,Y2": Force the origin of the output grid to be (X1,Y1) instead
of computing an origin from the data extents and force the grid to use (X2,Y2) as the upper right
corner of the coverage area. The actual upper right corner will be adjusted to be a multiple of |
align |
character: Force the origin and extent of the output grid to match the lower left corner and extent of the specified PLANS format DTM file. |
extent |
character: Force the origin and extent of the output grid to match the lower left corner and extent of the specified PLANS format DTM file but adjust the origin to be an even multiple of the cell size and the width and height to be multiples of the cell size. |
square |
boolean: Use a square-shaped mask when computing the topographic position index. The default mask shape is a circle. |
annulusinnerdia |
numeric: Use a doughnut-shaped mask when computing the topographic position index.
The outer diameter is |
annuluswidth |
numeric: Use a donut-shaped mask when computing the topographic position index.
The outer diameter is |
diskground |
boolean: Do not load ground surface models into memory or create a temporary surface in memory. When this option is specified, larger areas can be processed but processing will be very much slower. |
nointernalground |
boolean: Do not create a temporary surface in memory. When this option
is specified, larger areas can be processed but processing will be much slower. This option has no
effect when used with |
lockdtmcellsize |
boolean: Force the cell size used when creating an internal ground model to be the same as the highest resolution input ground surface model. The default behavior will increase the cell size until the internal model will fit in the available memory. |
use64bit |
boolean: indicates 64-bit version of the program should be used. |
runCmd |
boolean: indicates command line should be executed. |
saveCmd |
boolean: indicates command line should be written to a file. |
cmdFile |
character: contains the name of the file to which commands should be written. |
cmdClear |
boolean: indicates file for commands should be deleted (cleared) before the command line is written. |
echoCmd |
boolean: indicates command line should be displayed. |
comment |
character string containing comment to be written to command file before writing
the actual command. Only used when |
Return value depends on runCmd
. if runCmd = TRUE
, return value is
the (invisible) integer value return from the operating system after running the command.
if runCmd = FALSE
, return value is the (invisible) command line.
LTKFunctions generate a separate command for each item when the required parameters are lists. This is useful when you want to use the same command and options but different input data and output files. However, this works only when the switches and options are the same for all commands (not lists). If you try to use a list of switches and/or options and a list of input files, you will produce commands using all sets of switches and/or options for every input file.
Other LTKFunctions:
CSV2Grid()
,
CanopyMaxima()
,
CanopyModel()
,
Catalog()
,
ClipDTM()
,
ClipData()
,
CloudMetrics()
,
Cover()
,
DTMDescribe()
,
DensityMetrics()
,
FilterData()
,
FirstLastReturn()
,
GridMetrics()
,
GridSample()
,
GridSurfaceCreate()
,
GridSurfaceStats()
,
GroundFilter()
,
IntensityImage()
,
JoinDB()
,
MergeDTM()
,
MergeData()
,
MergeRaster()
,
RepairGridDTM()
,
ReturnDensity()
,
SplitDTM()
,
SurfaceSample()
,
SurfaceStats()
,
TINSurfaceCreate()
,
ThinData()
,
TreeSeg()
,
fusionwrapr-package
## Not run:
TopoMetrics("grnd.dtm", 30.0, 10.0, 43.5, 90.0, "topometrics.csv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.