demToCSV | R Documentation |
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.
demToCSV(file, outdir = dirname(file), srs = "EPSG:4326")
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 |
A CSV file representing the inputted DEM
Michael Burnett - UBC Faculty of Forestry
#files <- list.files(pattern='*.tif$') #roiDEM <- files[3] #demToCSV(roiDEM)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.