-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Tue Mar 14 00:21:12 2023 UTC
-- File 20220605_163524_1229.dat, 11767  packets found.
APID:
      1229 (EW) in 11767 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 11767 packets (all packets)
Total number of packets: 
      28560 in 11767 packets (all packets)
Packet No from 1 to 11767
!!!ERROR: Maximum packet number must be = 28560
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 28560
Hz and MHz counters from 183.162142 to 183.550558
-each separately from 183s to 183s and from 162142us to 550558us.
   Differences in neigboring packets: 
      0.000000 in 11764 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -0.388416 in 1 packets: 408
      0.069360 in 1 packets: 4488
MIU packet time from 2022-06-05T16:38:30.162.142.000 to 2022-06-05T16:38:30.550.558.000
   Differences in neigboring packets: 
      0.000000 in 11764 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -0.388416 in 1 packets: 408
      0.069360 in 1 packets: 4488
MIU orbit number: 
      60000 in 11767 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 11767 packets (all packets)
MIU orbit information / number of events: 
      0 in 11767 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 11767 packets (all packets)
Instrument anomalies: 
      0 (OK) in 11767 packets (all packets)
FPGA configuration version: 
      211 in 11767 packets (all packets)
10 MHz counter at the last 1Hz pulse from 184.4727713 to 184.4727713
   Differences in neigboring packets: 
      0.0000000 in 11766 packets (all packets)
Temperature FPGA: 
      FE -> 57.6 degC in 11767 packets (all packets)
Temperature XO: 
      C6 -> 45.2 degC in 11767 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 11767 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 11767 packets (all packets)
Number of external events: 
      3 in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 4080 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
      2 in 7279 packets: 4489, 4490, 4491, 4492, 4493, 4494, 4495, 4496, 4497, 4498, 4499, 4500, 4501, 4502, 4503, 4504, 4505, 4506, ...
Number of generated alerts: 
      4 in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 4080 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
      2 in 7279 packets: 4489, 4490, 4491, 4492, 4493, 4494, 4495, 4496, 4497, 4498, 4499, 4500, 4501, 4502, 4503, 4504, 4505, 4506, ...
Survey memory error: 
      0 in 11767 packets (all packets)
Event memory error: 
      0 in 11767 packets (all packets)
Configuration error: 
      0 in 11767 packets (all packets)
SDRAM CRC error: 
      0 in 11767 packets (all packets)
Radio gain: 
      0 in 11767 packets (all packets)
Radio bandwidth: 
      0 in 11767 packets (all packets)
Digital gain: 
      0 in 11767 packets (all packets)
Analog gain: 
      0 in 11767 packets (all packets)

EVENT DATA READER
-- File 20220605_163524_1229.dat, 57 EW pages found. Extra packets: 139.
   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 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 4080 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
      2 in 7140 packets: 4489, 4490, 4491, 4492, 4493, 4494, 4495, 4496, 4497, 4498, 4499, 4500, 4501, 4502, 4503, 4504, 4505, 4506, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 184.5794267 to 185.1759057
      Difference between the neighboring packets: 
      0.0000170 in 11626 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -0.5964790 in 1 packets: 408
   Memory page number from 0 to 122
      Difference between the neighboring packets: 
      0 in 11571 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 55 packets: 204, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876, ...
      67 in 1 packets: 408
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 11571 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 54 packets: 204, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876, ...
      -59 in 1 packets: 408
      -19 in 1 packets: 4488
   MIU event flag 
      1 in 11628 packets (all packets)
   Time triggered event flag 
      0 in 11628 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-05T16:38:30.106.653.637
   Min EW header abs. time found among all events            : 2022-06-05T16:38:30.162.142.000
   Max EW event (1st sample) abs. time found among all events: 2022-06-05T16:38:30.495.069.637
   Max EW header abs. time found among all events            : 2022-06-05T16:38:30.550.558.000
   TM values from -358 to 343 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 4080
    Page no. 1:  204 packets  -- OK;  memory page(s):
      68 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      69 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      70 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      71 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      72 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      73 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      74 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      75 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      76 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      77 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      78 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      79 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      80 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      81 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      82 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      83 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      84 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      85 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      86 in 204 packets (all packets)  --OK-- 
    Page no. 20:  204 packets  -- OK;  memory page(s):
      87 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 20  ordered packets: 4080
   TM values from -353 to 324 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=183 C1MHz=0.162142
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 4079 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: 184.5794267
   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-05T16:38:30.162.142.000
   Event 1st sample abs. time : 2022-06-05T16:38:30.106.653.637)
   --- Rel. time correction for 1 points based on 179 XO calibration points at 1Hz counter from 0 to 178
   --- First point: 1Hz counter = 183, 32bit 10MHz counter = 184.579426700 corrected by 40bit 10MHz counter of 179.472788100 obtained at 1Hz counter of 178. Result: 183.106655963
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):             183.106655788
   Event data descriptor XO time (reconstructed seconds from XP start)    :             183.106655963
   Sampling frequency correction factor for this event:     0.999996600

 Event no. 2 total number of packets: 7140
    Page no. 1:  204 packets  -- OK;  memory page(s):
      88 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      89 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      90 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      91 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      92 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      93 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      94 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      95 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      96 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      97 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      98 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      99 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      100 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      101 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      102 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      103 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      104 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      105 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      106 in 204 packets (all packets)  --OK-- 
    Page no. 20:  204 packets  -- OK;  memory page(s):
      107 in 204 packets (all packets)  --OK-- 
    Page no. 21:  204 packets  -- OK;  memory page(s):
      108 in 204 packets (all packets)  --OK-- 
    Page no. 22:  204 packets  -- OK;  memory page(s):
      109 in 204 packets (all packets)  --OK-- 
    Page no. 23:  204 packets  -- OK;  memory page(s):
      110 in 204 packets (all packets)  --OK-- 
    Page no. 24:  204 packets  -- OK;  memory page(s):
      111 in 204 packets (all packets)  --OK-- 
    Page no. 25:  204 packets  -- OK;  memory page(s):
      112 in 204 packets (all packets)  --OK-- 
    Page no. 26:  204 packets  -- OK;  memory page(s):
      113 in 204 packets (all packets)  --OK-- 
    Page no. 27:  204 packets  -- OK;  memory page(s):
      114 in 204 packets (all packets)  --OK-- 
    Page no. 28:  204 packets  -- OK;  memory page(s):
      115 in 204 packets (all packets)  --OK-- 
    Page no. 29:  204 packets  -- OK;  memory page(s):
      116 in 204 packets (all packets)  --OK-- 
    Page no. 30:  204 packets  -- OK;  memory page(s):
      117 in 204 packets (all packets)  --OK-- 
    Page no. 31:  204 packets  -- OK;  memory page(s):
      118 in 204 packets (all packets)  --OK-- 
    Page no. 32:  204 packets  -- OK;  memory page(s):
      119 in 204 packets (all packets)  --OK-- 
    Page no. 33:  204 packets  -- OK;  memory page(s):
      120 in 204 packets (all packets)  --OK-- 
    Page no. 34:  204 packets  -- OK;  memory page(s):
      121 in 204 packets (all packets)  --OK-- 
    Page no. 35:  204 packets  -- OK;  memory page(s):
      122 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 35  ordered packets: 7140
   TM values from -358 to 343 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=183 C1MHz=0.231502
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 7139 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: 184.6487867
   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-05T16:38:30.231.502.000
   Event 1st sample abs. time : 2022-06-05T16:38:30.176.013.637)
   --- Rel. time correction for 1 points based on 179 XO calibration points at 1Hz counter from 0 to 178
   --- First point: 1Hz counter = 183, 32bit 10MHz counter = 184.648786700 corrected by 40bit 10MHz counter of 179.472788100 obtained at 1Hz counter of 178. Result: 183.176016198
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):             183.176016023
   Event data descriptor XO time (reconstructed seconds from XP start)    :             183.176016198
   Sampling frequency correction factor for this event:     0.999996600

 Event no. 3 total number of packets: 408
    Page no. 59:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 2  ordered packets: 408
   TM values from -298 to 264 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=183 C1MHz=0.550558
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 407 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: 185.1689867
   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-05T16:38:30.550.558.000
   Event 1st sample abs. time : 2022-06-05T16:38:30.495.069.637)
   --- Rel. time correction for 1 points based on 179 XO calibration points at 1Hz counter from 0 to 178
   --- First point: 1Hz counter = 183, 32bit 10MHz counter = 185.168986700 corrected by 40bit 10MHz counter of 179.472788100 obtained at 1Hz counter of 178. Result: 183.696217967
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):             183.696217792
   Event data descriptor XO time (reconstructed seconds from XP start)    :             183.696217967
   Sampling frequency correction factor for this event:     0.999996600
