Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
75aeac00
Commit
75aeac00
authored
2 years ago
by
Wernle, Alexandra Nicole
Browse files
Options
Downloads
Plain Diff
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
!217
Update TUC in metadata.py
Pipeline
#244680
passed
2 years ago
Stage: init
Stage: test
Stage: integration
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geomagio/Metadata.py
+67
-31
67 additions, 31 deletions
geomagio/Metadata.py
with
67 additions
and
31 deletions
geomagio/Metadata.py
+
67
−
31
View file @
75aeac00
...
...
@@ -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.762
4
,
# nT/V
"
y-scale
"
:
944.125
3
,
# nT/V
"
z-scale
"
:
975.587
5
,
# 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.2
80
}],
"
W
"
:
[{
"
channel
"
:
"
W_Volt
"
,
"
offset
"
:
0
,
"
scale
"
:
311.95
8
}],
"
U
"
:
[{
"
channel
"
:
"
U_Volt
"
,
"
offset
"
:
0
,
"
scale
"
:
313.203
4
}],
"
V
"
:
[{
"
channel
"
:
"
V_Volt
"
,
"
offset
"
:
0
,
"
scale
"
:
312.2
797
}],
"
W
"
:
[{
"
channel
"
:
"
W_Volt
"
,
"
offset
"
:
0
,
"
scale
"
:
311.95
76
}],
},
# this info should get updated when available
"
electronics
"
:
{
"
serial
"
:
"
E054
2
"
,
# these scale values are
used to convert voltage
"
x-scale
"
:
313.203
,
# nT/V
"
y-scale
"
:
312.2
80
,
# nT/V
"
z-scale
"
:
311.95
8
,
# nT/V
"
serial
"
:
"
E054
3
"
,
# these scale values are
calculated manually
"
x-scale
"
:
313.203
4
,
# nT/V
"
y-scale
"
:
312.2
797
,
# nT/V
"
z-scale
"
:
311.95
76
,
# 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},
# ],
# },
# },
# },
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment