DTM2XYZ: DTM2XYZ

Description Usage Arguments Details Value References Examples

View source: R/DTM2XYZ.R

Description

DTM2XYZ converts data stored in the PLANS DTM format into ASCII text files containing XYZ points. Such files can be imported into GIS software as point data with the elevation as an attribute or used in other analysis processes.

Usage

1
DTM2XYZ(fusion.path = "C:/FUSION/", inputfile, outputfile, switches = NULL)

Arguments

fusion.path

Character. By default: C:/FUSION/. Path where the program FUSION is installed.

inputfile

is a character.Name for output canopy surface file (stored in PLANS DTM format with .dtm extension).

outputfile

Character. Name for the converted file. If outputfile is omitted, the output file name will be constructed from the inputfile name and the extension .xyz. If the /csv switch is used, the extension will be .csv.

switches

False as default. To insert a switch, it must have a '/' before of the names. If you want to insert two or more switches, they must be separated by an empty space. When a # is displayed, should be replaced by the desired value (numeric).

  • /void - Output points from DTM with NODATA value (default is to omit). NODATA value is -9999.0 for the elevation

  • /csv - Output XYZ points in comma separated value format (CSV). If /csv is used with no outputfile, an extension of .csv will be used to form the output file name.

  • /noheader - Do not include the column headings in CSV output files. Ignored if /csv is not used

Details

The XYZ point file consists of one record for each grid point. Each record contains the X, Y, and elevation for the DTM grid point. If creating an ASCII text file, the values are separated by spaces and if creating a CSV format file, by commas. For CSV files, the first line contains column labels unless the /noheader switch is specified. If four or more of the directional searches find a valid elevation, the hole is filled using the average of all the values.

Value

No return value. This function return the command prompt running the FUSION command

References

McGaughey, R.J. FUSION/LDV: Software for LIDAR Data Analysis and Visualization. 2021.

Examples

1
2
3
inputfile<-'Z:/dtmfile.dtm'
outputfile<- 'Z:/outputfile.xyz'
DTM2XYZ(inputfile = inputfile,outputfile = outputfile, switches = NULL)

rFUSION documentation built on March 17, 2021, 5:07 p.m.