Skip to content

Commit

Permalink
Merge pull request #105 from addelany/main
Browse files Browse the repository at this point in the history
add datetime for models
  • Loading branch information
addelany authored Jul 18, 2024
2 parents f217812 + 762df97 commit f1f9f0a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions R/build_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ build_model <- function(model_id,
## manipulate dates to match STAC format
start_date <- paste0(start_date,"T00:00:00Z")
end_date <- paste0(end_date,"T00:00:00Z")
curent_date <- paste0(Sys.Date(), "T00:00:00Z")


aws_asset_link <- paste0('"',"s3://anonymous@",
Expand Down Expand Up @@ -84,14 +85,7 @@ build_model <- function(model_id,
"properties"= list(
"title" = model_id,
description = model_description,
# "description" = glue::glue('
#
# model info: {model_description}
#
# Sites: {site_reformat}
#
# Variables: {variables_string}
# '),
"datetime" = {NULL},
"start_datetime" = start_date,
"end_datetime" = end_date,
"providers"= c(stac4cast::generate_authors(model = model_id, metadata_table = model_documentation),list(
Expand Down

0 comments on commit f1f9f0a

Please sign in to comment.