Skip to content

Commit

Permalink
use bundled summaries for catalog inventory build
Browse files Browse the repository at this point in the history
  • Loading branch information
addelany committed Dec 16, 2024
1 parent 745f8cc commit 96d3737
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions catalog/inventory/create_inventory_page.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,21 @@ inventory_theme_df <- arrow::open_dataset(arrow::s3_bucket(config$inventory_buck
# inventory_data_df <- arrow::open_dataset(arrow::s3_bucket(config$inventory_bucket, endpoint_override = config$endpoint, anonymous = TRUE)) |>
# collect()

inventory_data_df <- arrow::open_dataset(arrow::s3_bucket(paste0(config$inventory_bucket,'/catalog/forecasts'),
# inventory_data_df <- arrow::open_dataset(arrow::s3_bucket(paste0(config$inventory_bucket,'/catalog/forecasts'),
# endpoint_override = config$endpoint, anonymous = TRUE)) |>
# filter(variable %in% interest_variables) |>
# collect()

# inventory_data_df <- arrow::open_dataset(arrow::s3_bucket(paste0(config$inventory_bucket,'/catalog/forecasts/project_id=neon4cast'),
# endpoint_override = config$endpoint, anonymous = TRUE)) |>
# filter(variable %in% interest_variables) |>
# collect()

inventory_data_df <- arrow::open_dataset(arrow::s3_bucket(paste0(config$summaries_bucket,'/project_id=',config$project_id),
endpoint_override = config$endpoint, anonymous = TRUE)) |>
filter(variable %in% interest_variables) |>
collect()
collect() |>
mutate(date = as.Date(datetime))

theme_models <- inventory_data_df |>
distinct(model_id)
Expand Down

0 comments on commit 96d3737

Please sign in to comment.