Skip to content

Commit

Permalink
Fix loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dramanica committed Jan 28, 2024
1 parent c801c74 commit a87aa23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/load_etopo.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ load_etopo <- function(path = NULL, resolution = 1, version = "1") {
stop("the provided path does not exist")
}
}
etopo_file_name <- paste0("etopo2022_", resolution, "m_", version, ".nc")
etopo_file_name <- paste0("etopo2022_", resolution, "m_v", version, ".nc")
etopo_full_path <- file.path(path, etopo_file_name)
if (!file.exists(etopo_full_path)) {
stop(etopo_full_path, " does not exist; use download_etopo() to download it")
Expand Down

0 comments on commit a87aa23

Please sign in to comment.