Skip to content

Commit

Permalink
remove weekly from high-res oiv2 SST, other small fixes v0.12.7
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondben committed Jan 8, 2025
1 parent b1b054e commit 6f08501
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: blueant
Type: Package
Title: Antarctic and Southern Ocean Environmental Data Sources
Version: 0.12.6
Version: 0.12.7
Authors@R: c(person("Ben", "Raymond", email = "ben.raymond@aad.gov.au", role = c("aut", "cre")),
person("Michael", "Sumner", role = "aut"),
person("Charlene", "Guillaumot", role = "aut"))
Expand Down
8 changes: 4 additions & 4 deletions R/argo_handler.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ bb_handler_argo_inner <- function(config, verbose = FALSE, local_dir_only = FALS
idx$url <- str_match(idx$file, "^([^/]+/[^/]+)/.+")[, 2]
uurl <- na.omit(unique(idx$url))
## each meta file
status <- list(ok = TRUE, files = list(NULL), msg = "")
status <- tibble(ok = TRUE, files = list(NULL), message = "")
for (thisurl in uurl) {
dummy <- config
temp <- bb_data_sources(dummy)
Expand All @@ -132,15 +132,15 @@ bb_handler_argo_inner <- function(config, verbose = FALSE, local_dir_only = FALS
temp$method <- list(list("bb_handler_rget", level = 1, no_check_certificate = no_check_cert))
bb_data_sources(dummy) <- temp
this_status <- get_fun(dummy, verbose = verbose, no_check_certificate = no_check_cert)
status <- tibble(ok = status$ok && this_status$ok, files = list(rbind(status$files[[1]], this_status$files[[1]])), msg = paste(status$msg, this_status$message))
status <- tibble(ok = status$ok && this_status$ok, files = list(rbind(status$files[[1]], this_status$files[[1]])), message = paste(status$message, this_status$message))
## Sprof file
if (profile_type == "synthetic") {
temp$source_url <- file.path(source_url_no_trailing_sep, "dac", thisurl, paste0(this_float, "_Sprof.nc"))
temp$method <- list(list("bb_handler_rget", level = 1, no_check_certificate = no_check_cert))
bb_data_sources(dummy) <- temp
this_status <- get_fun(dummy, verbose = verbose, no_check_certificate = no_check_cert)
## not all profiles have this Sprof file, so don't change the 'ok' value on failure (??)
status <- tibble(ok = status$ok, files = list(rbind(status$files[[1]], this_status$files[[1]])), msg = paste(status$msg, this_status$message))
status <- tibble(ok = status$ok, files = list(rbind(status$files[[1]], this_status$files[[1]])), message = paste(status$message, this_status$message))
}
}
}
Expand All @@ -154,7 +154,7 @@ bb_handler_argo_inner <- function(config, verbose = FALSE, local_dir_only = FALS
bb_data_sources(dummy) <- temp
## cat(str(dummy))
this_status <- get_fun(dummy, verbose = verbose, no_check_certificate = no_check_cert)
status <- tibble(ok = status$ok && this_status$ok, files = list(rbind(status$files[[1]], this_status$files[[1]])), msg = paste(status$msg, this_status$message))
status <- tibble(ok = status$ok && this_status$ok, files = list(rbind(status$files[[1]], this_status$files[[1]])), message = paste(status$message, this_status$message))
}
}
status
Expand Down
8 changes: 4 additions & 4 deletions R/sources_sst.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' \itemize{
#' \item "NOAA OI 1/4 Degree Daily SST AVHRR": Sea surface temperature at 0.25 degree daily resolution, from 1-Sep-1981 to present (this is v2.1 of the daily OI SST product)
#' \item "NOAA OI 1/4 Degree Daily SST AVHRR v2": Superseded by v2.1, above. Sea surface temperature at 0.25 degree daily resolution, from 1-Sep-1981 to Apr-2020
#' \item "NOAA OI SST V2 High Resolution": Weekly and monthly mean and long-term monthly mean SST data from Optimum Interpolation Sea Surface Temperature (OISST), 0.25-degree resolution, 1981 to present. Ice concentration data are also included, which are the ice concentration values input to the SST analysis
#' \item "NOAA OI SST V2 High Resolution": Monthly mean and long-term monthly mean SST data from Optimum Interpolation Sea Surface Temperature (OISST), 0.25-degree resolution, 1981 to present. Ice concentration data are also included, which are the ice concentration values input to the SST analysis
#' \item "NOAA OI SST V2": Superseded by NOAA OI SST V2 High Resolution, above. Weekly and monthly mean and long-term monthly mean SST data, 1-degree resolution, 1981 to present. Ice concentration data are also included, which are the ice concentration values input to the SST analysis
#' \item "NOAA Extended Reconstructed SST V3b": A global monthly SST analysis from 1854 to the present derived from ICOADS data with missing data filled in by statistical methods
#' \item "NOAA Extended Reconstructed SST V5": A global monthly sea surface temperature dataset derived from the International Comprehensive Ocean-Atmosphere Dataset
Expand Down Expand Up @@ -85,15 +85,15 @@ sources_sst <- function(name,formats,time_resolutions, ...) {
bb_source(
name = "NOAA OI SST V2 High Resolution",
id = "oisst.v2.highres",
description = "Weekly and monthly mean and long-term monthly mean SST data from Optimum Interpolation Sea Surface Temperature (OISST), 0.25-degree resolution, 1981 to present. Ice concentration data are also included, which are the ice concentration values input to the SST analysis",
description = "Monthly mean and long-term monthly mean SST data from Optimum Interpolation Sea Surface Temperature (OISST), 0.25-degree resolution, 1981 to present. Ice concentration data are also included, which are the ice concentration values input to the SST analysis. For daily SST see the 'NOAA OI 1/4 Degree Daily SST AVHRR' source",
doc_url = "https://psl.noaa.gov/data/gridded/data.noaa.oisst.v2.highres.html",
citation = "Huang B, Liu C, Banzon V, Freeman E, Graham G, Hankins B, Smith T, Zhang H-M (2021) Improvements of the Daily Optimum Interpolation Sea Surface Temperature (DOISST) Version 2.1. Journal of Climate 34:2923-2939. doi: 10.1175/JCLI-D-20-0166.1",
source_url = "https://downloads.psl.noaa.gov/Datasets/noaa.oisst.v2.highres/",
license = "Please cite",
method = list("bb_handler_rget", level = 1, accept_download = "\\.(mon|week|ltm)\\..+\\.nc$|lsmask.*\\.nc$"), ## monthly, weekly, and long-term mean files only (not daily, those can be better obtained from the v2.1 OISST Daily source)
method = list("bb_handler_rget", level = 1, accept_download = "\\.(mon|ltm)\\..+\\.nc$|lsmask.*\\.nc$"), ## monthly and long-term mean files only (not daily, those can be better obtained from the v2.1 OISST Daily source, and not weekly - those files are large and slow to download. Weekly averages seem unlikely to be widely useful, probably better for users to calculate their own averages from daily files on whatever time period makes sense)
postprocess = NULL,
access_function = "raadtools::readsst",
collection_size = 0.9,
collection_size = 30, ## ~30G without daily files
data_group = "Sea surface temperature"))
}

Expand Down
2 changes: 1 addition & 1 deletion man/sources_sst.Rd

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

0 comments on commit 6f08501

Please sign in to comment.