Skip to content

Commit

Permalink
use bundled parquet for forecasts
Browse files Browse the repository at this point in the history
  • Loading branch information
addelany committed Dec 16, 2024
1 parent f23055f commit 745f8cc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions catalog/forecasts/forecast_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ print('FIND FORECAST TABLE SCHEMA')
forecast_theme_df <- arrow::open_dataset(arrow::s3_bucket(config$forecasts_bucket, endpoint_override = config$endpoint, anonymous = TRUE)) #|>

print('FIND INVENTORY BUCKET')
forecast_s3 <- arrow::s3_bucket(glue::glue("{config$inventory_bucket}/catalog/forecasts/project_id={config$project_id}"),
endpoint_override = "sdsc.osn.xsede.org",
anonymous=TRUE)
# forecast_s3 <- arrow::s3_bucket(glue::glue("{config$inventory_bucket}/catalog/forecasts/project_id={config$project_id}"),
# endpoint_override = "sdsc.osn.xsede.org",
# anonymous=TRUE)

forecast_s3 <- arrow::s3_bucket(glue::glue("{config$forecasts_bucket}/bundled-parquet/project_id={config$project_id}"),
endpoint_override = "sdsc.osn.xsede.org",
anonymous=TRUE)

print('OPEN INVENTORY BUCKET')
forecast_data_df <- arrow::open_dataset(forecast_s3) |>
filter(project_id == config$project_id) |>
#filter(project_id == config$project_id) |>
collect()

theme_models <- forecast_data_df |>
Expand Down

0 comments on commit 745f8cc

Please sign in to comment.