--
Extremes in separate events:

 - Event number: 1 from 2022-06-05T16:38:30.106.653.637 to 2022-06-05T16:38:30.176.013.872 (XO: 183.106655788 - 183.176016023)
   Min TM value:-353 at an offset of 51034.061 usec -> 2022-06-05T16:38:30.157.687.698 (XO: 183.157689849)
   Max TM value:324 at an offset of 1055.829 usec -> 2022-06-05T16:38:30.107.709.465 (XO: 183.107711616)
   Max dTM/dt [1/us]:2.84e+03 at an offset of 40920.852 usec -> 2022-06-05T16:38:30.147.574.488 (XO: 183.147576639)
   Min dTM/dt [1/us]:-2.90e+03 at an offset of 41001.602 usec -> 2022-06-05T16:38:30.147.655.238 (XO: 183.147657390)
   Med: -4.00000   Ave: -4.4230592   Std: 58.673477

 - Event number: 2 from 2022-06-05T16:38:30.176.013.637 to 2022-06-05T16:38:30.297.394.049 (XO: 183.176016023 - 183.297396436)
   Min TM value:-358 at an offset of 101518.933 usec -> 2022-06-05T16:38:30.277.532.569 (XO: 183.277534956)
   Max TM value:343 at an offset of 101516.945 usec -> 2022-06-05T16:38:30.277.530.582 (XO: 183.277532969)
   Max dTM/dt [1/us]:2.90e+03 at an offset of 91559.049 usec -> 2022-06-05T16:38:30.267.572.685 (XO: 183.267575072)
   Min dTM/dt [1/us]:-3.00e+03 at an offset of 71608.118 usec -> 2022-06-05T16:38:30.247.621.755 (XO: 183.247624142)
   Med: -4.00000   Ave: -4.3791511   Std: 59.138684

 - Event number: 3 from 2022-06-05T16:38:30.495.069.637 to 2022-06-05T16:38:30.502.005.660 (XO: 183.696217792 - 183.703153816)
   Min TM value:-298 at an offset of 1323.267 usec -> 2022-06-05T16:38:30.496.392.903 (XO: 183.697541059)
   Max TM value:264 at an offset of 1327.892 usec -> 2022-06-05T16:38:30.496.397.529 (XO: 183.697545684)
   Max dTM/dt [1/us]:2.81e+03 at an offset of 1325.542 usec -> 2022-06-05T16:38:30.496.395.179 (XO: 183.697543334)
   Min dTM/dt [1/us]:-2.47e+03 at an offset of 1323.154 usec -> 2022-06-05T16:38:30.496.392.791 (XO: 183.697540947)
   Med: -4.00000   Ave: -4.4662864   Std: 58.188194
