elev_to_sgrd: Convert elevation data into SAGA format

View source: R/import.R

elev_to_sgrdR Documentation

Convert elevation data into SAGA format

Description

Convert elevation data into SAGA format

Usage

elev_to_sgrd(elev_filename, out_filename = NA, overwrite = TRUE)

Arguments

elev_filename

filename in disk of the elevation raster data

out_filename

output filename, defaults to [elev_filename].sgrd

overwrite

boolean, default to TRUE, should the output file be overwritten?

Details

Beware, this function will convert a TIF file into SAGA format, but for some reason, the output file loses its CRS and is not recognized properly by GDAL drivers. It will still work for calculating derivatives but the file should not be used directly for other purposes. Always refer to the original elevation file.


loreabad6/terrain documentation built on July 6, 2023, 6:44 a.m.