Skip to content
Snippets Groups Projects
Commit 75aeac00 authored by Wernle, Alexandra Nicole's avatar Wernle, Alexandra Nicole
Browse files

Merge branch 'update-tuc-metadata' into 'master'

Update TUC in metadata.py

See merge request !217
parents 564a073d b094e7f2
No related branches found
No related tags found
1 merge request!217Update TUC in metadata.py
Pipeline #244680 passed
......@@ -39,21 +39,23 @@ _INSTRUMENT_METADATA = [
"channels": {
# each channel maps to a list of components to calculate nT
# TODO: calculate these lists based on "FGE" type
"U": [{"channel": "U_Volt", "offset": 20613, "scale": 966.762}],
"V": [{"channel": "V_Volt", "offset": 0, "scale": 944.125}],
"W": [{"channel": "W_Volt", "offset": 47450, "scale": 975.587}],
# TODO: Adjust offset for new FGE sensor & electronics? (installed 3/20/22)
"U": [{"channel": "U_Volt", "offset": 20613, "scale": 966.7624}],
"V": [{"channel": "V_Volt", "offset": 0, "scale": 944.1253}],
"W": [{"channel": "W_Volt", "offset": 47450, "scale": 975.5875}],
},
"electronics": {
"serial": "TBD",
# these scale values are used to convert voltage
"x-scale": 966.762, # nT/V
"y-scale": 944.125, # nT/V
"z-scale": 975.587, # nT/V
"serial": "E574",
# these scale values are calculated manually.
"x-scale": 966.7624, # nT/V
"y-scale": 944.1253, # nT/V
"z-scale": 975.5875, # nT/V
"temperature-scale": 0.01, # V/K
},
"sensor": {
"serial": "TBD",
"serial": "S0449",
# these constants combine with instrument setting for offset
# Temporary values until actuals are obtained.
"x-constant": 37027, # nT/mA
"y-constant": 36160, # nT/mA
"z-constant": 37365, # nT/mA
......@@ -557,16 +559,17 @@ _INSTRUMENT_METADATA = [
"channels": {
# each channel maps to a list of components to calculate nT
# TODO: calculate these lists based on "FGE" type
"U": [{"channel": "U_Volt", "offset": 0, "scale": 313.203}],
"V": [{"channel": "V_Volt", "offset": 0, "scale": 312.280}],
"W": [{"channel": "W_Volt", "offset": 0, "scale": 311.958}],
"U": [{"channel": "U_Volt", "offset": 0, "scale": 313.2034}],
"V": [{"channel": "V_Volt", "offset": 0, "scale": 312.2797}],
"W": [{"channel": "W_Volt", "offset": 0, "scale": 311.9576}],
},
# this info should get updated when available
"electronics": {
"serial": "E0542",
# these scale values are used to convert voltage
"x-scale": 313.203, # nT/V
"y-scale": 312.280, # nT/V
"z-scale": 311.958, # nT/V
"serial": "E0543",
# these scale values are calculated manually
"x-scale": 313.2034, # nT/V
"y-scale": 312.2797, # nT/V
"z-scale": 311.9576, # nT/V
"temperature-scale": 0.01, # V/K
},
"sensor": {
......@@ -581,24 +584,57 @@ _INSTRUMENT_METADATA = [
{
"network": "NT",
"station": "TUC",
"start_time": None,
"start_time": "2023-03-29T00:40:00.000Z",
"end_time": None,
"instrument": {
"type": "Narod",
"type": "FGE",
"channels": {
"U": [
{"channel": "U_Volt", "offset": 0, "scale": 100},
{"channel": "U_Bin", "offset": 0, "scale": 500},
],
"V": [
{"channel": "V_Volt", "offset": 0, "scale": 100},
{"channel": "V_Bin", "offset": 0, "scale": 500},
],
"W": [
{"channel": "W_Volt", "offset": 0, "scale": 100},
{"channel": "W_Bin", "offset": 0, "scale": 500},
],
# each channel maps to a list of components to calculate nT
# TODO: calculate these lists based on "FGE" type
"U": [{"channel": "U_Volt", "offset": 24024, "scale": 978.355}],
"V": [{"channel": "V_Volt", "offset": 0, "scale": 965.901}],
"W": [{"channel": "W_Volt", "offset": 39999, "scale": 954.543}],
},
# this info should get updated when available
"electronics": {
"serial": "E571",
# these scale values are calculated manually
"x-scale": 978.355, # nT/V
"y-scale": 965.901, # nT/V
"z-scale": 954.543, # nT/V
"temperature-scale": 0.01, # V/K
},
"sensor": {
"serial": "S0446",
# these constants combine with instrument setting for offset
"x-constant": 37471, # nT/mA
"y-constant": 36994, # nT/mA
"z-constant": 36559, # nT/mA
},
},
},
## Leaving this old object in comments in case we want to save it in the actual database as historical data
# {
# "network": "NT",
# "station": "TUC",
# "start_time": None,
# "end_time": "2023-03-29T00:00:00.000Z",
# "instrument": {
# "type": "Narod",
# "channels": {
# "U": [
# {"channel": "U_Volt", "offset": 0, "scale": 100},
# {"channel": "U_Bin", "offset": 0, "scale": 500},
# ],
# "V": [
# {"channel": "V_Volt", "offset": 0, "scale": 100},
# {"channel": "V_Bin", "offset": 0, "scale": 500},
# ],
# "W": [
# {"channel": "W_Volt", "offset": 0, "scale": 100},
# {"channel": "W_Bin", "offset": 0, "scale": 500},
# ],
# },
# },
# },
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment