Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/Access_KlimaiNorge2100.r
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Access_KlimaiNorge2100 <- function(
),
Time = list(
Input = c(Start, Stop),
Allowed = QuickFacts_ls$time$extent,
Allowed = as.POSIXct(paste0(QuickFacts_ls$time$extent, "00:00:00"), tz = "UTC"),
Operator = "exceeds"
),
Methods = list(
Expand Down
2 changes: 1 addition & 1 deletion R/Access_NORA3.r
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Access_NORA3 <- function(
),
Time = list(
Input = c(Start, Stop),
Allowed = c(QuickFacts_ls$time$extent[1], paste0(format(Sys.time(), "%Y-%m-%d %H"), ":00")), # assuming current day and hour as possible end since dataset is released ongoingly
Allowed = c(as.POSIXct(paste0(QuickFacts_ls$time$extent[1], "00:00:00"), tz = "UTC"), as.POSIXct(paste0(format(Sys.time(), "%Y-%m-%d %H"), ":00"), tz = "UTC ")), # assuming current day and hour as possible end since dataset is released ongoingly
Operator = "exceeds"
),
leadTimeHour = list(
Expand Down
4 changes: 2 additions & 2 deletions R/Access_reanalysis_cerra_single_levels.r
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Access_reanalysis_cerra_single_levels <- function(
Time = list(
Input = Dates_df$UTC,
Allowed = c(
QuickFacts_ls$time$extent[1],
as.POSIXct(paste0(QuickFacts_ls$time$extent[1], "00:00:00"), tz = "UTC"),
gsub(" UTC", "", Helper_MakeUTC(dates = as.POSIXct(paste0(format(Sys.time(), "%Y-%m-%d %H"), ":00")))$UTC) # assuming current day and hour as possible end since dataset is released ongoingly
),
Operator = "exceeds"
Expand Down Expand Up @@ -301,4 +301,4 @@ Access_reanalysis_cerra_single_levels <- function(

### return object
return(CDS_rast)
}
}
8 changes: 4 additions & 4 deletions R/Helper_InputChecker.r
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
#'
#' @examples
#' Variable <- "Maximum Air Temperature"
#' DateStart <- "1971-01-01"
#' DateStop <- "1971-08-31"
#' dateStart <- "1971-01-01"
#' dateStop <- "1971-08-31"
#' Model <- "CNRM_CCLM"
#' Scenario <- "rcp85"
#'
#' Start <- as.POSIXct(paste0(DateStart, "00:00:00"), tz = "UTC")
#' Stop <- as.POSIXct(paste0(DateStop, "00:00:00"), tz = "UTC")
#' Start <- as.POSIXct(paste0(dateStart, "00:00:00"), tz = "UTC")
#' Stop <- as.POSIXct(paste0(dateStop, "00:00:00"), tz = "UTC")
#'
#' inputCheck <- list(
#' Variable = list(
Expand Down
8 changes: 4 additions & 4 deletions man/Helper_InputChecker.Rd

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

Loading