read_dtm: read USDA FUSION format (Bob McGaughey) raster files and...

View source: R/read_dtm.R

read_dtmR Documentation

read USDA FUSION format (Bob McGaughey) raster files and headers

Description

read a single USDA FUSION format raster into an r raster object (raster package). read a single header read headers for all files in directory

Usage

read_dtm(
  dtm_files = NA,
  dir_dtm = NA,
  pattern = "[.]dtm$",
  plot = F,
  NA_val = -1,
  return_polygon = F,
  mosaic = T
)

read_dtm_header(
  dtm_file,
  dir_dtm = NA,
  pattern = "[.]dtm$",
  recursive = TRUE,
  out_file = NA
)

Arguments

dir_dtm

path to directory containing FUSION dtm files

pattern

extension for FUSION dtm files

plot

with 'dtm_file' optionally plot dtm with rgl and rasterVis

NA_val

recoded fusion NA values to R NA - unfotunately FUSION uses -1.0 as NA values ..

dtm_file

path to specific FUSION dtm file

ncore

how many cores to use in processing dtm files - used with 'dir_dtm'

Details

the DEM format is an esoteric raster format used only by (and required by) FUSION gridmetrics. SInce it is required and we extensivey use FUSION (esp gridmetrics) we need the ability to interact with this file format.


Revision History

0.1 2014 July 09 - Operational

Value

raster, rasters, or dataframe with header(s) information

Author(s)

Jacob Strunk

See Also

read_las

Examples


many_dtms=read_dtm_header(dir_dtm="c:\\temp\\dtm_files" ,out_file="c:\\temp\\headers.csv")

one_dtm=read_dtm_header("//dnrgpoly112/e$/rs_prototype/dtm/dtm_files/38_58.dtm")


jstrunk001/RSForInvt documentation built on April 18, 2022, 11:03 p.m.