Skip to content

Commit

Permalink
Update R/valley.R
Browse files Browse the repository at this point in the history
Co-authored-by: Francesco Nattino <[email protected]>
  • Loading branch information
meiertgrootes and fnattino authored Nov 20, 2024
1 parent 89587c5 commit 1ba867b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/valley.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ get_dem <- function(bb, resource="STAC",...){
#' @param output_directory where file should be written. If specified fpath is treated as filename only.
#'
#' @export
dem_to_COG <- function(dem,fpath,output_directory=None,){
if (output_directory == None){
dem_to_COG <- function(dem,fpath,output_directory=NULL,){
if (is.null(output_directory)){
file_name = basename(fpath)
directory_name = dirname(file)
} else {
Expand Down

0 comments on commit 1ba867b

Please sign in to comment.