Skip to content

Commit

Permalink
Charater(0) now for real
Browse files Browse the repository at this point in the history
  • Loading branch information
eliocamp committed Jun 4, 2024
1 parent d7ee95d commit 43c48c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ReadNetCDF.R
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ time_units_factor <- c("days" = 24*3600,
}


if (!is.null(calendar) || length(calendar) == 0) {
if (!is.null(calendar) || length(calendar) != 0) {
time <- as.POSIXct(PCICt::as.PCICt(time*time_units_factor[time_unit], cal = calendar, origin = origin),
cal = "standard", tz = "UTC", origin = origin)
} else {
Expand Down

0 comments on commit 43c48c6

Please sign in to comment.