Skip to content

Commit

Permalink
gebco 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Jul 10, 2024
1 parent db85941 commit 458c389
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
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.9008
Version: 0.1.4.9009
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
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export(gebco08_files)
export(gebco14_files)
export(gebco19_files)
export(gebco21_files)
export(gebco23_files)
export(geoid_files)
export(george_v_terre_adelie_1000m_files)
export(george_v_terre_adelie_100m_files)
Expand All @@ -33,6 +34,7 @@ export(george_v_terre_adelie_500m_files)
export(get_raad_data_roots)
export(get_raad_filenames)
export(ghrsst_daily_files)
export(ghrsst_daily_files_netcdf)
export(ibcso_background_files)
export(ibcso_bed_files)
export(ibcso_digital_chart_files)
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# raadfiles dev

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

* `srtm_files()` now defunct, use opentopography or similar (one example is in gh:hypertidy/sds::cop30()).

* Bumped required version of fs to dev, see https://github.com/r-lib/fs/issues/447.
Expand Down
16 changes: 13 additions & 3 deletions R/topography-files.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ topo_files_generic <- function(pattern, ...) {
#'
#' There's no single format, there are GeoTIFFs, ArcInfo binary, ERStorage, NetCDF, NetCDF GMT, (Geo) PDF, and some VRT
#' wrappers for handling raw binary files.
#'

#' @section GEBCO General Bathymetric Chart of the Oceans:
#' Versions 2008, 2014, 2019, 2021.
#' Versions 2008, 2014, 2019, 2021, 2023.
#' @section IBCSO International Bathymetric Chart of the Southern Ocean:
#' 'is' ('is_PS71' tif, or grd), 'background_hq', 'bed' ('bed_PS71'), 'digital_chart', 'sid' ('sid_PS71')
#' @section ETOPO:
Expand All @@ -36,9 +36,19 @@ topo_files_generic <- function(pattern, ...) {
#'
#' @examples
#' \dontrun{
#' gebco21_files()
#' gebco23_files()
#' }
#'
gebco23_files <- function(all = FALSE, ...) {
## there's no "all"
out <- topo_files_generic(c("gebco", "idea.public/gebco/gebco_2023_land_cog\\.tif"))

out
}

#' @name topography
#' @rdname topography-files
#' @export
gebco21_files <- function(all = FALSE, ...) {
if (all) {
out <- topo_files_generic("www.bodc.ac.uk/.*gebco/gebco_2021.*")
Expand Down
5 changes: 4 additions & 1 deletion man/amsr_daily_files.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions man/topography-files.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 458c389

Please sign in to comment.