Skip to content
Snippets Groups Projects
Commit f50282e7 authored by Wernle, Alexandra Nicole's avatar Wernle, Alexandra Nicole
Browse files

Renaming amplitude as deviation.

parent ed1fd1e9
No related branches found
No related tags found
1 merge request!292New flag metadata class
...@@ -30,7 +30,7 @@ class Flag(BaseModel): ...@@ -30,7 +30,7 @@ class Flag(BaseModel):
"corrected": false, "corrected": false,
"artificial_disturbance_type": ArtificialDisturbanceType.SPIKE, "artificial_disturbance_type": ArtificialDisturbanceType.SPIKE,
"source": "Lightning". "source": "Lightning".
"amplitude": 16, "deviation": None,
} }
) )
``` ```
...@@ -64,8 +64,8 @@ class ArtificialDisturbance(Flag): ...@@ -64,8 +64,8 @@ class ArtificialDisturbance(Flag):
The type of artificial disturbance(s). The type of artificial disturbance(s).
source: str source: str
Source of the disturbance if known or suspected. Source of the disturbance if known or suspected.
amplitude: float deviation: float
Amplitude of the disturbance in nt if it is an offset value or singular spike. Deviation of an offset in nt.
spikes: np.ndarray spikes: np.ndarray
NumPy array of timestamps as UTCDateTime. Can be a single spike or many spikes. NumPy array of timestamps as UTCDateTime. Can be a single spike or many spikes.
...@@ -73,7 +73,7 @@ class ArtificialDisturbance(Flag): ...@@ -73,7 +73,7 @@ class ArtificialDisturbance(Flag):
artificial_disturbance_type: ArtificialDisturbanceType artificial_disturbance_type: ArtificialDisturbanceType
source: str = None source: str = None
amplitude: float deviation: float
spikes: np.ndarray spikes: np.ndarray
...@@ -150,7 +150,7 @@ offset_data = { ...@@ -150,7 +150,7 @@ offset_data = {
"corrected": 47999, "corrected": 47999,
"disturbance_type": ArtificialDisturbanceType.OFFSET, "disturbance_type": ArtificialDisturbanceType.OFFSET,
"source": "Bin change", "source": "Bin change",
"amplitude": 10.0, "deviation": 10.0,
} }
geomagnetic_storm_data = { geomagnetic_storm_data = {
"description": "Geomagnetic storm", "description": "Geomagnetic storm",
...@@ -158,7 +158,7 @@ geomagnetic_storm_data = { ...@@ -158,7 +158,7 @@ geomagnetic_storm_data = {
"corrected": 36999, "corrected": 36999,
"event_type": EventType.GEOMAGNETIC_STORM, "event_type": EventType.GEOMAGNETIC_STORM,
"scale": "G3", "scale": "G3",
"Kp": 7, "index": 7,
"url": "https://www.swpc.noaa.gov/products/planetary-k-index", "url": "https://www.swpc.noaa.gov/products/planetary-k-index",
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment