Skip to content

Commit

Permalink
Merge branch 'LTREB-reservoirs:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
addelany authored Aug 23, 2024
2 parents d2c370e + 1ffddee commit 30774a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fable_NNETAR_focal_rerun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
schedule:
- cron: '0 12 * * *'
- cron: '0 14 * * *'
workflow_dispatch:


Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fdom_ar_dwh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
schedule:
- cron: '0 2 * * *'
- cron: '0 15 * * *'
workflow_dispatch:


Expand Down
8 changes: 6 additions & 2 deletions R/fdom_dwh/helper_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ generate_fDOM_forecast <- function(forecast_date, # a recommended argument so yo

# Get the weather data
message('Getting weather')

noaa_date <- forecast_date - lubridate::days(1)
print(paste0('NOAA data from: ',noaa_date))

met_s3_future <- arrow::s3_bucket(file.path("bio230121-bucket01/flare/drivers/met/gefs-v12/stage2",paste0("reference_datetime=",(forecast_date - lubridate::days(1))),paste0("site_id=",site)),
met_s3_future <- arrow::s3_bucket(file.path("bio230121-bucket01/flare/drivers/met/gefs-v12/stage2",paste0("reference_datetime=",noaa_date),paste0("site_id=",site)),
endpoint_override = 'renc.osn.xsede.org',
anonymous = TRUE)

Expand Down Expand Up @@ -305,7 +308,8 @@ generate_fDOM_forecast <- function(forecast_date, # a recommended argument so yo
#-------------------------------------

message('Generating forecast')


print(paste0('Running forecast starting on: ', forecast_date))

#for loop to run forecast
for(i in 2:length(forecasted_dates)) {
Expand Down

0 comments on commit 30774a2

Please sign in to comment.