From 32c87343689f2e176bd335ae3b8c0d6c9f4a46b6 Mon Sep 17 00:00:00 2001 From: Austin Delany Date: Tue, 20 Aug 2024 10:40:41 -0500 Subject: [PATCH 1/4] Update fdom_ar_dwh.yaml --- .github/workflows/fdom_ar_dwh.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fdom_ar_dwh.yaml b/.github/workflows/fdom_ar_dwh.yaml index 6d2d8a7..3494562 100644 --- a/.github/workflows/fdom_ar_dwh.yaml +++ b/.github/workflows/fdom_ar_dwh.yaml @@ -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 11 * * *' workflow_dispatch: From d817bc3e3ffdd01741b35778cb064075ff1531fc Mon Sep 17 00:00:00 2001 From: Austin Delany Date: Tue, 20 Aug 2024 10:41:12 -0500 Subject: [PATCH 2/4] Update fable_NNETAR_focal_rerun.yaml --- .github/workflows/fable_NNETAR_focal_rerun.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fable_NNETAR_focal_rerun.yaml b/.github/workflows/fable_NNETAR_focal_rerun.yaml index 9768f71..1425d00 100644 --- a/.github/workflows/fable_NNETAR_focal_rerun.yaml +++ b/.github/workflows/fable_NNETAR_focal_rerun.yaml @@ -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: From 88f343d5d1044a3b518b1277a6c5ad6613c60d9a Mon Sep 17 00:00:00 2001 From: Austin Delany Date: Wed, 21 Aug 2024 09:57:46 -0500 Subject: [PATCH 3/4] Update helper_functions.R --- R/fdom_dwh/helper_functions.R | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/R/fdom_dwh/helper_functions.R b/R/fdom_dwh/helper_functions.R index c3bcf97..8c7ec57 100644 --- a/R/fdom_dwh/helper_functions.R +++ b/R/fdom_dwh/helper_functions.R @@ -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) @@ -303,7 +306,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)) { From 1ffddee47270231de84c17602b47b9d3c7980ac6 Mon Sep 17 00:00:00 2001 From: Austin Delany Date: Fri, 23 Aug 2024 09:32:13 -0500 Subject: [PATCH 4/4] Update fdom_ar_dwh.yaml --- .github/workflows/fdom_ar_dwh.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fdom_ar_dwh.yaml b/.github/workflows/fdom_ar_dwh.yaml index 3494562..efa5821 100644 --- a/.github/workflows/fdom_ar_dwh.yaml +++ b/.github/workflows/fdom_ar_dwh.yaml @@ -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 11 * * *' + - cron: '0 15 * * *' workflow_dispatch: