RSPX Calibration

RSPX calibration files are XML files with metadata and calibration data.

The units of RSPX calibration files are interpreted to be:

  • Frequency in Hz

  • Magnitude in mV/nT

  • Phase in degrees

Resistics will automatically convert these units to:

  • Frequency in Hz

  • Magnitude in mV/nT (including any static gain)

  • Phase in radians

Note

Remember that extension happens in the original units of the calibration data. For RSP data files, this is in mV/nT.

Naming in the project environment

When using the project environment, resistics automatically searches for calibration files in the calData folder. RSPX files should be named according to the following specification:

Important

[*]TYPE-[SENSORNUM]_[BOARD]-ID-[SERIAL].RSPX

or

[*]TYPE-[SENSORNUM]_BB-ID-[SERIAL].RSPX

where:

  • SENSORNUM is the sensor number out of the sensor type written with three digits (i.e. leading zeros required if the sensor number is less than three digits)

  • BOARD is either LF (chopper on) or HF (chopper off)

  • SERIAL is the serial number written with six digits (i.e. leading zeros required if the serial number is less than six digits)

  • [*] represents any general string.

The BB files represent broadband calibration files that cover both chopper on and chopper off cases.

As an example, consider an induction coil with,

  • sensor type MFS06

  • sensor serial number 133

  • Chopper off

then,

  • SENSORNUM = 006

  • BOARD = HF

  • SERIAL = 000133

Therefore, the file could be named:

  • Metronix_Coil—–TYPE-006_HF-ID-000133.RSPX

  • Metronix_Coil—–TYPE-006_BB-ID-000133.RSPX

Example

The class CalibrationIO can be used to read in RSPX calibration files.

1
2
3
4
5
6
7
8
from datapaths import calPath, calImages
from resistics.calibrate.io import CalibrationIO

# read RSPX calibration data
filepath = calPath / "Metronix_Coil-----TYPE-006_HF-ID-000133.RSPX"
calIO = CalibrationIO(filepath, "rspx", extend=False)
calData = calIO.read()
calData.printInfo()

When using CalibrationIO to read a calibration file, the filepath and calibration data format (rspx) need to be defined. Further, the extension rule can be optionally passed. Because RSPX files only contain one set of calibration data (unlike Metronix files which may have calibration data for both chopper on and off), the chopper keyword is unused for reading RSPX files.

The method read() returns a CalibrationData object. Information about this can be printed to the terminal, giving:

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 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
117
118
119
120
121
122
123
124
125
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
14:38:30 CalibrationData: ####################
14:38:30 CalibrationData: CALIBRATIONDATA INFO BEGIN
14:38:30 CalibrationData: ####################
14:38:30 CalibrationData: Filename = calData\Metronix_Coil-----TYPE-006_HF-ID-000133.RSPX
14:38:30 CalibrationData: Serial = 133
14:38:30 CalibrationData: Sensor = 006_HF
14:38:30 CalibrationData: Static gain = 800.00
14:38:30 CalibrationData: Chopper = False
14:38:30 CalibrationData: Number of frequency points = 287
14:38:30 CalibrationData: Calibration data:
14:38:30 CalibrationData:          Frequency [Hz]       Mag. [mv/nT]    Phase [rad]
14:38:30 CalibrationData:              1.00000000           180.04            2.01
14:38:30 CalibrationData:              1.03925600           189.75            1.98
14:38:30 CalibrationData:              1.08005200           199.79            1.95
14:38:30 CalibrationData:              1.12245100           210.08            1.92
14:38:30 CalibrationData:              1.16651300           220.73            1.89
14:38:30 CalibrationData:              1.21230500           231.60            1.85
14:38:30 CalibrationData:              1.25989500           242.88            1.82
14:38:30 CalibrationData:              1.30935300           254.40            1.79
14:38:30 CalibrationData:              1.36075300           266.12            1.76
14:38:30 CalibrationData:              1.41417000           278.21            1.73
14:38:30 CalibrationData:              1.46968400           290.44            1.70
14:38:30 CalibrationData:              1.52737800           302.98            1.66
14:38:30 CalibrationData:              1.58733600           315.77            1.63
14:38:30 CalibrationData:              1.64964800           328.70            1.60
14:38:30 CalibrationData:              1.71440600           341.97            1.57
14:38:30 CalibrationData:              1.78170600           355.26            1.54
14:38:30 CalibrationData:              1.85164800           368.62            1.50
14:38:30 CalibrationData:              1.92433600           382.12            1.47
14:38:30 CalibrationData:              1.99987700           395.63            1.44
14:38:30 CalibrationData:              2.07838400           409.18            1.41
14:38:30 CalibrationData:              2.15997200           422.87            1.38
14:38:30 CalibrationData:              2.24476300           436.42            1.34
14:38:30 CalibrationData:              2.33288300           449.94            1.31
14:38:30 CalibrationData:              2.42446200           463.60            1.28
14:38:30 CalibrationData:              2.51963600           477.16            1.25
14:38:30 CalibrationData:              2.61854600           490.47            1.22
14:38:30 CalibrationData:              2.72133900           503.72            1.19
14:38:30 CalibrationData:              2.82816700           516.81            1.16
14:38:30 CalibrationData:              2.93918800           529.72            1.13
14:38:30 CalibrationData:              3.05456800           542.34            1.09
14:38:30 CalibrationData:              3.17447700           555.05            1.07
14:38:30 CalibrationData:              3.29909400           567.29            1.04
14:38:30 CalibrationData:              3.42860200           578.98            1.01
14:38:30 CalibrationData:              3.56319400           590.99            0.98
14:38:30 CalibrationData:              3.70307000           601.89            0.95
14:38:30 CalibrationData:              3.84843600           612.84            0.92
14:38:30 CalibrationData:              3.99950900           623.49            0.89
14:38:30 CalibrationData:              4.15651300           633.56            0.87
14:38:30 CalibrationData:              4.31967900           643.63            0.84
14:38:30 CalibrationData:              4.48925100           653.12            0.81
14:38:30 CalibrationData:              4.66548000           662.23            0.79
14:38:30 CalibrationData:              4.84862700           670.92            0.76
14:38:30 CalibrationData:              5.03896300           679.45            0.74
14:38:30 CalibrationData:              5.23677100           687.12            0.72
14:38:30 CalibrationData:              5.44234400           694.84            0.69
14:38:30 CalibrationData:              5.65598600           702.28            0.67
14:38:30 CalibrationData:              5.87801600           709.24            0.65
14:38:30 CalibrationData:              6.10876200           715.97            0.63
14:38:30 CalibrationData:              6.34856500           722.24            0.60
14:38:30 CalibrationData:              6.59778300           728.20            0.58
14:38:30 CalibrationData:              6.85678300           733.65            0.56
14:38:30 CalibrationData:              7.12595100           738.86            0.54
14:38:30 CalibrationData:              7.40568400           743.78            0.52
14:38:30 CalibrationData:              7.69640000           748.51            0.51
14:38:30 CalibrationData:              7.99852800           752.66            0.49
14:38:30 CalibrationData:              8.31251500           757.15            0.47
14:38:30 CalibrationData:              8.63882800           760.99            0.46
14:38:30 CalibrationData:              8.97795200           764.62            0.44
14:38:30 CalibrationData:              9.33038700           768.39            0.42
14:38:30 CalibrationData:              9.69665800           771.35            0.41
14:38:30 CalibrationData:             10.07731000           774.30            0.39
14:38:30 CalibrationData:             10.47290000           776.83            0.38
14:38:30 CalibrationData:             10.88402000           779.68            0.37
14:38:30 CalibrationData:             11.31128000           781.88            0.35
14:38:30 CalibrationData:             11.75531000           784.47            0.34
14:38:30 CalibrationData:             12.21677000           786.62            0.33
14:38:30 CalibrationData:             12.69635000           788.13            0.31
14:38:30 CalibrationData:             13.19476000           789.72            0.30
14:38:30 CalibrationData:             13.71272000           792.29            0.29
14:38:30 CalibrationData:             14.25103000           793.80            0.28
14:38:30 CalibrationData:             14.81046000           793.80            0.27
14:38:30 CalibrationData:             15.39186000           796.29            0.26
14:38:30 CalibrationData:             17.95480000           800.93            0.22
14:38:30 CalibrationData:             18.65963000           801.73            0.21
14:38:30 CalibrationData:             19.39213000           802.05            0.21
14:38:30 CalibrationData:             20.15338000           803.51            0.20
14:38:30 CalibrationData:             20.94451000           804.61            0.19
14:38:30 CalibrationData:             21.76670000           804.62            0.18
14:38:30 CalibrationData:             22.62117000           806.28            0.18
14:38:30 CalibrationData:             23.50918000           806.36            0.17
14:38:31 CalibrationData:             24.43205000           807.13            0.16
14:38:31 CalibrationData:             25.39114000           808.07            0.16
14:38:31 CalibrationData:             26.38789000           807.60            0.15
14:38:31 CalibrationData:             27.42377000           808.95            0.14
14:38:31 CalibrationData:             28.50031000           807.80            0.14
14:38:31 CalibrationData:             29.61910000           809.44            0.13
14:38:31 CalibrationData:             30.78182000           809.52            0.13
14:38:31 CalibrationData:             31.99018000           809.42            0.12
14:38:31 CalibrationData:             33.24598000           810.13            0.12
14:38:31 CalibrationData:             34.55107000           811.74            0.11
14:38:31 CalibrationData:             35.90740000           810.69            0.11
14:38:31 CalibrationData:             37.31697000           809.40            0.11
14:38:31 CalibrationData:             38.78187000           810.78            0.10
14:38:31 CalibrationData:             40.30428000           811.33            0.10
14:38:31 CalibrationData:             41.88645000           811.65            0.09
14:38:31 CalibrationData:             43.53074000           816.34            0.09
14:38:31 CalibrationData:             45.23956000           810.93            0.08
14:38:31 CalibrationData:             56.99711000           808.61            0.06
14:38:31 CalibrationData:             59.23457000           819.76            0.06
14:38:31 CalibrationData:             61.55986000           815.52            0.06
14:38:31 CalibrationData:             63.97644000           811.75            0.06
14:38:31 CalibrationData:             66.48788000           810.00            0.05
14:38:31 CalibrationData:             69.09791000           812.64            0.05
14:38:31 CalibrationData:             71.81039000           813.61            0.05
14:38:31 CalibrationData:             74.62936000           812.47            0.05
14:38:31 CalibrationData:             77.55898000           811.26            0.04
14:38:31 CalibrationData:             80.60361000           813.99            0.04
14:38:31 CalibrationData:             83.76776000           813.41            0.04
14:38:31 CalibrationData:             87.05612000           813.64            0.03
14:38:31 CalibrationData:             90.47357000           812.17            0.03
14:38:31 CalibrationData:             94.02518000           813.58            0.03
14:38:31 CalibrationData:             97.71619000           811.50            0.03
14:38:31 CalibrationData:            101.55210000           810.37            0.03
14:38:31 CalibrationData:            105.53860000           816.78            0.02
14:38:31 CalibrationData:            109.68160000           813.77            0.02
14:38:31 CalibrationData:            113.98720000           813.25            0.02
14:38:31 CalibrationData:            118.46190000           813.28            0.02
14:38:31 CalibrationData:            123.11220000           813.83            0.02
14:38:31 CalibrationData:            127.94500000           813.10            0.01
14:38:31 CalibrationData:            132.96760000           814.46            0.01
14:38:31 CalibrationData:            138.18730000           813.58            0.01
14:38:31 CalibrationData:            143.61200000           814.59            0.00
14:38:31 CalibrationData:            161.19730000           813.27            0.00
14:38:31 CalibrationData:            167.52530000           813.43            0.00
14:38:31 CalibrationData:            174.10160000           812.82           -0.00
14:38:31 CalibrationData:            180.93600000           814.47           -0.00
14:38:31 CalibrationData:            188.03880000           812.00           -0.01
14:38:31 CalibrationData:            195.42040000           813.32           -0.01
14:38:31 CalibrationData:            203.09180000           810.59           -0.01
14:38:31 CalibrationData:            211.06430000           813.78           -0.01
14:38:31 CalibrationData:            219.34970000           810.92           -0.01
14:38:31 CalibrationData:            227.96050000           812.76           -0.01
14:38:31 CalibrationData:            236.90920000           808.74           -0.02
14:38:31 CalibrationData:            265.91890000           811.02           -0.02
14:38:31 CalibrationData:            276.35770000           814.13           -0.02
14:38:31 CalibrationData:            287.20630000           813.75           -0.02
14:38:31 CalibrationData:            298.48080000           813.32           -0.02
14:38:31 CalibrationData:            310.19780000           813.94           -0.03
14:38:31 CalibrationData:            322.37490000           815.89           -0.03
14:38:31 CalibrationData:            335.02990000           813.76           -0.04
14:38:31 CalibrationData:            361.84990000           816.53           -0.04
14:38:31 CalibrationData:            376.05450000           813.33           -0.04
14:38:31 CalibrationData:            390.81680000           810.83           -0.04
14:38:31 CalibrationData:            406.15860000           812.75           -0.05
14:38:31 CalibrationData:            422.10260000           814.14           -0.05
14:38:31 CalibrationData:            438.67250000           814.54           -0.05
14:38:31 CalibrationData:            455.89290000           814.47           -0.06
14:38:31 CalibrationData:            473.78930000           811.30           -0.06
14:38:31 CalibrationData:            492.38830000           811.58           -0.06
14:38:31 CalibrationData:            511.71730000           811.68           -0.07
14:38:31 CalibrationData:            531.80510000           809.90           -0.07
14:38:31 CalibrationData:            552.68150000           814.30           -0.07
14:38:31 CalibrationData:            574.37740000           809.49           -0.07
14:38:31 CalibrationData:            596.92490000           809.93           -0.08
14:38:31 CalibrationData:            620.35770000           810.50           -0.08
14:38:31 CalibrationData:            644.71020000           811.07           -0.08
14:38:31 CalibrationData:            670.01870000           811.09           -0.09
14:38:31 CalibrationData:            696.32080000           810.10           -0.09
14:38:31 CalibrationData:            723.65530000           809.53           -0.10
14:38:31 CalibrationData:            752.06290000           810.51           -0.10
14:38:31 CalibrationData:            781.58570000           809.64           -0.10
14:38:31 CalibrationData:            812.26730000           810.52           -0.11
14:38:31 CalibrationData:            844.15340000           808.46           -0.11
14:38:31 CalibrationData:            877.29130000           807.66           -0.12
14:38:31 CalibrationData:            911.72990000           807.71           -0.12
14:38:31 CalibrationData:            947.52050000           808.28           -0.13
14:38:31 CalibrationData:            984.71610000           806.50           -0.13
14:38:31 CalibrationData:           1023.37200000           806.27           -0.14
14:38:31 CalibrationData:           1063.54500000           805.99           -0.14
14:38:31 CalibrationData:           1105.29500000           805.64           -0.15
14:38:31 CalibrationData:           1148.68400000           805.61           -0.16
14:38:31 CalibrationData:           1193.77700000           804.77           -0.16
14:38:31 CalibrationData:           1240.63900000           804.45           -0.17
14:38:31 CalibrationData:           1289.34100000           803.21           -0.18
14:38:31 CalibrationData:           1339.95500000           803.32           -0.18
14:38:31 CalibrationData:           1392.55600000           801.71           -0.19
14:38:31 CalibrationData:           1447.22200000           799.92           -0.20
14:38:31 CalibrationData:           1504.03400000           799.31           -0.21
14:38:31 CalibrationData:           1563.07500000           799.02           -0.21
14:38:31 CalibrationData:           1624.43500000           797.93           -0.22
14:38:31 CalibrationData:           1688.20300000           796.99           -0.23
14:38:31 CalibrationData:           1754.47500000           795.63           -0.24
14:38:31 CalibrationData:           1823.34800000           793.96           -0.25
14:38:31 CalibrationData:           1894.92500000           792.35           -0.26
14:38:31 CalibrationData:           1969.31100000           790.40           -0.27
14:38:31 CalibrationData:           2046.61800000           789.44           -0.28
14:38:31 CalibrationData:           2126.95900000           786.46           -0.29
14:38:31 CalibrationData:           2210.45500000           784.41           -0.31
14:38:31 CalibrationData:           2297.22800000           781.98           -0.32
14:38:31 CalibrationData:           2387.40700000           779.89           -0.33
14:38:31 CalibrationData:           2481.12600000           777.20           -0.35
14:38:31 CalibrationData:           2578.52400000           774.10           -0.36
14:38:31 CalibrationData:           2679.74600000           770.73           -0.38
14:38:31 CalibrationData:           2784.94100000           766.99           -0.39
14:38:31 CalibrationData:           2894.26600000           762.87           -0.41
14:38:31 CalibrationData:           3007.88300000           758.50           -0.42
14:38:31 CalibrationData:           3125.95900000           753.39           -0.44
14:38:31 CalibrationData:           3248.67100000           747.83           -0.46
14:38:31 CalibrationData:           3376.19900000           740.52           -0.48
14:38:31 CalibrationData:           3508.73400000           732.83           -0.50
14:38:31 CalibrationData:           3646.47200000           722.77           -0.53
14:38:31 CalibrationData:           3789.61700000           712.43           -0.55
14:38:31 CalibrationData:           3938.38100000           699.04           -0.57
14:38:31 CalibrationData:           4092.98500000           683.14           -0.60
14:38:31 CalibrationData:           4253.65800000           663.89           -0.62
14:38:31 CalibrationData:           4420.63800000           641.28           -0.64
14:38:31 CalibrationData:           4594.17300000           616.12           -0.65
14:38:31 CalibrationData:           4774.52100000           590.20           -0.65
14:38:31 CalibrationData:           4961.94800000           567.73           -0.63
14:38:31 CalibrationData:           5156.73200000           553.70           -0.60
14:38:31 CalibrationData:           5359.16300000           550.27           -0.57
14:38:31 CalibrationData:           5569.54100000           555.82           -0.55
14:38:31 CalibrationData:           5788.17700000           565.80           -0.54
14:38:31 CalibrationData:           6015.39600000           576.48           -0.55
14:38:31 CalibrationData:           6251.53400000           585.33           -0.56
14:38:31 CalibrationData:           6496.94200000           591.38           -0.58
14:38:31 CalibrationData:           6751.98400000           595.02           -0.61
14:38:31 CalibrationData:           7017.03800000           595.82           -0.63
14:38:31 CalibrationData:           7292.49700000           594.73           -0.66
14:38:31 CalibrationData:           7578.76900000           592.12           -0.69
14:38:31 CalibrationData:           7876.27900000           587.89           -0.72
14:38:31 CalibrationData:           8185.46700000           582.37           -0.74
14:38:31 CalibrationData:           8506.79300000           575.81           -0.77
14:38:31 CalibrationData:           8840.73300000           568.38           -0.80
14:38:31 CalibrationData:           9187.78200000           560.02           -0.83
14:38:31 CalibrationData:           9548.45500000           551.21           -0.86
14:38:31 CalibrationData:           9923.28600000           541.35           -0.89
14:38:31 CalibrationData:          10312.83000000           531.16           -0.92
14:38:31 CalibrationData:          10717.67000000           518.39           -0.95
14:38:31 CalibrationData:          11138.40000000           507.01           -0.98
14:38:31 CalibrationData:          11575.64000000           495.04           -1.01
14:38:31 CalibrationData:          12030.05000000           482.77           -1.04
14:38:31 CalibrationData:          12502.30000000           469.87           -1.07
14:38:31 CalibrationData:          12993.09000000           456.61           -1.10
14:38:31 CalibrationData:          13503.14000000           443.19           -1.13
14:38:31 CalibrationData:          14033.22000000           428.93           -1.16
14:38:31 CalibrationData:          14584.10000000           414.72           -1.19
14:38:31 CalibrationData:          15156.61000000           399.76           -1.22
14:38:31 CalibrationData:          15751.59000000           384.90           -1.24
14:38:31 CalibrationData:          16369.93000000           369.67           -1.26
14:38:31 CalibrationData:          17012.54000000           354.88           -1.28
14:38:31 CalibrationData:          17680.38000000           340.81           -1.30
14:38:31 CalibrationData:          18374.44000000           327.28           -1.32
14:38:31 CalibrationData:          19095.74000000           313.44           -1.33
14:38:31 CalibrationData:          19845.36000000           302.47           -1.34
14:38:31 CalibrationData:          20624.40000000           292.55           -1.35
14:38:31 CalibrationData:          21434.02000000           283.81           -1.36
14:38:31 CalibrationData:          22275.43000000           276.01           -1.37
14:38:31 CalibrationData:          23149.87000000           268.66           -1.38
14:38:31 CalibrationData:          24058.63000000           261.64           -1.40
14:38:31 CalibrationData:          25003.07000000           255.03           -1.41
14:38:31 CalibrationData:          25984.58000000           248.19           -1.44
14:38:31 CalibrationData:          27004.62000000           241.16           -1.46
14:38:31 CalibrationData:          28064.71000000           234.02           -1.48
14:38:31 CalibrationData:          29166.41000000           226.22           -1.51
14:38:31 CalibrationData:          30311.36000000           218.68           -1.53
14:38:31 CalibrationData:          31501.25000000           210.86           -1.56
14:38:31 CalibrationData:          32737.85000000           203.03           -1.58
14:38:31 CalibrationData:          34023.00000000           194.98           -1.61
14:38:31 CalibrationData:          35358.59000000           186.96           -1.63
14:38:31 CalibrationData:          36746.62000000           179.03           -1.65
14:38:31 CalibrationData:          38189.13000000           171.34           -1.67
14:38:31 CalibrationData:          39688.27000000           164.06           -1.69
14:38:31 CalibrationData:          41246.27000000           157.06           -1.70
14:38:31 CalibrationData:          42865.41000000           150.72           -1.72
14:38:31 CalibrationData:          44548.13000000           144.90           -1.73
14:38:31 CalibrationData:          46296.89000000           139.71           -1.74
14:38:31 CalibrationData:          48114.31000000           134.94           -1.75
14:38:31 CalibrationData:          50003.07000000           130.44           -1.77
14:38:31 CalibrationData:          51965.97000000           126.12           -1.79
14:38:31 CalibrationData:          54005.93000000           121.81           -1.81
14:38:31 CalibrationData:          56125.97000000           117.67           -1.83
14:38:31 CalibrationData:          58329.23000000           113.43           -1.85
14:38:31 CalibrationData:          60618.99000000           109.16           -1.87
14:38:31 CalibrationData:          62998.63000000           105.08           -1.89
14:38:31 CalibrationData:          65471.68000000           101.20           -1.91
14:38:31 CalibrationData:          68041.82000000            97.65           -1.93
14:38:31 CalibrationData:          70712.85000000            94.32           -1.94
14:38:31 CalibrationData:          73488.73000000            91.37           -1.96
14:38:31 CalibrationData:          76373.58000000            88.69           -1.98
14:38:31 CalibrationData:          79371.68000000            85.97           -2.01
14:38:31 CalibrationData:          82487.47000000            83.34           -2.03
14:38:31 CalibrationData:          85725.57000000            80.63           -2.06
14:38:31 CalibrationData:          89090.78000000            78.04           -2.08
14:38:31 CalibrationData:          92588.10000000            75.57           -2.11
14:38:31 CalibrationData:          96222.71000000            73.21           -2.13
14:38:31 CalibrationData:         100000.00000000            71.02           -2.16
14:38:31 CalibrationData: ####################
14:38:31 CalibrationData: CALIBRATIONDATA INFO END
14:38:31 CalibrationData: ####################

Once the calibration data file is read in, the calibration curve can be viewed by using the view() method of CalibrationData. By passing a matplotlib figure to this, the layout of the plot can be controlled.

10
11
12
13
14
15
16
17
# plot
import matplotlib.pyplot as plt

fig = plt.figure(figsize=(8, 8))
calData.view(fig=fig, label="RSPX calibration", legend=True)
fig.tight_layout(rect=[0, 0.02, 1, 0.96])
plt.show()
fig.savefig(calImages / "calibrationRSPX.png")
alternate text

Viewing the unextended calibration data

The calibration static gain is applied to the magnitude data by default. To view the data without static gain, pass staticgain=False to the view() call. Further, to plot the phase in degrees, pass degrees=True to view().

To visualise the influence of the static gain correction, the calibration data can be plotted with and without static gain as shown in the following example.

19
20
21
22
23
24
25
26
27
# plot
fig = plt.figure(figsize=(8, 8))
calData.view(fig=fig, label="RSPX calibration", degrees=True, legend=True)
calData.view(
    fig=fig, staticgain=False, degrees=True, label="RSPX calibration", legend=True
)
fig.tight_layout(rect=[0, 0.02, 1, 0.96])
plt.show()
fig.savefig(calImages / "calibrationRSPX_staticGainAndDegrees.png")
alternate text

Viewing the unextended calibration data with and without static gain

The same calibration file can be read again, but this time with extension of the data too. The parameters of CalibrationIO can be reset by using the refresh() method.

29
30
31
32
# this time read in with extend
calIO.refresh(filepath, "rspx", extend=True)
calDataExtended = calIO.read()
calDataExtended.printInfo()

To see the effect of the extension, which is a simple edge extrapolation, the original and extended data can be viewed on the same plot.

34
35
36
37
38
39
40
# plot these two together
fig = plt.figure(figsize=(8, 8))
calDataExtended.view(fig=fig, degrees=True, label="RSPX calibration", legend=True)
calData.view(fig=fig, label="RSPX calibration", degrees=True, legend=True)
fig.tight_layout(rect=[0, 0.02, 1, 0.96])
plt.show()
fig.savefig(calImages / "calibrationRSPX_extended.png")
alternate text

Viewing the unextended and extended calibration data

The calibration data can be written out in the internal ASCII format using the writeInternalFormat() method of CalibrationIO.

42
43
44
# write as the ASCII format
rspx2ascii = calPath / "rspx2ascii.TXT"
calIO.writeInternalFormat(calData, rspx2ascii)

The internal ascii calibration format writes out values in the following units:

  • Magnitude in mV/nT

  • Phase in radians

This gives the file below:

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 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
117
118
119
120
121
122
123
124
125
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
Serial = 133
Sensor = 006_HF
Static gain = 800.0
Magnitude unit = mV/nT
Phase unit = radians
Chopper = False

