Skip to content

Commit

Permalink
chacater(0) calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
eliocamp committed Jun 4, 2024
1 parent ca281ae commit d7ee95d
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)) {
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 d7ee95d

Please sign in to comment.