demToCSV: Convert a Raster DEM file to a Useable CSV that can be...

View source: R/demToCSV.R

demToCSVR Documentation

Convert a Raster DEM file to a Useable CSV that can be inputted into ClimateNA

Description

Input a TIFF file containing the DEM elevation values clipped to the area of focus. This tool will convert and produce a point featureclass shapefile with an identical name and use that shapefile's points and point coordinates to produce a CSV file. This CSV file is formatted so it can be inputted into ClimateNA.

Usage

demToCSV(file, outdir = dirname(file), srs = "EPSG:4326")

Arguments

file

A TIFF file at the desired spatial resolution.

outdir

The output location for the formatted CSV file. The default is the same location as input.

srs

string. A valid WKT string or SRS definition, such as "EPSG:4326" or "ESRI:102761" or NULL

Value

A CSV file representing the inputted DEM

Author(s)

Michael Burnett - UBC Faculty of Forestry

Examples

#files <- list.files(pattern='*.tif$')
#roiDEM <- files[3]
#demToCSV(roiDEM)

Silva21-irss/silvR21 documentation built on Sept. 14, 2022, 7:55 a.m.