CALIBRATION DATA
+1.0000e+00  +2.2505e-01  +2.0081e+00
+1.0393e+00  +2.3719e-01  +1.9779e+00
+1.0801e+00  +2.4974e-01  +1.9475e+00
+1.1225e+00  +2.6260e-01  +1.9169e+00
+1.1665e+00  +2.7591e-01  +1.8858e+00
+1.2123e+00  +2.8950e-01  +1.8548e+00
+1.2599e+00  +3.0361e-01  +1.8233e+00
+1.3094e+00  +3.1800e-01  +1.7915e+00
+1.3608e+00  +3.3265e-01  +1.7601e+00
+1.4142e+00  +3.4776e-01  +1.7284e+00
+1.4697e+00  +3.6305e-01  +1.6965e+00
+1.5274e+00  +3.7873e-01  +1.6645e+00
+1.5873e+00  +3.9471e-01  +1.6323e+00
+1.6496e+00  +4.1087e-01  +1.6002e+00
+1.7144e+00  +4.2746e-01  +1.5680e+00
+1.7817e+00  +4.4408e-01  +1.5359e+00
+1.8516e+00  +4.6078e-01  +1.5037e+00
+1.9243e+00  +4.7765e-01  +1.4715e+00
+1.9999e+00  +4.9454e-01  +1.4396e+00
+2.0784e+00  +5.1147e-01  +1.4075e+00
+2.1600e+00  +5.2859e-01  +1.3754e+00
+2.2448e+00  +5.4552e-01  +1.3439e+00
+2.3329e+00  +5.6243e-01  +1.3119e+00
+2.4245e+00  +5.7950e-01  +1.2804e+00
+2.5196e+00  +5.9645e-01  +1.2489e+00
+2.6185e+00  +6.1309e-01  +1.2178e+00
+2.7213e+00  +6.2966e-01  +1.1869e+00
+2.8282e+00  +6.4601e-01  +1.1563e+00
+2.9392e+00  +6.6215e-01  +1.1256e+00
+3.0546e+00  +6.7793e-01  +1.0947e+00
+3.1745e+00  +6.9381e-01  +1.0661e+00
+3.2991e+00  +7.0911e-01  +1.0360e+00
+3.4286e+00  +7.2373e-01  +1.0069e+00
+3.5632e+00  +7.3874e-01  +9.7865e-01
+3.7031e+00  +7.5236e-01  +9.5023e-01
+3.8484e+00  +7.6606e-01  +9.2195e-01
+3.9995e+00  +7.7937e-01  +8.9469e-01
+4.1565e+00  +7.9195e-01  +8.6749e-01
+4.3197e+00  +8.0454e-01  +8.4097e-01
+4.4893e+00  +8.1640e-01  +8.1476e-01
+4.6655e+00  +8.2778e-01  +7.8938e-01
+4.8486e+00  +8.3865e-01  +7.6427e-01
+5.0390e+00  +8.4931e-01  +7.3975e-01
+5.2368e+00  +8.5891e-01  +7.1577e-01
+5.4423e+00  +8.6855e-01  +6.9238e-01
+5.6560e+00  +8.7786e-01  +6.6954e-01
+5.8780e+00  +8.8655e-01  +6.4734e-01
+6.1088e+00  +8.9496e-01  +6.2590e-01
+6.3486e+00  +9.0280e-01  +6.0447e-01
+6.5978e+00  +9.1025e-01  +5.8395e-01
+6.8568e+00  +9.1706e-01  +5.6375e-01
+7.1260e+00  +9.2358e-01  +5.4404e-01
+7.4057e+00  +9.2973e-01  +5.2491e-01
+7.6964e+00  +9.3564e-01  +5.0704e-01
+7.9985e+00  +9.4083e-01  +4.8901e-01
+8.3125e+00  +9.4644e-01  +4.7189e-01
+8.6388e+00  +9.5123e-01  +4.5506e-01
+8.9780e+00  +9.5578e-01  +4.3862e-01
+9.3304e+00  +9.6049e-01  +4.2305e-01
+9.6967e+00  +9.6419e-01  +4.0770e-01
+1.0077e+01  +9.6787e-01  +3.9259e-01
+1.0473e+01  +9.7104e-01  +3.7865e-01
+1.0884e+01  +9.7461e-01  +3.6506e-01
+1.1311e+01  +9.7735e-01  +3.5215e-01
+1.1755e+01  +9.8059e-01  +3.3908e-01
+1.2217e+01  +9.8328e-01  +3.2599e-01
+1.2696e+01  +9.8516e-01  +3.1316e-01
+1.3195e+01  +9.8715e-01  +3.0267e-01
+1.3713e+01  +9.9036e-01  +2.9104e-01
+1.4251e+01  +9.9225e-01  +2.7932e-01
+1.4810e+01  +9.9226e-01  +2.6990e-01
+1.5392e+01  +9.9536e-01  +2.5997e-01
+1.7955e+01  +1.0012e+00  +2.2485e-01
+1.8660e+01  +1.0022e+00  +2.1330e-01
+1.9392e+01  +1.0026e+00  +2.0690e-01
+2.0153e+01  +1.0044e+00  +1.9758e-01
+2.0945e+01  +1.0058e+00  +1.9041e-01
+2.1767e+01  +1.0058e+00  +1.8190e-01
+2.2621e+01  +1.0078e+00  +1.7568e-01
+2.3509e+01  +1.0080e+00  +1.6796e-01
+2.4432e+01  +1.0089e+00  +1.6336e-01
+2.5391e+01  +1.0101e+00  +1.5585e-01
+2.6388e+01  +1.0095e+00  +1.5001e-01
+2.7424e+01  +1.0112e+00  +1.4479e-01
+2.8500e+01  +1.0097e+00  +1.3871e-01
+2.9619e+01  +1.0118e+00  +1.3257e-01
+3.0782e+01  +1.0119e+00  +1.2815e-01
+3.1990e+01  +1.0118e+00  +1.2411e-01
+3.3246e+01  +1.0127e+00  +1.1742e-01
+3.4551e+01  +1.0147e+00  +1.1341e-01
+3.5907e+01  +1.0134e+00  +1.0811e-01
+3.7317e+01  +1.0118e+00  +1.0572e-01
+3.8782e+01  +1.0135e+00  +1.0051e-01
+4.0304e+01  +1.0142e+00  +9.8930e-02
+4.1886e+01  +1.0146e+00  +9.1714e-02
+4.3531e+01  +1.0204e+00  +9.1730e-02
+4.5240e+01  +1.0137e+00  +8.3453e-02
+5.6997e+01  +1.0108e+00  +5.9246e-02
+5.9235e+01  +1.0247e+00  +6.2387e-02
+6.1560e+01  +1.0194e+00  +5.8908e-02
+6.3976e+01  +1.0147e+00  +5.6983e-02
+6.6488e+01  +1.0125e+00  +4.8096e-02
+6.9098e+01  +1.0158e+00  +4.6679e-02
+7.1810e+01  +1.0170e+00  +4.6563e-02
+7.4629e+01  +1.0156e+00  +4.6508e-02
+7.7559e+01  +1.0141e+00  +4.3787e-02
+8.0604e+01  +1.0175e+00  +4.1045e-02
+8.3768e+01  +1.0168e+00  +3.7048e-02
+8.7056e+01  +1.0171e+00  +3.3256e-02
+9.0474e+01  +1.0152e+00  +3.0612e-02
+9.4025e+01  +1.0170e+00  +2.7635e-02
+9.7716e+01  +1.0144e+00  +3.1474e-02
+1.0155e+02  +1.0130e+00  +2.7714e-02
+1.0554e+02  +1.0210e+00  +2.2854e-02
+1.0968e+02  +1.0172e+00  +1.9701e-02
+1.1399e+02  +1.0166e+00  +2.1173e-02
+1.1846e+02  +1.0166e+00  +1.6366e-02
+1.2311e+02  +1.0173e+00  +1.5739e-02
+1.2794e+02  +1.0164e+00  +1.4325e-02
+1.3297e+02  +1.0181e+00  +1.2859e-02
+1.3819e+02  +1.0170e+00  +1.1479e-02
+1.4361e+02  +1.0182e+00  +3.3479e-03
+1.6120e+02  +1.0166e+00  +3.7740e-03
+1.6753e+02  +1.0168e+00  +7.5067e-04
+1.7410e+02  +1.0160e+00  -2.9741e-04
+1.8094e+02  +1.0181e+00  -2.8266e-03
+1.8804e+02  +1.0150e+00  -6.5775e-03
+1.9542e+02  +1.0167e+00  -5.9912e-03
+2.0309e+02  +1.0132e+00  -6.8191e-03
+2.1106e+02  +1.0172e+00  -1.1739e-02
+2.1935e+02  +1.0136e+00  -1.2612e-02
+2.2796e+02  +1.0159e+00  -1.4412e-02
+2.3691e+02  +1.0109e+00  -1.5717e-02
+2.6592e+02  +1.0138e+00  -1.7834e-02
+2.7636e+02  +1.0177e+00  -2.3006e-02
+2.8721e+02  +1.0172e+00  -2.3296e-02
+2.9848e+02  +1.0167e+00  -2.4514e-02
+3.1020e+02  +1.0174e+00  -3.0079e-02
+3.2237e+02  +1.0199e+00  -3.1503e-02
+3.3503e+02  +1.0172e+00  -3.8060e-02
+3.6185e+02  +1.0207e+00  -4.1665e-02
+3.7605e+02  +1.0167e+00  -4.0165e-02
+3.9082e+02  +1.0135e+00  -4.4750e-02
+4.0616e+02  +1.0159e+00  -4.5778e-02
+4.2210e+02  +1.0177e+00  -4.8246e-02
+4.3867e+02  +1.0182e+00  -5.3312e-02
+4.5589e+02  +1.0181e+00  -5.5872e-02
+4.7379e+02  +1.0141e+00  -5.6669e-02
+4.9239e+02  +1.0145e+00  -6.0166e-02
+5.1172e+02  +1.0146e+00  -6.5187e-02
+5.3181e+02  +1.0124e+00  -6.9146e-02
+5.5268e+02  +1.0179e+00  -7.1464e-02
+5.7438e+02  +1.0119e+00  -7.0525e-02
+5.9692e+02  +1.0124e+00  -7.5860e-02
+6.2036e+02  +1.0131e+00  -7.9058e-02
+6.4471e+02  +1.0138e+00  -7.9668e-02
+6.7002e+02  +1.0139e+00  -8.7178e-02
+6.9632e+02  +1.0126e+00  -9.1921e-02
+7.2366e+02  +1.0119e+00  -9.6173e-02
+7.5206e+02  +1.0131e+00  -9.8823e-02
+7.8159e+02  +1.0120e+00  -1.0254e-01
+8.1227e+02  +1.0131e+00  -1.0762e-01
+8.4415e+02  +1.0106e+00  -1.1389e-01
+8.7729e+02  +1.0096e+00  -1.1655e-01
+9.1173e+02  +1.0096e+00  -1.2245e-01
+9.4752e+02  +1.0104e+00  -1.2809e-01
+9.8472e+02  +1.0081e+00  -1.3137e-01
+1.0234e+03  +1.0078e+00  -1.3727e-01
+1.0635e+03  +1.0075e+00  -1.4470e-01
+1.1053e+03  +1.0070e+00  -1.4946e-01
+1.1487e+03  +1.0070e+00  -1.5566e-01
+1.1938e+03  +1.0060e+00  -1.6238e-01
+1.2406e+03  +1.0056e+00  -1.6837e-01
+1.2893e+03  +1.0040e+00  -1.7611e-01
+1.3400e+03  +1.0041e+00  -1.8326e-01
+1.3926e+03  +1.0021e+00  -1.9034e-01
+1.4472e+03  +9.9990e-01  -1.9865e-01
+1.5040e+03  +9.9914e-01  -2.0604e-01
+1.5631e+03  +9.9878e-01  -2.1406e-01
+1.6244e+03  +9.9742e-01  -2.2316e-01
+1.6882e+03  +9.9624e-01  -2.3159e-01
+1.7545e+03  +9.9453e-01  -2.4123e-01
+1.8233e+03  +9.9245e-01  -2.5170e-01
+1.8949e+03  +9.9044e-01  -2.6128e-01
+1.9693e+03  +9.8799e-01  -2.7237e-01
+2.0466e+03  +9.8680e-01  -2.8413e-01
+2.1270e+03  +9.8307e-01  -2.9464e-01
+2.2105e+03  +9.8051e-01  -3.0700e-01
+2.2972e+03  +9.7748e-01  -3.1929e-01
+2.3874e+03  +9.7487e-01  -3.3209e-01
+2.4811e+03  +9.7150e-01  -3.4567e-01
+2.5785e+03  +9.6762e-01  -3.6086e-01
+2.6797e+03  +9.6341e-01  -3.7531e-01
+2.7849e+03  +9.5873e-01  -3.9043e-01
+2.8943e+03  +9.5359e-01  -4.0794e-01
+3.0079e+03  +9.4813e-01  -4.2490e-01
+3.1260e+03  +9.4173e-01  -4.4296e-01
+3.2487e+03  +9.3478e-01  -4.6222e-01
+3.3762e+03  +9.2565e-01  -4.8239e-01
+3.5087e+03  +9.1604e-01  -5.0353e-01
+3.6465e+03  +9.0347e-01  -5.2630e-01
+3.7896e+03  +8.9053e-01  -5.4973e-01
+3.9384e+03  +8.7380e-01  -5.7403e-01
+4.0930e+03  +8.5392e-01  -5.9755e-01
+4.2537e+03  +8.2987e-01  -6.1998e-01
+4.4206e+03  +8.0160e-01  -6.3810e-01
+4.5942e+03  +7.7015e-01  -6.4871e-01
+4.7745e+03  +7.3774e-01  -6.4685e-01
+4.9619e+03  +7.0967e-01  -6.3043e-01
+5.1567e+03  +6.9213e-01  -6.0156e-01
+5.3592e+03  +6.8784e-01  -5.7158e-01
+5.5695e+03  +6.9478e-01  -5.5010e-01
+5.7882e+03  +7.0725e-01  -5.4208e-01
+6.0154e+03  +7.2060e-01  -5.4708e-01
+6.2515e+03  +7.3166e-01  -5.6112e-01
+6.4969e+03  +7.3922e-01  -5.8153e-01
+6.7520e+03  +7.4378e-01  -6.0620e-01
+7.0170e+03  +7.4478e-01  -6.3187e-01
+7.2925e+03  +7.4341e-01  -6.5926e-01
+7.5788e+03  +7.4015e-01  -6.8752e-01
+7.8763e+03  +7.3486e-01  -7.1584e-01
+8.1855e+03  +7.2796e-01  -7.4493e-01
+8.5068e+03  +7.1977e-01  -7.7424e-01
+8.8407e+03  +7.1047e-01  -8.0321e-01
+9.1878e+03  +7.0002e-01  -8.3254e-01
+9.5485e+03  +6.8901e-01  -8.6213e-01
+9.9233e+03  +6.7668e-01  -8.9144e-01
+1.0313e+04  +6.6395e-01  -9.2143e-01
+1.0718e+04  +6.4798e-01  -9.5310e-01
+1.1138e+04  +6.3377e-01  -9.8311e-01
+1.1576e+04  +6.1879e-01  -1.0132e+00
+1.2030e+04  +6.0346e-01  -1.0430e+00
+1.2502e+04  +5.8734e-01  -1.0728e+00
+1.2993e+04  +5.7076e-01  -1.1025e+00
+1.3503e+04  +5.5399e-01  -1.1316e+00
+1.4033e+04  +5.3617e-01  -1.1603e+00
+1.4584e+04  +5.1840e-01  -1.1883e+00
+1.5157e+04  +4.9970e-01  -1.2156e+00
+1.5752e+04  +4.8112e-01  -1.2407e+00
+1.6370e+04  +4.6208e-01  -1.2645e+00
+1.7013e+04  +4.4360e-01  -1.2847e+00
+1.7680e+04  +4.2601e-01  -1.3016e+00
+1.8374e+04  +4.0910e-01  -1.3159e+00
+1.9096e+04  +3.9180e-01  -1.3291e+00
+1.9845e+04  +3.7809e-01  -1.3376e+00
+2.0624e+04  +3.6569e-01  -1.3468e+00
+2.1434e+04  +3.5476e-01  -1.3565e+00
+2.2275e+04  +3.4501e-01  -1.3672e+00
+2.3150e+04  +3.3582e-01  -1.3809e+00
+2.4059e+04  +3.2705e-01  -1.3968e+00
+2.5003e+04  +3.1878e-01  -1.4150e+00
+2.5985e+04  +3.1023e-01  -1.4359e+00
+2.7005e+04  +3.0145e-01  -1.4586e+00
+2.8065e+04  +2.9253e-01  -1.4827e+00
+2.9166e+04  +2.8277e-01  -1.5077e+00
+3.0311e+04  +2.7335e-01  -1.5329e+00
+3.1501e+04  +2.6357e-01  -1.5579e+00
+3.2738e+04  +2.5379e-01  -1.5834e+00
+3.4023e+04  +2.4373e-01  -1.6073e+00
+3.5359e+04  +2.3370e-01  -1.6304e+00
+3.6747e+04  +2.2379e-01  -1.6515e+00
+3.8189e+04  +2.1417e-01  -1.6698e+00
+3.9688e+04  +2.0507e-01  -1.6872e+00
+4.1246e+04  +1.9633e-01  -1.7019e+00
+4.2865e+04  +1.8840e-01  -1.7151e+00
+4.4548e+04  +1.8113e-01  -1.7272e+00
+4.6297e+04  +1.7464e-01  -1.7406e+00
+4.8114e+04  +1.6867e-01  -1.7542e+00
+5.0003e+04  +1.6305e-01  -1.7709e+00
+5.1966e+04  +1.5765e-01  -1.7883e+00
+5.4006e+04  +1.5226e-01  -1.8074e+00
+5.6126e+04  +1.4709e-01  -1.8284e+00
+5.8329e+04  +1.4178e-01  -1.8493e+00
+6.0619e+04  +1.3645e-01  -1.8714e+00
+6.2999e+04  +1.3136e-01  -1.8908e+00
+6.5472e+04  +1.2650e-01  -1.9078e+00
+6.8042e+04  +1.2207e-01  -1.9258e+00
+7.0713e+04  +1.1790e-01  -1.9430e+00
+7.3489e+04  +1.1421e-01  -1.9617e+00
+7.6374e+04  +1.1086e-01  -1.9827e+00
+7.9372e+04  +1.0746e-01  -2.0061e+00
+8.2487e+04  +1.0418e-01  -2.0316e+00
+8.5726e+04  +1.0078e-01  -2.0576e+00
+8.9091e+04  +9.7555e-02  -2.0835e+00
+9.2588e+04  +9.4461e-02  -2.1082e+00
+9.6223e+04  +9.1514e-02  -2.1329e+00
+1.0000e+05  +8.8779e-02  -2.1597e+00

Note

When writing out in internal format, the static gain is removed from the magnitude but recorded in the file. When reading in the internal format again, the static gain will be reapplied.

To read in the internal ASCII format calibration file, the parameters of CalibrationIO need to be reset using the refresh() method. This time, the fileformat needs to be set to “induction”.

46
47
48
49
# can read this again
calIO.refresh(rspx2ascii, "induction", chopper=False, extend=False)
calDataAscii = calIO.read()
calDataAscii.printInfo()

Finally, plotting the original data and the internal ASCII format data can be done in the following way:

51
52
53
54
55
56
57
# plot together
fig = plt.figure(figsize=(8, 8))
calData.view(fig=fig, label="RSPX calibration", legend=True)
calDataAscii.view(fig=fig, label="ASCII calibration", legend=True)
fig.tight_layout(rect=[0, 0.02, 1, 0.96])
plt.show()
fig.savefig(calImages / "calibrationRSPXvsASCII.png")

The resultant figure is:

alternate text

Viewing the original RSPX data versus the ASCII data

Complete example script

For the purposes of clarity, the example script in full.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from datapaths import calPath, calImages
from resistics.calibrate.io import CalibrationIO

# read RSPX calibration data
filepath = calPath / "Metronix_Coil-----TYPE-006_HF-ID-000133.RSPX"
calIO = CalibrationIO(filepath, "rspx", extend=False)
calData = calIO.read()
calData.printInfo()

# plot
import matplotlib.pyplot as plt

fig = plt.figure(figsize=(8, 8))
calData.view(fig=fig, label="RSPX calibration", legend=True)
fig.tight_layout(rect=[0, 0.02, 1, 0.96])
plt.show()
fig.savefig(calImages / "calibrationRSPX.png")

# plot
fig = plt.figure(figsize=(8, 8))
calData.view(fig=fig, label="RSPX calibration", degrees=True, legend=True)
calData.view(
    fig=fig, staticgain=False, degrees=True, label="RSPX calibration", legend=True
)
fig.tight_layout(rect=[0, 0.02, 1, 0.96])
plt.show()
fig.savefig(calImages / "calibrationRSPX_staticGainAndDegrees.png")

# this time read in with extend
calIO.refresh(filepath, "rspx", extend=True)
calDataExtended = calIO.read()
calDataExtended.printInfo()

# plot these two together
fig = plt.figure(figsize=(8, 8))
calDataExtended.view(fig=fig, degrees=True, label="RSPX calibration", legend=True)
calData.view(fig=fig, label="RSPX calibration", degrees=True, legend=True)
fig.tight_layout(rect=[0, 0.02, 1, 0.96])
plt.show()
fig.savefig(calImages / "calibrationRSPX_extended.png")

# write as the ASCII format
rspx2ascii = calPath / "rspx2ascii.TXT"
calIO.writeInternalFormat(calData, rspx2ascii)

# can read this again
calIO.refresh(rspx2ascii, "induction", chopper=False, extend=False)
calDataAscii = calIO.read()
calDataAscii.printInfo()

# plot together
fig = plt.figure(figsize=(8, 8))
calData.view(fig=fig, label="RSPX calibration", legend=True)
calDataAscii.view(fig=fig, label="ASCII calibration", legend=True)
fig.tight_layout(rect=[0, 0.02, 1, 0.96])
plt.show()
fig.savefig(calImages / "calibrationRSPXvsASCII.png")
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 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
117
118
119
120
121
122
123
124
125
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<?xml version="1.0" encoding="utf-8" ?>
<EmeraldModuleResponse>
    <CalibrationFile>06133_1503_H_15V</CalibrationFile>
    <CalibrationDate>2015_03</CalibrationDate>
    <CalibrationType>RSP</CalibrationType>
    <SensorType>Metronix_Coil</SensorType>
    <SensorSpecification>006_HF</SensorSpecification>
    <SensorId>133</SensorId>
    <StaticGain>800.000000</StaticGain>
    <Unit>mV/nT</Unit>
    <Status>OK</Status>
    <ResponseData Frequency=" 100000.00000000" Magnitude="0.08877854" Phase="-123.74210000" />
    <ResponseData Frequency="  96222.71000000" Magnitude="0.09151411" Phase="-122.20340000" />
    <ResponseData Frequency="  92588.10000000" Magnitude="0.09446067" Phase="-120.79290000" />
    <ResponseData Frequency="  89090.78000000" Magnitude="0.09755461" Phase="-119.37630000" />
    <ResponseData Frequency="  85725.57000000" Magnitude="0.10078241" Phase="-117.89050000" />
    <ResponseData Frequency="  82487.47000000" Magnitude="0.10417753" Phase="-116.40460000" />
    <ResponseData Frequency="  79371.68000000" Magnitude="0.10746057" Phase="-114.94360000" />
    <ResponseData Frequency="  76373.58000000" Magnitude="0.11086033" Phase="-113.60060000" />
    <ResponseData Frequency="  73488.73000000" Magnitude="0.11420669" Phase="-112.39800000" />
    <ResponseData Frequency="  70712.85000000" Magnitude="0.11790333" Phase="-111.32490000" />
    <ResponseData Frequency="  68041.82000000" Magnitude="0.12206631" Phase="-110.34170000" />
    <ResponseData Frequency="  65471.68000000" Magnitude="0.12650338" Phase="-109.31160000" />
    <ResponseData Frequency="  62998.63000000" Magnitude="0.13135538" Phase="-108.33700000" />
    <ResponseData Frequency="  60618.99000000" Magnitude="0.13645350" Phase="-107.22050000" />
    <ResponseData Frequency="  58329.23000000" Magnitude="0.14178375" Phase="-105.95920000" />
    <ResponseData Frequency="  56125.97000000" Magnitude="0.14708763" Phase="-104.76010000" />
    <ResponseData Frequency="  54005.93000000" Magnitude="0.15226050" Phase="-103.55500000" />
    <ResponseData Frequency="  51965.97000000" Magnitude="0.15765400" Phase="-102.46000000" />
    <ResponseData Frequency="  50003.07000000" Magnitude="0.16305150" Phase="-101.46570000" />
    <ResponseData Frequency="  48114.31000000" Magnitude="0.16867225" Phase="-100.50760000" />
    <ResponseData Frequency="  46296.89000000" Magnitude="0.17464037" Phase=" -99.73044000" />
    <ResponseData Frequency="  44548.13000000" Magnitude="0.18112975" Phase=" -98.95991000" />
    <ResponseData Frequency="  42865.41000000" Magnitude="0.18840138" Phase=" -98.26605000" />
    <ResponseData Frequency="  41246.27000000" Magnitude="0.19632613" Phase=" -97.50920000" />
    <ResponseData Frequency="  39688.27000000" Magnitude="0.20506888" Phase=" -96.66896000" />
    <ResponseData Frequency="  38189.13000000" Magnitude="0.21417450" Phase=" -95.67523000" />
    <ResponseData Frequency="  36746.62000000" Magnitude="0.22378650" Phase=" -94.62573000" />
    <ResponseData Frequency="  35358.59000000" Magnitude="0.23369975" Phase=" -93.41593000" />
    <ResponseData Frequency="  34023.00000000" Magnitude="0.24372675" Phase=" -92.09158000" />
    <ResponseData Frequency="  32737.85000000" Magnitude="0.25378587" Phase=" -90.72304000" />
    <ResponseData Frequency="  31501.25000000" Magnitude="0.26357338" Phase=" -89.26049000" />
    <ResponseData Frequency="  30311.36000000" Magnitude="0.27334562" Phase=" -87.82895000" />
    <ResponseData Frequency="  29166.41000000" Magnitude="0.28277425" Phase=" -86.38580000" />
    <ResponseData Frequency="  28064.71000000" Magnitude="0.29252925" Phase=" -84.95051000" />
    <ResponseData Frequency="  27004.62000000" Magnitude="0.30144925" Phase=" -83.57078000" />
    <ResponseData Frequency="  25984.58000000" Magnitude="0.31023187" Phase=" -82.27145000" />
    <ResponseData Frequency="  25003.07000000" Magnitude="0.31878313" Phase=" -81.07256000" />
    <ResponseData Frequency="  24058.63000000" Magnitude="0.32705462" Phase=" -80.03114000" />
    <ResponseData Frequency="  23149.87000000" Magnitude="0.33582125" Phase=" -79.11964000" />
    <ResponseData Frequency="  22275.43000000" Magnitude="0.34500938" Phase=" -78.33450000" />
    <ResponseData Frequency="  21434.02000000" Magnitude="0.35476388" Phase=" -77.71940000" />
    <ResponseData Frequency="  20624.40000000" Magnitude="0.36569350" Phase=" -77.16328000" />
    <ResponseData Frequency="  19845.36000000" Magnitude="0.37808613" Phase=" -76.64165000" />
    <ResponseData Frequency="  19095.74000000" Magnitude="0.39179938" Phase=" -76.15090000" />
    <ResponseData Frequency="  18374.44000000" Magnitude="0.40909613" Phase=" -75.39464000" />
    <ResponseData Frequency="  17680.38000000" Magnitude="0.42601200" Phase=" -74.57809000" />
    <ResponseData Frequency="  17012.54000000" Magnitude="0.44359738" Phase=" -73.60526000" />
    <ResponseData Frequency="  16369.93000000" Magnitude="0.46208163" Phase=" -72.44982000" />
    <ResponseData Frequency="  15751.59000000" Magnitude="0.48112488" Phase=" -71.08853000" />
    <ResponseData Frequency="  15156.61000000" Magnitude="0.49970175" Phase=" -69.65128000" />
    <ResponseData Frequency="  14584.10000000" Magnitude="0.51839500" Phase=" -68.08278000" />
    <ResponseData Frequency="  14033.22000000" Magnitude="0.53616725" Phase=" -66.47764000" />
    <ResponseData Frequency="  13503.14000000" Magnitude="0.55398938" Phase=" -64.83617000" />
    <ResponseData Frequency="  12993.09000000" Magnitude="0.57075862" Phase=" -63.16896000" />
    <ResponseData Frequency="  12502.30000000" Magnitude="0.58733663" Phase=" -61.46547000" />
    <ResponseData Frequency="  12030.05000000" Magnitude="0.60346125" Phase=" -59.75940000" />
    <ResponseData Frequency="  11575.64000000" Magnitude="0.61879500" Phase=" -58.05477000" />
    <ResponseData Frequency="  11138.40000000" Magnitude="0.63376563" Phase=" -56.32827000" />
    <ResponseData Frequency="  10717.67000000" Magnitude="0.64798400" Phase=" -54.60885000" />
    <ResponseData Frequency="  10312.83000000" Magnitude="0.66395025" Phase=" -52.79426000" />
    <ResponseData Frequency="   9923.28600000" Magnitude="0.67668200" Phase=" -51.07599000" />
    <ResponseData Frequency="   9548.45500000" Magnitude="0.68900887" Phase=" -49.39648000" />
    <ResponseData Frequency="   9187.78200000" Magnitude="0.70002263" Phase=" -47.70113000" />
    <ResponseData Frequency="   8840.73300000" Magnitude="0.71046888" Phase=" -46.02061000" />
    <ResponseData Frequency="   8506.79300000" Magnitude="0.71976525" Phase=" -44.36049000" />
    <ResponseData Frequency="   8185.46700000" Magnitude="0.72796500" Phase=" -42.68160000" />
    <ResponseData Frequency="   7876.27900000" Magnitude="0.73486363" Phase=" -41.01434000" />
    <ResponseData Frequency="   7578.76900000" Magnitude="0.74015125" Phase=" -39.39211000" />
    <ResponseData Frequency="   7292.49700000" Magnitude="0.74340988" Phase=" -37.77294000" />
    <ResponseData Frequency="   7017.03800000" Magnitude="0.74477900" Phase=" -36.20350000" />
    <ResponseData Frequency="   6751.98400000" Magnitude="0.74378063" Phase=" -34.73297000" />
    <ResponseData Frequency="   6496.94200000" Magnitude="0.73922162" Phase=" -33.31895000" />
    <ResponseData Frequency="   6251.53400000" Magnitude="0.73166287" Phase=" -32.14974000" />
    <ResponseData Frequency="   6015.39600000" Magnitude="0.72060062" Phase=" -31.34537000" />
    <ResponseData Frequency="   5788.17700000" Magnitude="0.70725213" Phase=" -31.05912000" />
    <ResponseData Frequency="   5569.54100000" Magnitude="0.69477675" Phase=" -31.51843000" />
    <ResponseData Frequency="   5359.16300000" Magnitude="0.68783825" Phase=" -32.74899000" />
    <ResponseData Frequency="   5156.73200000" Magnitude="0.69212750" Phase=" -34.46659000" />
    <ResponseData Frequency="   4961.94800000" Magnitude="0.70966512" Phase=" -36.12075000" />
    <ResponseData Frequency="   4774.52100000" Magnitude="0.73774500" Phase=" -37.06163000" />
    <ResponseData Frequency="   4594.17300000" Magnitude="0.77015088" Phase=" -37.16825000" />
    <ResponseData Frequency="   4420.63800000" Magnitude="0.80159825" Phase=" -36.56036000" />
    <ResponseData Frequency="   4253.65800000" Magnitude="0.82986563" Phase=" -35.52214000" />
    <ResponseData Frequency="   4092.98500000" Magnitude="0.85391987" Phase=" -34.23725000" />
    <ResponseData Frequency="   3938.38100000" Magnitude="0.87379887" Phase=" -32.88945000" />
    <ResponseData Frequency="   3789.61700000" Magnitude="0.89053325" Phase=" -31.49726000" />
    <ResponseData Frequency="   3646.47200000" Magnitude="0.90346738" Phase=" -30.15461000" />
    <ResponseData Frequency="   3508.73400000" Magnitude="0.91603612" Phase=" -28.85027000" />
    <ResponseData Frequency="   3376.19900000" Magnitude="0.92565325" Phase=" -27.63919000" />
    <ResponseData Frequency="   3248.67100000" Magnitude="0.93478188" Phase=" -26.48347000" />
    <ResponseData Frequency="   3125.95900000" Magnitude="0.94173487" Phase=" -25.37949000" />
    <ResponseData Frequency="   3007.88300000" Magnitude="0.94812737" Phase=" -24.34476000" />
    <ResponseData Frequency="   2894.26600000" Magnitude="0.95358850" Phase=" -23.37326000" />
    <ResponseData Frequency="   2784.94100000" Magnitude="0.95873425" Phase=" -22.36996000" />
    <ResponseData Frequency="   2679.74600000" Magnitude="0.96341025" Phase=" -21.50375000" />
    <ResponseData Frequency="   2578.52400000" Magnitude="0.96762362" Phase=" -20.67566000" />
    <ResponseData Frequency="   2481.12600000" Magnitude="0.97150487" Phase=" -19.80529000" />
    <ResponseData Frequency="   2387.40700000" Magnitude="0.97486675" Phase=" -19.02755000" />
    <ResponseData Frequency="   2297.22800000" Magnitude="0.97747925" Phase=" -18.29376000" />
    <ResponseData Frequency="   2210.45500000" Magnitude="0.98051137" Phase=" -17.59004000" />
    <ResponseData Frequency="   2126.95900000" Magnitude="0.98306925" Phase=" -16.88171000" />
    <ResponseData Frequency="   2046.61800000" Magnitude="0.98680013" Phase=" -16.27970000" />
    <ResponseData Frequency="   1969.31100000" Magnitude="0.98799425" Phase=" -15.60589000" />
    <ResponseData Frequency="   1894.92500000" Magnitude="0.99043875" Phase=" -14.97023000" />
    <ResponseData Frequency="   1823.34800000" Magnitude="0.99244525" Phase=" -14.42108000" />
    <ResponseData Frequency="   1754.47500000" Magnitude="0.99453187" Phase=" -13.82166000" />
    <ResponseData Frequency="   1688.20300000" Magnitude="0.99624050" Phase=" -13.26928000" />
    <ResponseData Frequency="   1624.43500000" Magnitude="0.99741825" Phase=" -12.78584000" />
    <ResponseData Frequency="   1563.07500000" Magnitude="0.99878075" Phase=" -12.26478000" />
    <ResponseData Frequency="   1504.03400000" Magnitude="0.99913737" Phase=" -11.80522000" />
    <ResponseData Frequency="   1447.22200000" Magnitude="0.99990150" Phase=" -11.38177000" />
    <ResponseData Frequency="   1392.55600000" Magnitude="1.00213800" Phase=" -10.90575000" />
    <ResponseData Frequency="   1339.95500000" Magnitude="1.00414575" Phase=" -10.50015000" />
    <ResponseData Frequency="   1289.34100000" Magnitude="1.00400900" Phase=" -10.09041000" />
    <ResponseData Frequency="   1240.63900000" Magnitude="1.00555813" Phase="  -9.64709200" />
    <ResponseData Frequency="   1193.77700000" Magnitude="1.00596850" Phase="  -9.30379600" />
    <ResponseData Frequency="   1148.68400000" Magnitude="1.00701037" Phase="  -8.91853500" />
    <ResponseData Frequency="   1105.29500000" Magnitude="1.00704775" Phase="  -8.56366300" />
    <ResponseData Frequency="   1063.54500000" Magnitude="1.00749325" Phase="  -8.29078600" />
    <ResponseData Frequency="   1023.37200000" Magnitude="1.00784175" Phase="  -7.86474000" />
    <ResponseData Frequency="    984.71610000" Magnitude="1.00812313" Phase="  -7.52669100" />
    <ResponseData Frequency="    947.52050000" Magnitude="1.01035550" Phase="  -7.33875700" />
    <ResponseData Frequency="    911.72990000" Magnitude="1.00964163" Phase="  -7.01577800" />
    <ResponseData Frequency="    877.29130000" Magnitude="1.00957462" Phase="  -6.67788600" />
    <ResponseData Frequency="    844.15340000" Magnitude="1.01057825" Phase="  -6.52545700" />
    <ResponseData Frequency="    812.26730000" Magnitude="1.01314625" Phase="  -6.16592200" />
    <ResponseData Frequency="    781.58570000" Magnitude="1.01204450" Phase="  -5.87499800" />
    <ResponseData Frequency="    752.06290000" Magnitude="1.01314275" Phase="  -5.66213100" />
    <ResponseData Frequency="    723.65530000" Magnitude="1.01190950" Phase="  -5.51033400" />
    <ResponseData Frequency="    696.32080000" Magnitude="1.01262738" Phase="  -5.26667000" />
    <ResponseData Frequency="    670.01870000" Magnitude="1.01386100" Phase="  -4.99495900" />
    <ResponseData Frequency="    644.71020000" Magnitude="1.01383500" Phase="  -4.56462800" />
    <ResponseData Frequency="    620.35770000" Magnitude="1.01312975" Phase="  -4.52968200" />
    <ResponseData Frequency="    596.92490000" Magnitude="1.01241838" Phase="  -4.34644400" />
    <ResponseData Frequency="    574.37740000" Magnitude="1.01186850" Phase="  -4.04080200" />
    <ResponseData Frequency="    552.68150000" Magnitude="1.01787463" Phase="  -4.09456800" />
    <ResponseData Frequency="    531.80510000" Magnitude="1.01236900" Phase="  -3.96180100" />
    <ResponseData Frequency="    511.71730000" Magnitude="1.01460300" Phase="  -3.73493600" />
    <ResponseData Frequency="    492.38830000" Magnitude="1.01447463" Phase="  -3.44727300" />
    <ResponseData Frequency="    473.78930000" Magnitude="1.01412850" Phase="  -3.24690300" />
    <ResponseData Frequency="    455.89290000" Magnitude="1.01808250" Phase="  -3.20123100" />
    <ResponseData Frequency="    438.67250000" Magnitude="1.01817463" Phase="  -3.05453300" />
    <ResponseData Frequency="    422.10260000" Magnitude="1.01767500" Phase="  -2.76427000" />
    <ResponseData Frequency="    406.15860000" Magnitude="1.01593700" Phase="  -2.62289000" />
    <ResponseData Frequency="    390.81680000" Magnitude="1.01353125" Phase="  -2.56399100" />
    <ResponseData Frequency="    376.05450000" Magnitude="1.01665663" Phase="  -2.30128600" />
    <ResponseData Frequency="    361.84990000" Magnitude="1.02066363" Phase="  -2.38722800" />
    <ResponseData Frequency="    335.02990000" Magnitude="1.01719650" Phase="  -2.18067400" />
    <ResponseData Frequency="    322.37490000" Magnitude="1.01986600" Phase="  -1.80498700" />
    <ResponseData Frequency="    310.19780000" Magnitude="1.01742625" Phase="  -1.72342600" />
    <ResponseData Frequency="    298.48080000" Magnitude="1.01665188" Phase="  -1.40456000" />
    <ResponseData Frequency="    287.20630000" Magnitude="1.01719287" Phase="  -1.33476400" />
    <ResponseData Frequency="    276.35770000" Magnitude="1.01766225" Phase="  -1.31812500" />
    <ResponseData Frequency="    265.91890000" Magnitude="1.01377813" Phase="  -1.02183900" />
    <ResponseData Frequency="    236.90920000" Magnitude="1.01091875" Phase="  -0.90050380" />
    <ResponseData Frequency="    227.96050000" Magnitude="1.01594950" Phase="  -0.82571860" />
    <ResponseData Frequency="    219.34970000" Magnitude="1.01364837" Phase="  -0.72262460" />
    <ResponseData Frequency="    211.06430000" Magnitude="1.01723000" Phase="  -0.67256750" />
    <ResponseData Frequency="    203.09180000" Magnitude="1.01323200" Phase="  -0.39070290" />
    <ResponseData Frequency="    195.42040000" Magnitude="1.01665262" Phase="  -0.34327180" />
    <ResponseData Frequency="    188.03880000" Magnitude="1.01500213" Phase="  -0.37686230" />
    <ResponseData Frequency="    180.93600000" Magnitude="1.01808925" Phase="  -0.16195270" />
    <ResponseData Frequency="    174.10160000" Magnitude="1.01602938" Phase="  -0.01704049" />
    <ResponseData Frequency="    167.52530000" Magnitude="1.01678450" Phase="   0.04301032" />
    <ResponseData Frequency="    161.19730000" Magnitude="1.01658675" Phase="   0.21623680" />
    <ResponseData Frequency="    143.61200000" Magnitude="1.01823762" Phase="   0.19182020" />
    <ResponseData Frequency="    138.18730000" Magnitude="1.01697275" Phase="   0.65767340" />
    <ResponseData Frequency="    132.96760000" Magnitude="1.01807550" Phase="   0.73678700" />
    <ResponseData Frequency="    127.94500000" Magnitude="1.01636875" Phase="   0.82077430" />
    <ResponseData Frequency="    123.11220000" Magnitude="1.01728938" Phase="   0.90175380" />
    <ResponseData Frequency="    118.46190000" Magnitude="1.01660100" Phase="   0.93770800" />
    <ResponseData Frequency="    113.98720000" Magnitude="1.01655713" Phase="   1.21314200" />
    <ResponseData Frequency="    109.68160000" Magnitude="1.01720688" Phase="   1.12879200" />
    <ResponseData Frequency="    105.53860000" Magnitude="1.02097425" Phase="   1.30943800" />
    <ResponseData Frequency="    101.55210000" Magnitude="1.01296238" Phase="   1.58789200" />
    <ResponseData Frequency="     97.71619000" Magnitude="1.01437837" Phase="   1.80333400" />
    <ResponseData Frequency="     94.02518000" Magnitude="1.01696925" Phase="   1.58334100" />
    <ResponseData Frequency="     90.47357000" Magnitude="1.01521488" Phase="   1.75391000" />
    <ResponseData Frequency="     87.05612000" Magnitude="1.01705563" Phase="   1.90544700" />
    <ResponseData Frequency="     83.76776000" Magnitude="1.01676163" Phase="   2.12269900" />
    <ResponseData Frequency="     80.60361000" Magnitude="1.01749212" Phase="   2.35168100" />
    <ResponseData Frequency="     77.55898000" Magnitude="1.01408025" Phase="   2.50879300" />
    <ResponseData Frequency="     74.62936000" Magnitude="1.01558650" Phase="   2.66469900" />
    <ResponseData Frequency="     71.81039000" Magnitude="1.01701362" Phase="   2.66783500" />
    <ResponseData Frequency="     69.09791000" Magnitude="1.01579388" Phase="   2.67449800" />
    <ResponseData Frequency="     66.48788000" Magnitude="1.01249650" Phase="   2.75570900" />
    <ResponseData Frequency="     63.97644000" Magnitude="1.01468700" Phase="   3.26490400" />
    <ResponseData Frequency="     61.55986000" Magnitude="1.01939638" Phase="   3.37516000" />
    <ResponseData Frequency="     59.23457000" Magnitude="1.02469938" Phase="   3.57448500" />
    <ResponseData Frequency="     56.99711000" Magnitude="1.01076562" Phase="   3.39453000" />
    <ResponseData Frequency="     45.23956000" Magnitude="1.01365837" Phase="   4.78150000" />
    <ResponseData Frequency="     43.53074000" Magnitude="1.02041888" Phase="   5.25572000" />
    <ResponseData Frequency="     41.88645000" Magnitude="1.01456525" Phase="   5.25482300" />
    <ResponseData Frequency="     40.30428000" Magnitude="1.01416200" Phase="   5.66824500" />
    <ResponseData Frequency="     38.78187000" Magnitude="1.01347188" Phase="   5.75877800" />
    <ResponseData Frequency="     37.31697000" Magnitude="1.01175488" Phase="   6.05706900" />
    <ResponseData Frequency="     35.90740000" Magnitude="1.01335837" Phase="   6.19422000" />
    <ResponseData Frequency="     34.55107000" Magnitude="1.01467550" Phase="   6.49802500" />
    <ResponseData Frequency="     33.24598000" Magnitude="1.01266338" Phase="   6.72740600" />
    <ResponseData Frequency="     31.99018000" Magnitude="1.01177125" Phase="   7.11083800" />
    <ResponseData Frequency="     30.78182000" Magnitude="1.01189950" Phase="   7.34236400" />
    <ResponseData Frequency="     29.61910000" Magnitude="1.01179687" Phase="   7.59592700" />
    <ResponseData Frequency="     28.50031000" Magnitude="1.00974725" Phase="   7.94773300" />
    <ResponseData Frequency="     27.42377000" Magnitude="1.01118650" Phase="   8.29576100" />
    <ResponseData Frequency="     26.38789000" Magnitude="1.00949875" Phase="   8.59513200" />
    <ResponseData Frequency="     25.39114000" Magnitude="1.01009100" Phase="   8.92935400" />
    <ResponseData Frequency="     24.43205000" Magnitude="1.00891300" Phase="   9.35981700" />
    <ResponseData Frequency="     23.50918000" Magnitude="1.00795350" Phase="   9.62346500" />
    <ResponseData Frequency="     22.62117000" Magnitude="1.00784838" Phase="  10.06581000" />
    <ResponseData Frequency="     21.76670000" Magnitude="1.00577112" Phase="  10.42234000" />
    <ResponseData Frequency="     20.94451000" Magnitude="1.00575850" Phase="  10.90986000" />
    <ResponseData Frequency="     20.15338000" Magnitude="1.00438937" Phase="  11.32069000" />
    <ResponseData Frequency="     19.39213000" Magnitude="1.00256862" Phase="  11.85436000" />
    <ResponseData Frequency="     18.65963000" Magnitude="1.00216588" Phase="  12.22126000" />
    <ResponseData Frequency="     17.95480000" Magnitude="1.00116725" Phase="  12.88312000" />
    <ResponseData Frequency="     15.39186000" Magnitude="0.99536338" Phase="  14.89497000" />
    <ResponseData Frequency="     14.81046000" Magnitude="0.99225588" Phase="  15.46403000" />
    <ResponseData Frequency="     14.25103000" Magnitude="0.99224500" Phase="  16.00377000" />
    <ResponseData Frequency="     13.71272000" Magnitude="0.99035862" Phase="  16.67527000" />
    <ResponseData Frequency="     13.19476000" Magnitude="0.98715387" Phase="  17.34152000" />
    <ResponseData Frequency="     12.69635000" Magnitude="0.98515825" Phase="  17.94263000" />
    <ResponseData Frequency="     12.21677000" Magnitude="0.98327912" Phase="  18.67780000" />
    <ResponseData Frequency="     11.75531000" Magnitude="0.98058950" Phase="  19.42797000" />
    <ResponseData Frequency="     11.31128000" Magnitude="0.97735225" Phase="  20.17696000" />
    <ResponseData Frequency="     10.88402000" Magnitude="0.97460575" Phase="  20.91657000" />
    <ResponseData Frequency="     10.47290000" Magnitude="0.97103713" Phase="  21.69529000" />
    <ResponseData Frequency="     10.07731000" Magnitude="0.96787437" Phase="  22.49375000" />
    <ResponseData Frequency="      9.69665800" Magnitude="0.96419150" Phase="  23.35962000" />
    <ResponseData Frequency="      9.33038700" Magnitude="0.96048800" Phase="  24.23872000" />
    <ResponseData Frequency="      8.97795200" Magnitude="0.95577875" Phase="  25.13118000" />
    <ResponseData Frequency="      8.63882800" Magnitude="0.95123175" Phase="  26.07279000" />
    <ResponseData Frequency="      8.31251500" Magnitude="0.94643537" Phase="  27.03755000" />
    <ResponseData Frequency="      7.99852800" Magnitude="0.94082888" Phase="  28.01823000" />
    <ResponseData Frequency="      7.69640000" Magnitude="0.93563613" Phase="  29.05140000" />
    <ResponseData Frequency="      7.40568400" Magnitude="0.92972737" Phase="  30.07529000" />
    <ResponseData Frequency="      7.12595100" Magnitude="0.92357637" Phase="  31.17091000" />
    <ResponseData Frequency="      6.85678300" Magnitude="0.91706413" Phase="  32.30061000" />
    <ResponseData Frequency="      6.59778300" Magnitude="0.91024663" Phase="  33.45770000" />
    <ResponseData Frequency="      6.34856500" Magnitude="0.90279912" Phase="  34.63381000" />
    <ResponseData Frequency="      6.10876200" Magnitude="0.89495975" Phase="  35.86138000" />
    <ResponseData Frequency="      5.87801600" Magnitude="0.88655362" Phase="  37.08980000" />
    <ResponseData Frequency="      5.65598600" Magnitude="0.87785612" Phase="  38.36166000" />
    <ResponseData Frequency="      5.44234400" Magnitude="0.86854912" Phase="  39.67066000" />
    <ResponseData Frequency="      5.23677100" Magnitude="0.85890500" Phase="  41.01062000" />
    <ResponseData Frequency="      5.03896300" Magnitude="0.84930638" Phase="  42.38470000" />
    <ResponseData Frequency="      4.84862700" Magnitude="0.83865200" Phase="  43.78920000" />
    <ResponseData Frequency="      4.66548000" Magnitude="0.82778150" Phase="  45.22813000" />
    <ResponseData Frequency="      4.48925100" Magnitude="0.81639912" Phase="  46.68229000" />
    <ResponseData Frequency="      4.31967900" Magnitude="0.80453862" Phase="  48.18391000" />
    <ResponseData Frequency="      4.15651300" Magnitude="0.79195300" Phase="  49.70335000" />
    <ResponseData Frequency="      3.99950900" Magnitude="0.77936700" Phase="  51.26211000" />
    <ResponseData Frequency="      3.84843600" Magnitude="0.76605613" Phase="  52.82388000" />
    <ResponseData Frequency="      3.70307000" Magnitude="0.75236437" Phase="  54.44391000" />
    <ResponseData Frequency="      3.56319400" Magnitude="0.73874300" Phase="  56.07273000" />
    <ResponseData Frequency="      3.42860200" Magnitude="0.72372800" Phase="  57.69059000" />
    <ResponseData Frequency="      3.29909400" Magnitude="0.70910675" Phase="  59.35883000" />
    <ResponseData Frequency="      3.17447700" Magnitude="0.69380988" Phase="  61.08051000" />
    <ResponseData Frequency="      3.05456800" Magnitude="0.67793050" Phase="  62.71901000" />
    <ResponseData Frequency="      2.93918800" Magnitude="0.66215213" Phase="  64.49177000" />
    <ResponseData Frequency="      2.82816700" Magnitude="0.64600975" Phase="  66.24989000" />
    <ResponseData Frequency="      2.72133900" Magnitude="0.62965512" Phase="  68.00648000" />
    <ResponseData Frequency="      2.61854600" Magnitude="0.61309087" Phase="  69.77637000" />
    <ResponseData Frequency="      2.51963600" Magnitude="0.59644513" Phase="  71.55630000" />
    <ResponseData Frequency="      2.42446200" Magnitude="0.57950400" Phase="  73.36092000" />
    <ResponseData Frequency="      2.33288300" Magnitude="0.56242525" Phase="  75.16586000" />
    <ResponseData Frequency="      2.24476300" Magnitude="0.54552137" Phase="  77.00172000" />
    <ResponseData Frequency="      2.15997200" Magnitude="0.52859062" Phase="  78.80736000" />
    <ResponseData Frequency="      2.07838400" Magnitude="0.51147062" Phase="  80.64350000" />
    <ResponseData Frequency="      1.99987700" Magnitude="0.49454175" Phase="  82.48358000" />
    <ResponseData Frequency="      1.92433600" Magnitude="0.47764725" Phase="  84.30909000" />
    <ResponseData Frequency="      1.85164800" Magnitude="0.46077775" Phase="  86.15383000" />
    <ResponseData Frequency="      1.78170600" Magnitude="0.44407713" Phase="  88.00144000" />
    <ResponseData Frequency="      1.71440600" Magnitude="0.42745850" Phase="  89.84236000" />
    <ResponseData Frequency="      1.64964800" Magnitude="0.41087300" Phase="  91.68628000" />
    <ResponseData Frequency="      1.58733600" Magnitude="0.39470650" Phase="  93.52610000" />
    <ResponseData Frequency="      1.52737800" Magnitude="0.37873050" Phase="  95.36633000" />
    <ResponseData Frequency="      1.46968400" Magnitude="0.36305112" Phase="  97.20285000" />
    <ResponseData Frequency="      1.41417000" Magnitude="0.34775838" Phase="  99.03044000" />
    <ResponseData Frequency="      1.36075300" Magnitude="0.33265012" Phase=" 100.84700000" />
    <ResponseData Frequency="      1.30935300" Magnitude="0.31799900" Phase=" 102.64810000" />
    <ResponseData Frequency="      1.25989500" Magnitude="0.30360600" Phase=" 104.46570000" />
    <ResponseData Frequency="      1.21230500" Magnitude="0.28949850" Phase=" 106.27010000" />
    <ResponseData Frequency="      1.16651300" Magnitude="0.27591425" Phase=" 108.05070000" />
    <ResponseData Frequency="      1.12245100" Magnitude="0.26260112" Phase=" 109.82990000" />
    <ResponseData Frequency="      1.08005200" Magnitude="0.24974337" Phase=" 111.58270000" />
    <ResponseData Frequency="      1.03925600" Magnitude="0.23718962" Phase=" 113.32730000" />
    <ResponseData Frequency="      1.00000000" Magnitude="0.22505363" Phase=" 115.05370000" />
</EmeraldModuleResponse>