From 97e601f8414dc0f7b6ec8a3796f560e63d3e3e87 Mon Sep 17 00:00:00 2001
From: "E. Joshua Rigler" <erigler@usgs.gov>
Date: Sat, 16 Apr 2022 10:53:39 -0600
Subject: [PATCH 1/3] Add GUA to geomagio/Metadata.py

GUA is transitioning to an ObsRIO data logger, which requires a
metadata entry in Metadata.py. We do not know actual calibration
values for the GUA Narod mag, and cannot retrieve them currently
due to ongoing communication issues, so we'll use Narod default
calibration parameters.

This commit applies strictly to GUA. Additional commits are
forthcoming that relate to the test FGE+ObsRIO system that will
also be deployed soon.
---
 geomagio/Metadata.py | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/geomagio/Metadata.py b/geomagio/Metadata.py
index dec19252..74c2b347 100644
--- a/geomagio/Metadata.py
+++ b/geomagio/Metadata.py
@@ -321,6 +321,29 @@ _INSTRUMENT_METADATA = [
             },
         },
     },
+    {
+        "network": "NT",
+        "station": "GUA",
+        "start_time": None,
+        "end_time": None,
+        "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},
+                ],
+            },
+        },
+    },
     {
         "network": "NT",
         "station": "HON",
-- 
GitLab


From 936ef744358b3facc471cd618938a1943173b7bb Mon Sep 17 00:00:00 2001
From: "E. Joshua Rigler" <erigler@usgs.gov>
Date: Sat, 16 Apr 2022 10:59:33 -0600
Subject: [PATCH 2/3] Add GUT to geomagio/Metadata.py

A new FGE+ObsRIO test system is being deployed to Guam. For now,
we simply create an entry in Metadata.py so that variation
filtering can be be applied to these new data. The calibration
parameters are defaults for non-high-latitude FGE fluxgages.
---
 geomagio/Metadata.py | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/geomagio/Metadata.py b/geomagio/Metadata.py
index 74c2b347..ded542a9 100644
--- a/geomagio/Metadata.py
+++ b/geomagio/Metadata.py
@@ -344,6 +344,38 @@ _INSTRUMENT_METADATA = [
             },
         },
     },
+    {
+        "network": "NT",
+        "station": "GUT",
+        "start_time": None,
+        "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": 320.0}],
+                "V": [{"channel": "V_Volt", "offset": 0, "scale": 320.0}],
+                "W": [{"channel": "W_Volt", "offset": 0, "scale": 320.0}],
+            },
+            ## this info should get updated when available
+            # "electronics": {
+            #     "serial": "E0542",
+            #     # these scale values are used to convert voltage
+            #     "x-scale": 313.2,  # V/nT
+            #     "y-scale": 312.3,  # V/nT
+            #     "z-scale": 312.0,  # V/nT
+            #     "temperature-scale": 0.01,  # V/K
+            # },
+            # "sensor": {
+            #     "serial": "S0419",
+            #     # these constants combine with instrument setting for offset
+            #     "x-constant": 36958,  # nT/mA
+            #     "y-constant": 36849,  # nT/mA
+            #     "z-constant": 36811,  # nT/mA
+            # },
+        },
+    },
     {
         "network": "NT",
         "station": "HON",
-- 
GitLab


From 628f9ad17c6fc105c3cc31e9a34553b8dfbdf019 Mon Sep 17 00:00:00 2001
From: "E. Joshua Rigler" <erigler@usgs.gov>
Date: Sat, 16 Apr 2022 11:02:08 -0600
Subject: [PATCH 3/3] Add HOT to geomagio/Metadata.py

A new FGE+ObsRIO test system is being deployed to Honolulu.
For now, we simply create an entry in Metadata.py so that
variationfiltering can be be applied to these new data. The
calibration parameters are defaults for non-high-latitude
FGE fluxgages.
---
 geomagio/Metadata.py | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/geomagio/Metadata.py b/geomagio/Metadata.py
index ded542a9..28bd1b66 100644
--- a/geomagio/Metadata.py
+++ b/geomagio/Metadata.py
@@ -399,6 +399,38 @@ _INSTRUMENT_METADATA = [
             },
         },
     },
+    {
+        "network": "NT",
+        "station": "HOT",
+        "start_time": None,
+        "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": 320.0}],
+                "V": [{"channel": "V_Volt", "offset": 0, "scale": 320.0}],
+                "W": [{"channel": "W_Volt", "offset": 0, "scale": 320.0}],
+            },
+            ## this info should get updated when available
+            # "electronics": {
+            #     "serial": "E0542",
+            #     # these scale values are used to convert voltage
+            #     "x-scale": 313.2,  # V/nT
+            #     "y-scale": 312.3,  # V/nT
+            #     "z-scale": 312.0,  # V/nT
+            #     "temperature-scale": 0.01,  # V/K
+            # },
+            # "sensor": {
+            #     "serial": "S0419",
+            #     # these constants combine with instrument setting for offset
+            #     "x-constant": 36958,  # nT/mA
+            #     "y-constant": 36849,  # nT/mA
+            #     "z-constant": 36811,  # nT/mA
+            # },
+        },
+    },
     {
         "network": "NT",
         "station": "NEW",
-- 
GitLab