Skip to content

Commit

Permalink
Add Git commit hash to README
Browse files Browse the repository at this point in the history
  • Loading branch information
bpbond committed Jan 17, 2024
1 parent 242e650 commit 634b171
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions synoptic/L1.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ if(!file.exists(readme_fn)) stop("Couln't find ", readme_fn)
readme <- readLines(readme_fn)
readme <- gsub("[DATESTAMP]", format(Sys.time(), "%Y-%m-%d"), readme, fixed = TRUE)
readme <- gsub("[VERSION]", params$L1_VERSION, readme, fixed = TRUE)
readme <- gsub("[GIT_COMMIT]", GIT_COMMIT, readme, fixed = TRUE)
readme_outfn <- file.path(L1, basename(readme_fn))
message("Writing overall README ", readme_outfn, "...")
writeLines(readme, readme_outfn)
Expand Down
4 changes: 2 additions & 2 deletions synoptic/data_TEST/L1_metadata/L1_metadata_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ General information
Level 1 (L1) data are close to raw, although they have been units-transformed
and have out-of-instrument-bounds and out-of-service flags added.
Duplicates are removed but otherwise these data are not filtered,
and have not been subject to any algorithmic or human QA/QC.
Any use of L1 data for science analyses should be done with care.
and have not been subject to any additional algorithmic or human QA/QC.
Any use of L1 data for science analyses should be performed with care.


Site information:
Expand Down
22 changes: 12 additions & 10 deletions synoptic/data_TEST/L1_metadata/README_v???.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
COMPASS-FME Level 1 data version [VERSION]
COMPASS-FME Level 1 data
Version: [VERSION]
Date: [DATESTAMP]
Git commit: [GIT_COMMIT]

# DESCRIPTION

DESCRIPTION
—----------------------------------
Level 1 (L1) data are close to raw, although they have been units-transformed
and have out-of-instrument-bounds and out-of-service flags added.
Duplicates are removed but otherwise these data are not filtered,
and have not been subject to any algorithmic or human QA/QC.
Any use of L1 data for science analyses should be done with care.

# CONTACT
and have not been subject to any additional algorithmic or human QA/QC.
Any use of L1 data for science analyses should be performed with care.

CONTACT
—----------------------------------
Project: https://compass.pnnl.gov
Data lead: Stephanie Pennington, stephanie.pennington@pnnl.gov

# CHANGELOG

Version ???
CHANGELOG
—----------------------------------
Version ??? released YYYY-MM-DD
* Release notes here

0 comments on commit 634b171

Please sign in to comment.