Skip to content

Commit

Permalink
Merge pull request #83 from addelany/main
Browse files Browse the repository at this point in the history
convert bbox to list
  • Loading branch information
addelany authored May 13, 2024
2 parents 2ecf882 + 9c8107b commit 9f0a5a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/build_group_variables.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ build_group_variables <- function(table_schema,
'type' = 'Collection',
"sci:doi" = catalog_config$citation_doi,
"sci:publications" = stac4cast::build_publication_items(citation_values, doi_values),
#"sci:publications" = NULL,
'links' = c(group_var_items,#generate_group_variable_items(variables = group_var_values)
list(
list(
Expand Down Expand Up @@ -109,7 +110,7 @@ build_group_variables <- function(table_schema,
"extent" = list(
"spatial" = list(
#'bbox' = list(list(stac4cast::get_bbox(site_metadata = catalog_config$site_metadata_url, sites = group_sites)))),
'bbox' = stac4cast::get_bbox(site_metadata = catalog_config$site_metadata_url, sites = group_sites)),
'bbox' = list(stac4cast::get_bbox(site_metadata = catalog_config$site_metadata_url, sites = group_sites))),
"temporal" = list(
'interval' = list(list(
paste0(start_date,"T00:00:00Z"),
Expand Down
2 changes: 1 addition & 1 deletion R/build_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ build_model <- function(model_id,
"stac_extensions"= list('https://stac-extensions.github.io/table/v1.2.0/schema.json'),
"type"= "Feature",
"id"= model_id,
"bbox"= stac4cast::get_bbox(site_metadata = site_table, sites = site_values),
"bbox"= list(stac4cast::get_bbox(site_metadata = site_table, sites = site_values)),
"geometry"= list(
"type"= catalog_config$site_type,
"coordinates"= stac4cast::get_site_coords(site_metadata = site_table, sites = site_values)
Expand Down

0 comments on commit 9f0a5a7

Please sign in to comment.