diff --git a/synoptic/L1_normalize.qmd b/synoptic/L1_normalize.qmd index 7052e05..c9817d4 100644 --- a/synoptic/L1_normalize.qmd +++ b/synoptic/L1_normalize.qmd @@ -245,6 +245,23 @@ f <- function(fn, out_dir, design_table) { site = dat$Site[1], logger = dat$Logger[1], table = dat$Table[1]) + + # The Chesapeake Bay synoptic site design overlaps with TEMPEST, + # and the latter's control ("C") plot functions as the former's + # upland plot. So if we're handling TMP C data, also write a copy + # as GCW UP. https://github.com/COMPASS-DOE/data-workflows/issues/116 + if(dat$Site[1] == "TMP" && dat$Plot[1] == "C") { + dat$Site <- "GCW" + dat$Plot <- "UP" + message("\t--> DUPLICATING DATA TO GCW UP <--") + write_to_folders(dat, + root_dir = out_dir, + data_level = "L1_normalize", + site = dat$Site[1], + logger = dat$Logger[1], + table = dat$Table[1]) + } + rm(dat) if(params$remove_input_files) { diff --git a/synoptic/metadata/L1_metadata/GCW.txt b/synoptic/metadata/L1_metadata/GCW.txt index 55493b3..2b66781 100644 --- a/synoptic/metadata/L1_metadata/GCW.txt +++ b/synoptic/metadata/L1_metadata/GCW.txt @@ -6,6 +6,10 @@ overlaps with the TEMPEST experiment control plot. This transect spans a mid- to late-successional (~80 years old) temperate, deciduous coastal forest and a mesohaline marsh along the Rhode River in Edgewater, MD. +Important note: GCW upland (UP) is the TEMPEST control (C) plot, and so the +data for GCW-UP in this folder are copied from (and identical to) TMP-C; +this means they differ in some respects from the other synoptic plots' data. + Contacts for the GCReW Synoptic site: Stephanie J. Wilson wilsonsj@si.edu Pat Megonigal megonigalp@si.edu diff --git a/synoptic/metadata/L1_metadata/L1_metadata_variables.csv b/synoptic/metadata/L1_metadata/L1_metadata_variables.csv index fdc76df..bdbd9dc 100644 --- a/synoptic/metadata/L1_metadata/L1_metadata_variables.csv +++ b/synoptic/metadata/L1_metadata/L1_metadata_variables.csv @@ -19,7 +19,7 @@ WaterLevel,Barometric_Pressure600,gw_bar_pressure,,,x * 1,,, WaterLevel,Temperature600,gw_temperature,degC,degC,x * 1,-5,50,Groundwater temperature WaterLevel,Temperature_Int600,gw_temperature_int,degC,degC,x * 1,-5,50, WaterLevel,Actual_Conductivity600,gw_act_cond,μS/cm,μS/cm,x * 1,,, -WaterLevel,Specific_Conductivity600,gw_conductivity,uS/cm,uS/cm,x * 1,0,350000,Groundwater specific conductivity +WaterLevel,Specific_Conductivity600,gw_spec_cond,uS/cm,uS/cm,x * 1,0,350000,Groundwater specific conductivity WaterLevel,Salinity600,gw_salinity,PSU,PSU,x * 1,0,350,Groundwater salinity WaterLevel,TDS600,gw_tds,,,x * 1,,, WaterLevel,Water_Density600,gw_density,g/cm3,g/cm3,x * 1,0.98,1.05,Groundwater density