Skip to content

Commit

Permalink
Merge fixes for HRRR and WRF convention file compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
benfasoli committed Apr 28, 2018
1 parent 730834f commit 22bd5fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions r/src/find_met_files.r
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@
find_met_files <- function(t_start, met_file_format, n_hours, met_loc) {
require(dplyr)

request <- c(t_start %>% as.POSIXct(tz='UTC')) %>%
c(. + n_hours * c(3600, 3601)) %>%
request <- as.POSIXct(t_start, tz='UTC') %>%
c(. + c(n_hours, n_hours - 5) * 3600) %>%
range() %>%
round('hours') %>%
(function(x) seq(x[1], x[2], by = 'hour')) %>%
strftime(tz = 'UTC', format = met_file_format)

Expand Down

0 comments on commit 22bd5fb

Please sign in to comment.