Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main to prod #93

Merged
merged 6 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion catalog/forecasts/forecast_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,17 @@ for (i in 1:length(config$variable_groups)){ ## organize variable groups
model_keywords <- c(list('Forecasts',config$project_id, names(config$variable_groups)[i], m, var_name_full[j], var_name, duration_value, duration_name),
as.list(model_sites$site_id))

## build radiantearth stac and raw json link
stac_link <- paste0('https://radiantearth.github.io/stac-browser/#/external/raw.githubusercontent.com/eco4cast/usgsrc4cast-ci/main/catalog/forecasts/',
names(config$variable_groups)[i],'/',
var_formal_name, '/models/',
m,'.json')

json_link <- paste0('https://raw.githubusercontent.com/eco4cast/usgsrc4cast-ci/main/catalog/forecasts/',
names(config$variable_groups)[i],'/',
var_formal_name, '/models/',
m,'.json')

stac4cast::build_model(model_id = m,
stac_id = stac_id,
team_name = registered_model_id$`Long name of the model (can include spaces)`[idx],
Expand All @@ -338,7 +349,9 @@ for (i in 1:length(config$variable_groups)){ ## organize variable groups
table_description = forecast_description_create,
full_var_df = model_vars,
code_web_link = model_code_link,
model_keywords = model_keywords)
model_keywords = model_keywords,
stac_web_link = stac_link,
raw_json_link = json_link)

} ## end model loop
} ## end duration loop
Expand Down
163 changes: 0 additions & 163 deletions catalog/forecasts/models/collection.json

This file was deleted.

Empty file.
178 changes: 0 additions & 178 deletions catalog/forecasts/models/model_items/USGSHABs1.json

This file was deleted.

Loading
Loading