From c6f1af730093251634c86425e27314e6e477fd20 Mon Sep 17 00:00:00 2001 From: "Geels, Brendan Ryan" <bgeels@usgs.gov> Date: Fri, 18 Aug 2023 13:16:01 -0600 Subject: [PATCH] Add start/end times to SJG/SJT, stash old metadata --- geomagio/Metadata.py | 82 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 80 insertions(+), 2 deletions(-) diff --git a/geomagio/Metadata.py b/geomagio/Metadata.py index 4cdf471a..c2a896b9 100644 --- a/geomagio/Metadata.py +++ b/geomagio/Metadata.py @@ -547,7 +547,7 @@ _INSTRUMENT_METADATA = [ { "network": "NT", "station": "SJG", - "start_time": None, + "start_time": "2023-08-18T19:02:34.000Z", "end_time": None, "instrument": { "type": "FGE", @@ -579,7 +579,7 @@ _INSTRUMENT_METADATA = [ { "network": "NT", "station": "SJT", - "start_time": None, + "start_time": "2023-08-18T19:02:34.000Z", "end_time": None, "instrument": { "type": "Narod", @@ -711,4 +711,82 @@ _INSTRUMENT_METADATA = [ # }, # }, # }, + # { + # "network": "NT", + # "station": "SJT", + # "start_time": None, + # "end_time": "2023-08-18T19:02:34.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": 27047, "scale": 313.2034}], + # "V": [{"channel": "V_Volt", "offset": 0, "scale": 312.2797}], + # "W": [{"channel": "W_Volt", "offset": 24288, "scale": 311.9576}], + # }, + # # this info should get updated when available + # "electronics": { + # "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": { + # "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": "SJG", + # "start_time": None, + # "end_time": "2023-08-18T19:02:34.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}, + # ], + # }, + # }, + # }, + # { + # "network": "NT", + # "station": "FRD", + # "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}, + # ], + # }, + # }, + # }, ] -- GitLab