diff --git a/R/build_group_variables.R b/R/build_group_variables.R index 358ccb1..b09fb9c 100644 --- a/R/build_group_variables.R +++ b/R/build_group_variables.R @@ -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( @@ -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"), diff --git a/R/build_model.R b/R/build_model.R index c87812a..780f5db 100644 --- a/R/build_model.R +++ b/R/build_model.R @@ -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)