Data standard
el_paso.data_standard.DataStandard
Abstract base class for data standardization.
Source code in el_paso/data_standard.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | |
Methods:
el_paso.data_standard.DataStandard.standardize_variable
standardize_variable
Standardizes a variable according to the data standard's rules.
This abstract method takes avariable and a standard name,
and returns a new el_paso.Variable that conforms to the specified standard.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
internal_name
|
str
|
The name of the standard to apply to the variable. |
required |
variable
|
Variable
|
The variable to be standardized. |
required |
reset_consistency_check
|
bool
|
If set to true, the consistency check will be reseted. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Variable |
Variable
|
The standardized variable. |
Source code in el_paso/data_standard.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | |
el_paso.data_standard.ConsistencyCheck
dataclass
A utility class for checking the consistency of data dimensions.
This class helps verify that multiple variables saved to a file have the same length for shared dimensions (e.g., time, pitch angle, energy).
Attributes:
| Name | Type | Description |
|---|---|---|
len_time |
_SizeAttr | None
|
Stores the size of the time dimension from the first variable checked. |
len_pitch_angle |
_SizeAttr | None
|
Stores the size of the pitch angle dimension from the first variable checked. |
len_energy |
_SizeAttr | None
|
Stores the size of the energy dimension from the first variable checked. |
Source code in el_paso/data_standard.py
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | |