Skip to content

Metadata and test data for new ERT tables at TEMPEST - #483

Merged
bpbond merged 9 commits into
mainfrom
ert
Aug 27, 2026
Merged

Metadata and test data for new ERT tables at TEMPEST#483
bpbond merged 9 commits into
mainfrom
ert

Conversation

@bpbond

@bpbond bpbond commented Jun 16, 2026

Copy link
Copy Markdown
Member

This PR adds test data, design table entries, and qaqc table entries for the new ERT data at TEMPEST.

Here is how the tables are processed:

Logger Table Action
ERT-84 Teros12Table Processed
ERT-84 Teros21Table Processed
ERT-84 Redox5 Dropped
ERT-84 Redox15 Dropped
ERT-84 RedoxTEST Processed

@roylrich @stephpenn1 Does this look correct to you?

Also, see discussion below regarding how we assign the Instrument_ID and Sensor_ID information.

Closes #474

@bpbond bpbond changed the title Design table, metadata, and test data for new ERT tables at TEMPEST Metadata and test data for new ERT tables at TEMPEST Jun 16, 2026
@bpbond

bpbond commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

Right now the ERT data outputs in this PR look like this:

image
  • Instrument_ID = "ERT"
  • "A" or "B" sensors are identified via Sensor_ID

However the existing redox data have outputs that look like this:

image
  • Instrument_ID is used to identify "A" or "B"

Which form do we prefer?

@stephpenn1 @roylrich (anyone else to tag in on this?)

@stephpenn1

stephpenn1 commented Jun 17, 2026

Copy link
Copy Markdown
Member

My vote is for option A (Instrument_ID = "ERT"; "A" or "B" sensors are identified via Sensor_ID).

I'm seeing that the existing design table example looks like the below, I'm confused how the existing redox ends up as your second photo?

Logger Table loggernet_variable Site Plot Instrument Instrument_ID Sensor_ID Location valid_through research_name note
  COMPASS_GCW_TR_432 Redox5 RedoxRa({1:12}) GCW TR Redox   {1:12}a     redox-5cm
  COMPASS_GCW_TR_432 Redox5 RedoxRb({1:12}) GCW TR Redox   {1:12}b     redox-5cm

@bpbond

bpbond commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

Thanks @stephpenn1

I'm confused how the existing redox ends up as your second photo

It varies between sites -- some use the Instrument_ID, but others don't.

@bpbond

bpbond commented Jun 30, 2026

Copy link
Copy Markdown
Member Author

Sorry for the delay; coming back to wrap this up (hopefully).

Here's how we treat the Instrument_ID and Sensor_ID columns across all sites and plots:

   Site  Plot  Instrument Instrument_ID Sensor_ID research_name
   <chr> <chr> <chr>      <chr>         <chr>     <chr>        
 1 GCW   TR    Redox      ""            10a       redox-5cm    
 2 GCW   UP    Redox      "A"           1         redox-10cm   
 3 GCW   W     Redox      ""            10a       redox-5cm    
 4 GWI   TR    Redox      ""            10a       redox-5cm    
 5 GWI   UP    Redox      ""            10a       redox-5cm    
 6 GWI   W     Redox      ""            10a       redox-5cm    
 7 MSM   TR    Redox      ""            10a       redox-5cm    
 8 MSM   UP    Redox      ""            10a       redox-5cm    
 9 MSM   W     Redox      ""            10a       redox-5cm    
10 SWH   SWAMP Redox      ""            10a       redox-5cm    
11 SWH   TR    Redox      ""            10a       redox-5cm    
12 SWH   UP    Redox      ""            10a       redox-5cm    
13 SWH   W     Redox      ""            10a       redox-5cm    
14 TMP   C     Redox      "A"           1         redox-10cm   
15 TMP   F     Redox      "A"           1         redox-10cm   
16 TMP   S     Redox      "A"           1         redox-10cm   

So, things are inconsistent!

Created using

x <- read_L2_variable("redox-5cm", path = "~/sensor_data/Level2/v2-1/")
y <- read_L2_variable("redox-10cm", path = "~/sensor_data/Level2/v2-1/")
bind_rows(x,y) |> group_by(Site, Plot, research_name) |> slice_head(n = 1)

@stephpenn1

Copy link
Copy Markdown
Member

Oof, so if I'm reading this correctly, we're even treating within site sensors differently 🥴 I'm about to jump on a meeting, will come back at 2pm with my standardization suggestions!

@stephpenn1

Copy link
Copy Markdown
Member

Options I'm seeing:

Instrument_ID: ERT
Sensor_ID: 10a, 10b, etc

OR

Instrument_ID: ERT-1 or 1 (for non ERT sensors)
Sensor_ID: a, b, etc

Any thoughts on which would be easier to parse in code?

@bpbond

bpbond commented Jun 30, 2026

Copy link
Copy Markdown
Member Author

I think they're equivalent in terms of parsing via code; but your second option is more intuitive to me. It seems clearer and cleaner.

@stephpenn1

Copy link
Copy Markdown
Member

Agree - let's proceed with option 2 for redox at all sites!

@stephpenn1

Copy link
Copy Markdown
Member

Hey @bpbond, I've reviewed your ERT design table additions.

I think there's a typo in the Instrument column for redox A/B, and I've moved the research names in the Redox5 and Redox15 tables to the notes section, and moved the research names in the RedoxTEST table to the research_name column. Both are fixed in 2fb4477. Please review!

@bpbond

bpbond commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

@stephpenn1

  1. Your design table edits had a mistake starting in line 3246 (the research names were pasted into the valid_through column). Fixed in 04d3653
  2. "I've moved the research names in the Redox5 and Redox15 tables to the notes section" -- what's the point of this? I'm confused. If the intention is to drop those tables, why not simply remove their research names? If you can clarify that would be helpful.

Thank you!

@stephpenn1

stephpenn1 commented Aug 26, 2026

Copy link
Copy Markdown
Member

what's the point of this?

This was how the tables we're already set up (with the research names in the notes for the RedoxTEST tables) so I continued that format for the other Redox tables in case you made that format for a reason

@bpbond

bpbond commented Aug 26, 2026

Copy link
Copy Markdown
Member Author

Oh okay, sorry I missed that. Let me take another look with fresh eyes.

@bpbond
bpbond requested review from roylrich and stephpenn1 August 26, 2026 14:39
@bpbond
bpbond marked this pull request as ready for review August 26, 2026 14:39
@roylrich

roylrich commented Aug 26, 2026 via email

Copy link
Copy Markdown

@stephpenn1

Copy link
Copy Markdown
Member

Options I'm seeing:

Instrument_ID: ERT Sensor_ID: 10a, 10b, etc

OR

Instrument_ID: ERT-1 or 1 (for non ERT sensors) Sensor_ID: a, b, etc

Any thoughts on which would be easier to parse in code?

Agree - let's proceed with option 2 for redox at all sites!

Hi @bpbond, a few things I noticed re: the above change, questions are in bold:

  1. As you know, the redox IDs are currently in the Sensor_ID column and have the bracket nomenclature (e.g. {1:12}a). With the proposed option 2, we'd be moving the bracket portion to Instrument_ID a la...

Old Nomenclature:

Instrument_ID Sensor_ID
  {1:12}a

New Nomenclature:

Instrument_ID Sensor_ID
 {1:12} a
 ERT-{1:12} a

This, I assume, will need a code tweak to parse these in a different column and with the possible "ERT-" prefix. Correct? I wanted to confirm before I made edits to all redox rows

  1. There's a rogue row in the design table:
image

I assume he belongs up with the other ERT tables but I wanted to confirm before I move it.

@bpbond

bpbond commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

I'd like to separate this PR's changes (new TEMPEST ERT tables) from making redox ID columns consistent across all sites and plots, which will be a big change. So I've moved that discussion to #496 and we'll make a separate PR.

OK @stephpenn1 ? If you agree let's approve and merge this and then proceed in #496

@roylrich roylrich left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you confirm for ERT that we are pulling RedoxC and RedoxD variables?

@bpbond

bpbond commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

@roylrich Table processing is as above #483 (comment)

@stephpenn1

stephpenn1 commented Aug 27, 2026

Copy link
Copy Markdown
Member

Can you confirm for ERT that we are pulling RedoxC and RedoxD variables?

Yes @roylrich we are only pulling the RedoxTEST table for now which has all 4

@stephpenn1

Copy link
Copy Markdown
Member

I'd like to separate this PR's changes (new TEMPEST ERT tables) from making redox ID columns consistent across all sites and plots, which will be a big change. So I've moved that discussion to #496 and we'll make a separate PR.

OK @stephpenn1 ? If you agree let's approve and merge this and then proceed in #496

Fine with me @bpbond

@bpbond
bpbond merged commit 761c114 into main Aug 27, 2026
2 checks passed
@bpbond
bpbond deleted the ert branch August 27, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ERT SYSTEM FOR KENNEDY AT TEMPEST

3 participants