convert_sagaext_r: Ensure that the file extension for the SAGA raster format...

View source: R/file-extensions.R

convert_sagaext_rR Documentation

Ensure that the file extension for the SAGA raster format ends with .sdat for reading or writing SAGA grid objects in R.

Description

This is used because the R raster/terra libraries expect to read and write SAGA grid formats using the '.sdat' file extension, not '.sgrd'.

Usage

convert_sagaext_r(fp)

Arguments

fp

file path to raster writing

Value

a character vector with the corrected file extensions to read SAGA sgrd files back into R.


stevenpawley/RSAGA5 documentation built on March 26, 2024, 5:30 a.m.