Skip to content
Snippets Groups Projects

Update TUC in metadata.py

Merged Geels, Brendan Ryan requested to merge (removed):update-tuc-metadata into master
1 file
+ 67
31
Compare changes
  • Side-by-side
  • Inline
+ 67
31
@@ -39,21 +39,23 @@ _INSTRUMENT_METADATA = [
@@ -39,21 +39,23 @@ _INSTRUMENT_METADATA = [
"channels": {
"channels": {
# each channel maps to a list of components to calculate nT
# each channel maps to a list of components to calculate nT
# TODO: calculate these lists based on "FGE" type
# TODO: calculate these lists based on "FGE" type
"U": [{"channel": "U_Volt", "offset": 20613, "scale": 966.762}],
# TODO: Adjust offset for new FGE sensor & electronics? (installed 3/20/22)
"V": [{"channel": "V_Volt", "offset": 0, "scale": 944.125}],
"U": [{"channel": "U_Volt", "offset": 20613, "scale": 966.7624}],
"W": [{"channel": "W_Volt", "offset": 47450, "scale": 975.587}],
"V": [{"channel": "V_Volt", "offset": 0, "scale": 944.1253}],
 
"W": [{"channel": "W_Volt", "offset": 47450, "scale": 975.5875}],
},
},
"electronics": {
"electronics": {
"serial": "TBD",
"serial": "E574",
# these scale values are used to convert voltage
# these scale values are calculated manually.
"x-scale": 966.762, # nT/V
"x-scale": 966.7624, # nT/V
"y-scale": 944.125, # nT/V
"y-scale": 944.1253, # nT/V
"z-scale": 975.587, # nT/V
"z-scale": 975.5875, # nT/V
"temperature-scale": 0.01, # V/K
"temperature-scale": 0.01, # V/K
},
},
"sensor": {
"sensor": {
"serial": "TBD",
"serial": "S0449",
# these constants combine with instrument setting for offset
# these constants combine with instrument setting for offset
 
# Temporary values until actuals are obtained.
"x-constant": 37027, # nT/mA
"x-constant": 37027, # nT/mA
"y-constant": 36160, # nT/mA
"y-constant": 36160, # nT/mA
"z-constant": 37365, # nT/mA
"z-constant": 37365, # nT/mA
@@ -557,16 +559,17 @@ _INSTRUMENT_METADATA = [
@@ -557,16 +559,17 @@ _INSTRUMENT_METADATA = [
"channels": {
"channels": {
# each channel maps to a list of components to calculate nT
# each channel maps to a list of components to calculate nT
# TODO: calculate these lists based on "FGE" type
# TODO: calculate these lists based on "FGE" type
"U": [{"channel": "U_Volt", "offset": 0, "scale": 313.203}],
"U": [{"channel": "U_Volt", "offset": 0, "scale": 313.2034}],
"V": [{"channel": "V_Volt", "offset": 0, "scale": 312.280}],
"V": [{"channel": "V_Volt", "offset": 0, "scale": 312.2797}],
"W": [{"channel": "W_Volt", "offset": 0, "scale": 311.958}],
"W": [{"channel": "W_Volt", "offset": 0, "scale": 311.9576}],
},
},
 
# this info should get updated when available
"electronics": {
"electronics": {
"serial": "E0542",
"serial": "E0543",
# these scale values are used to convert voltage
# these scale values are calculated manually
"x-scale": 313.203, # nT/V
"x-scale": 313.2034, # nT/V
"y-scale": 312.280, # nT/V
"y-scale": 312.2797, # nT/V
"z-scale": 311.958, # nT/V
"z-scale": 311.9576, # nT/V
"temperature-scale": 0.01, # V/K
"temperature-scale": 0.01, # V/K
},
},
"sensor": {
"sensor": {
@@ -581,24 +584,57 @@ _INSTRUMENT_METADATA = [
@@ -581,24 +584,57 @@ _INSTRUMENT_METADATA = [
{
{
"network": "NT",
"network": "NT",
"station": "TUC",
"station": "TUC",
"start_time": None,
"start_time": "2023-03-29T00:40:00.000Z",
"end_time": None,
"end_time": None,
"instrument": {
"instrument": {
"type": "Narod",
"type": "FGE",
"channels": {
"channels": {
"U": [
# each channel maps to a list of components to calculate nT
{"channel": "U_Volt", "offset": 0, "scale": 100},
# TODO: calculate these lists based on "FGE" type
{"channel": "U_Bin", "offset": 0, "scale": 500},
"U": [{"channel": "U_Volt", "offset": 24024, "scale": 978.355}],
],
"V": [{"channel": "V_Volt", "offset": 0, "scale": 965.901}],
"V": [
"W": [{"channel": "W_Volt", "offset": 39999, "scale": 954.543}],
{"channel": "V_Volt", "offset": 0, "scale": 100},
},
{"channel": "V_Bin", "offset": 0, "scale": 500},
# this info should get updated when available
],
"electronics": {
"W": [
"serial": "E571",
{"channel": "W_Volt", "offset": 0, "scale": 100},
# these scale values are calculated manually
{"channel": "W_Bin", "offset": 0, "scale": 500},
"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},
 
# ],
 
# },
 
# },
 
# },
]
]
Loading