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
ce57ae30
Commit
ce57ae30
authored
1 year ago
by
Geels, Brendan Ryan
Browse files
Options
Downloads
Patches
Plain Diff
Fix HOT metadata
parent
e2f1bde9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!219
Fix metadata for hot, gut, sjt, and tuc.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geomagio/Metadata.py
+41
-8
41 additions, 8 deletions
geomagio/Metadata.py
with
41 additions
and
8 deletions
geomagio/Metadata.py
+
41
−
8
View file @
ce57ae30
...
...
@@ -404,25 +404,25 @@ _INSTRUMENT_METADATA = [
{
"
network
"
:
"
NT
"
,
"
station
"
:
"
HOT
"
,
"
start_time
"
:
None
,
"
start_time
"
:
"
2022-07-14T16:07:30.000Z
"
,
"
end_time
"
:
None
,
"
instrument
"
:
{
"
type
"
:
"
FGE
"
,
"
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
"
:
971.8
}],
"
V
"
:
[{
"
channel
"
:
"
V_Volt
"
,
"
offset
"
:
0
,
"
scale
"
:
970.6
}],
"
W
"
:
[{
"
channel
"
:
"
W_Volt
"
,
"
offset
"
:
0
,
"
scale
"
:
960.2
}],
"
U
"
:
[{
"
channel
"
:
"
U_Volt
"
,
"
offset
"
:
27123
,
"
scale
"
:
315.4
}],
"
V
"
:
[{
"
channel
"
:
"
V_Volt
"
,
"
offset
"
:
0
,
"
scale
"
:
315.0
}],
"
W
"
:
[{
"
channel
"
:
"
W_Volt
"
,
"
offset
"
:
21158
,
"
scale
"
:
311.7
}],
},
# this info should get updated when available
"
electronics
"
:
{
"
serial
"
:
"
E558
"
,
# these scale values are used to convert voltage
# these are calculated using Ohm's law, given scaling resistor value, and given nT/mA values.
"
x-scale
"
:
971.8
,
# nT/V
"
y-scale
"
:
970.6
,
# nT/V
"
z-scale
"
:
960.2
,
# nT/V
"
x-scale
"
:
315.4
,
# nT/V
"
y-scale
"
:
315.0
,
# nT/V
"
z-scale
"
:
311.7
,
# nT/V
"
temperature-scale
"
:
0.01
,
# V/K
},
"
sensor
"
:
{
...
...
@@ -613,7 +613,7 @@ _INSTRUMENT_METADATA = [
},
},
},
## Leaving th
is
old object in comments in case we want to save it in the actual database as historical data
## Leaving th
ese
old object
s
in comments in case we want to save it in the actual database as historical data
# {
# "network": "NT",
# "station": "TUC",
...
...
@@ -637,4 +637,37 @@ _INSTRUMENT_METADATA = [
# },
# },
# },
# {
# "network": "NT",
# "station": "HOT",
# "start_time": None,
# "end_time": "2022-07-14T16:07:30.000Z",
# "instrument": {
# "type": "FGE",
# "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": 971.8}],
# "V": [{"channel": "V_Volt", "offset": 0, "scale": 970.6}],
# "W": [{"channel": "W_Volt", "offset": 0, "scale": 960.2}],
# },
# # this info should get updated when available
# "electronics": {
# "serial": "E558",
# # these scale values are used to convert voltage
# # these are calculated using Ohm's law, given scaling resistor value, and given nT/mA values.
# "x-scale": 971.8, # nT/V
# "y-scale": 970.6, # nT/V
# "z-scale": 960.2, # nT/V
# "temperature-scale": 0.01, # V/K
# },
# "sensor": {
# "serial": "S0428",
# # these constants combine with instrument setting for offset
# "x-constant": 37220, # nT/mA
# "y-constant": 37175, # nT/mA
# "z-constant": 36775, # nT/mA
# },
# },
# },
]
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