-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Wed Mar 22 18:40:43 2023 UTC
-- File 20220624_153954_1229.dat, 7298  packets found.
APID:
      1229 (EW) in 7298 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 7298 packets (all packets)
Total number of packets: 
      36720 in 7298 packets (all packets)
Packet No from 1 to 7298
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 0.733013 to 4.253047
-each separately from 0s to 4s and from 253047us to 754864us.
   Differences in neigboring packets: 
      0.000000 in 7295 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -1.498183 in 1 packets: 3672
      -2.021851 in 1 packets: 5916
MIU packet time from 2022-06-24T15:39:58.733.013.000 to 2022-06-24T15:40:02.253.047.000
   Differences in neigboring packets: 
      0.000000 in 7295 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -1.498183 in 1 packets: 3672
      -2.021851 in 1 packets: 5916
MIU orbit number: 
      60000 in 7298 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 7298 packets (all packets)
MIU orbit information / number of events: 
      0 in 7298 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 7298 packets (all packets)
Instrument anomalies: 
      0 (OK) in 7298 packets (all packets)
FPGA configuration version: 
      211 in 7298 packets (all packets)
10 MHz counter at the last 1Hz pulse from 2.3206428 to 6.3206282
   Differences in neigboring packets: 
      0.0000000 in 7295 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -1.9999927 in 2 packets: 3672, 5916
Temperature FPGA: 
      04 -> 49.8 degC in 5916 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      05 -> 48.5 degC in 1382 packets: 5917, 5918, 5919, 5920, 5921, 5922, 5923, 5924, 5925, 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, 5934, ...
Temperature XO: 
      C1 -> 37.2 degC in 7298 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 7298 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 7298 packets (all packets)
Number of external events: 
      3 in 3672 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 2244 packets: 3673, 3674, 3675, 3676, 3677, 3678, 3679, 3680, 3681, 3682, 3683, 3684, 3685, 3686, 3687, 3688, 3689, 3690, ...
      1 in 1382 packets: 5917, 5918, 5919, 5920, 5921, 5922, 5923, 5924, 5925, 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, 5934, ...
Number of generated alerts: 
      3 in 3672 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 2244 packets: 3673, 3674, 3675, 3676, 3677, 3678, 3679, 3680, 3681, 3682, 3683, 3684, 3685, 3686, 3687, 3688, 3689, 3690, ...
      1 in 1382 packets: 5917, 5918, 5919, 5920, 5921, 5922, 5923, 5924, 5925, 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, 5934, ...
Survey memory error: 
      0 in 7298 packets (all packets)
Event memory error: 
      0 in 7298 packets (all packets)
Configuration error: 
      0 in 7298 packets (all packets)
SDRAM CRC error: 
      0 in 7298 packets (all packets)
Radio gain: 
      0 in 7298 packets (all packets)
Radio bandwidth: 
      0 in 7298 packets (all packets)
Digital gain: 
      0 in 7298 packets (all packets)
Analog gain: 
      0 in 7298 packets (all packets)

EVENT DATA READER
-- File 20220624_153954_1229.dat, 35 EW pages found. Extra packets: 158.
   ERROR -  Extra packets
   Design version: 211 => Data interpreted as:   Pre-final (EM4-FM1) data structure with variable 32bit C10MHz in the event data descriptor
--
Data structure of all event data packets in the sequence read from file:
   Event numbers from 1 to 3
      3 in 3672 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 2244 packets: 3673, 3674, 3675, 3676, 3677, 3678, 3679, 3680, 3681, 3682, 3683, 3684, 3685, 3686, 3687, 3688, 3689, 3690, ...
      1 in 1224 packets: 5917, 5918, 5919, 5920, 5921, 5922, 5923, 5924, 5925, 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, 5934, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 2.9981685 to 6.7262515
      Difference between the neighboring packets: 
      0.0000170 in 7137 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -1.7062390 in 1 packets: 3672
      -2.0599750 in 1 packets: 5916
   Memory page number from 0 to 74
      Difference between the neighboring packets: 
      0 in 7105 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 33 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3876, ...
      41 in 1 packets: 3672
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 7105 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 32 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3876, ...
      -59 in 1 packets: 3672
      -10 in 1 packets: 5916
   MIU event flag 
      1 in 7140 packets (all packets)
   Time triggered event flag 
      0 in 7140 packets (all packets)
   Absolute time of the 1st EW sample = header abs. time + offset - one page (3.468 ms) - 175 ns delay
   Min EW event (1st sample) abs. time found among all events: 2022-06-24T15:39:58.677.524.825
   Min EW header abs. time found among all events            : 2022-06-24T15:39:58.733.013.000
   Max EW event (1st sample) abs. time found among all events: 2022-06-24T15:40:02.197.558.825
   Max EW header abs. time found among all events            : 2022-06-24T15:40:02.253.047.000
   TM values from -259 to 229 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 1224
    Page no. 1:  204 packets  -- OK;  memory page(s):
      69 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      70 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      71 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      72 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      73 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      74 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 6  ordered packets: 1224
   TM values from -187 to 171 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=0 C1MHz=0.733013
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 1223 packets (all packets)
      -- OK -- correct differences for all packets of this event
         LS 32 bits of C10MHz from descriptor (period 430s)  in the first packet of this event: 2.9981685
   Event type -- OK -- (constant for all packets of this event): External
   Gain -- OK -- (constant for all packets of this event): 1x
   Header abs. time  -- OK -- (constant for all packets of this event): 2022-06-24T15:39:58.733.013.000
   Event 1st sample abs. time : 2022-06-24T15:39:58.677.524.825)
   --- Rel. time correction failed for 1 points and 0 XO calibration points.
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):            -333.000000175
   Event data descriptor XO time (reconstructed seconds from XP start)    :            -333.000000000
   Sampling frequency correction factor for this event:     1.000000000

 Event no. 2 total number of packets: 2244
    Page no. 1:  204 packets  -- OK;  memory page(s):
      58 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      59 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      60 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      61 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      62 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      63 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      64 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      65 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      66 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      67 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      68 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 11  ordered packets: 2244
   TM values from -224 to 210 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=2 C1MHz=0.754864
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 2243 packets (all packets)
      -- OK -- correct differences for all packets of this event
         LS 32 bits of C10MHz from descriptor (period 430s)  in the first packet of this event: 5.0200125
   Event type -- OK -- (constant for all packets of this event): External
   Gain -- OK -- (constant for all packets of this event): 1x
   Header abs. time  -- OK -- (constant for all packets of this event): 2022-06-24T15:40:00.754.864.000
   Event 1st sample abs. time : 2022-06-24T15:40:00.699.375.825)
   --- Rel. time correction failed for 1 points and 0 XO calibration points.
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):            -333.000000175
   Event data descriptor XO time (reconstructed seconds from XP start)    :            -333.000000000
   Sampling frequency correction factor for this event:     1.000000000

 Event no. 3 total number of packets: 3672
    Page no. 43:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 44:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 45:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 46:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 47:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 48:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 49:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 50:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 51:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 52:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 53:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 54:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
    Page no. 55:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
    Page no. 56:  204 packets  -- OK;  memory page(s):
      13 in 204 packets (all packets)  --OK-- 
    Page no. 57:  204 packets  -- OK;  memory page(s):
      14 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      15 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      16 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      17 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 18  ordered packets: 3672
   TM values from -259 to 229 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=4 C1MHz=0.253047
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 3671 packets (all packets)
      -- OK -- correct differences for all packets of this event
         LS 32 bits of C10MHz from descriptor (period 430s)  in the first packet of this event: 6.6638445
   Event type -- OK -- (constant for all packets of this event): External
   Gain -- OK -- (constant for all packets of this event): 1x
   Header abs. time  -- OK -- (constant for all packets of this event): 2022-06-24T15:40:02.253.047.000
   Event 1st sample abs. time : 2022-06-24T15:40:02.197.558.825)
   --- Rel. time correction failed for 1 points and 0 XO calibration points.
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):            -333.000000175
   Event data descriptor XO time (reconstructed seconds from XP start)    :            -333.000000000
   Sampling frequency correction factor for this event:     1.000000000
--
Extremes in separate events:

 - Event number: 1 from 2022-06-24T15:39:58.677.524.825 to 2022-06-24T15:39:58.698.332.825 (XO: -333.000000175 - -332.979192175)
   Min TM value:-187 at an offset of 3892.675 usec -> 2022-06-24T15:39:58.681.417.500 (XO: -332.996107500)
   Max TM value:171 at an offset of 3892.413 usec -> 2022-06-24T15:39:58.681.417.237 (XO: -332.996107763)
   Max dTM/dt [1/us]:1.84e+03 at an offset of 4037.037 usec -> 2022-06-24T15:39:58.681.561.862 (XO: -332.995963138)
   Min dTM/dt [1/us]:-1.92e+03 at an offset of 3892.537 usec -> 2022-06-24T15:39:58.681.417.362 (XO: -332.996107638)
   Med: -4.00000   Ave: -4.4727088   Std: 6.6556858

 - Event number: 2 from 2022-06-24T15:40:00.699.375.825 to 2022-06-24T15:40:00.737.523.825 (XO: -333.000000175 - -332.961852175)
   Min TM value:-224 at an offset of 22343.463 usec -> 2022-06-24T15:40:00.721.719.287 (XO: -332.977656713)
   Max TM value:210 at an offset of 22343.213 usec -> 2022-06-24T15:40:00.721.719.037 (XO: -332.977656963)
   Max dTM/dt [1/us]:2.04e+03 at an offset of 22230.025 usec -> 2022-06-24T15:40:00.721.605.850 (XO: -332.977770150)
   Min dTM/dt [1/us]:-2.16e+03 at an offset of 22343.325 usec -> 2022-06-24T15:40:00.721.719.150 (XO: -332.977656850)
   Med: -4.00000   Ave: -4.3959021   Std: 7.6016038

 - Event number: 3 from 2022-06-24T15:40:02.197.558.825 to 2022-06-24T15:40:02.259.982.825 (XO: -333.000000175 - -332.937576175)
   Min TM value:-259 at an offset of 48576.137 usec -> 2022-06-24T15:40:02.246.134.962 (XO: -332.951424038)
   Max TM value:229 at an offset of 18560.662 usec -> 2022-06-24T15:40:02.216.119.487 (XO: -332.981439513)
   Max dTM/dt [1/us]:2.21e+03 at an offset of 18560.538 usec -> 2022-06-24T15:40:02.216.119.362 (XO: -332.981439638)
   Min dTM/dt [1/us]:-2.26e+03 at an offset of 8518.450 usec -> 2022-06-24T15:40:02.206.077.275 (XO: -332.991481725)
   Med: -4.00000   Ave: -4.3972499   Std: 7.6480875
