From efd3d1ff5f50b9a4d8214fbcc80d8cc6ba0c96e4 Mon Sep 17 00:00:00 2001 From: "Geels, Brendan Ryan" <bgeels@usgs.gov> Date: Fri, 18 Aug 2023 13:04:08 -0600 Subject: [PATCH] Add FGE metadata for FRD --- geomagio/Metadata.py | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/geomagio/Metadata.py b/geomagio/Metadata.py index 7f3b3cca..4cdf471a 100644 --- a/geomagio/Metadata.py +++ b/geomagio/Metadata.py @@ -283,20 +283,28 @@ _INSTRUMENT_METADATA = [ "start_time": None, "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": 21690, "scale": 978.4}], + "V": [{"channel": "V_Volt", "offset": 0, "scale": 971.0}], + "W": [{"channel": "W_Volt", "offset": 45532, "scale": 966.7}], + }, + "electronics": { + "serial": "E570", + # these scale values are used to convert voltage + "x-scale": 978.4, # nT/V + "y-scale": 971.0, # nT/V + "z-scale": 966.7, # nT/V + "temperature-scale": 0.01, # V/K + }, + "sensor": { + "serial": "S0445", + # these constants combine with instrument setting for offset + "x-constant": 37474, # nT/mA + "y-constant": 37191, # nT/mA + "z-constant": 37025, # nT/mA }, }, }, -- GitLab