Skip to content

Commit

Permalink
drop oldformat
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Sep 24, 2024
1 parent 458c389 commit 24dc3dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: raadfiles
Title: File Database Management for 'raadtools'
Version: 0.1.4.9009
Version: 0.1.4.9010
Authors@R: c(person("Michael D.","Sumner", role = c("aut", "cre"), email = "[email protected]"),
person("Ben", "Raymond", role = "ctb"),
person("Kimberlee", "Baldry", role = c("ctb"), comment = c(ORCID = "0000-0003-3286-8624")))
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# raadfiles dev

* Avoid oldformat in Copernicus altimetry files.


* New function `gebco23_files()` for our local copy.

* `srtm_files()` now defunct, use opentopography or similar (one example is in gh:hypertidy/sds::cop30()).
Expand Down
4 changes: 4 additions & 0 deletions R/altimetry-files.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ altimetry_daily_files <- function(all = FALSE) {
} else {
files <- files[!is.na(files$date), ]
}
bad <- grepl("oldformat", files$fullname)
if (any(bad) && !all) {
files <- files[!bad, ]
}
if (!all) {
files <- dplyr::arrange(dplyr::distinct(files, .data$date, .keep_all = TRUE), .data$date)
} else {
Expand Down

0 comments on commit 24dc3dd

Please sign in to comment.