forked from IMAP-Science-Operations-Center/imap_processing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move MAG L1A to CDF attribute manager (IMAP-Science-Operations-Center…
…#693) Refactoring MAG CDF attribute management to combine shared code for burst/norm/mago/magi. Moved MAG L1 to use SAMMI yaml CDF attribute manager. Updating tests.
- Loading branch information
1 parent
c1027aa
commit 50302ec
Showing
11 changed files
with
519 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
__version__ = "01" | ||
cdf_format_version = "v0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
"""Collection of constant types or values for MAG.""" | ||
|
||
from enum import Enum | ||
|
||
|
||
class DataMode(Enum): | ||
""" | ||
Enum for MAG data modes: burst and normal (BURST + NORM). | ||
Attributes | ||
---------- | ||
BURST: str | ||
Burst data mode - higher frequency data | ||
NORM: str | ||
Normal data mode - lower frequency data (downsampled from burst) | ||
""" | ||
|
||
BURST = "BURST" | ||
NORM = "NORM" | ||
|
||
|
||
class Sensor(Enum): | ||
""" | ||
Enum for MAG sensors: raw, MAGo, and MAGi (RAW, MAGO, MAGI). | ||
Attributes | ||
---------- | ||
MAGO : str | ||
MAGo sensor - for the outboard sensor. This is nominally expected to be the | ||
primary sensor. | ||
MAGI : str | ||
MAGi sensor - for the inboard sensor. | ||
RAW : str | ||
RAW data - contains both sensors. Here, the vectors are unprocessed. | ||
""" | ||
|
||
MAGO = "MAGO" | ||
MAGI = "MAGI" | ||
RAW = "RAW" | ||
|
||
|
||
class PrimarySensor(Enum): | ||
""" | ||
Enum for primary sensor: MAGo and MAGi (MAGO, MAGI). | ||
This corresponds to the PRI_SENS field in the MAG Level 0 data. | ||
Attributes | ||
---------- | ||
MAGO : int | ||
Primary sensor is MAGo. | ||
MAGI : int | ||
Primary sensor is MAGi. | ||
""" | ||
|
||
MAGO = 0 | ||
MAGI = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.