-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Tue Mar 21 17:50:59 2023 UTC
-- File 20221016_084305_1229.dat, 5431  packets found.
APID:
      1229 (EW) in 5431 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 5431 packets (all packets)
Total number of packets: 
      36720 in 5431 packets (all packets)
Packet No from 1 to 5431
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 24.021618 to 72.698638
-each separately from 24s to 72s and from 21618us to 698638us.
   Differences in neigboring packets: 
      0.000000 in 5428 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      48.677020 in 1 packets: 204
      -11.191276 in 1 packets: 4080
MIU packet time from 2022-10-16T08:43:32.021.618.000 to 2022-10-16T08:44:20.698.638.000
   Differences in neigboring packets: 
      0.000000 in 5428 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      48.677020 in 1 packets: 204
      -11.191276 in 1 packets: 4080
MIU orbit number: 
      60000 in 5431 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 5431 packets (all packets)
MIU orbit information / number of events: 
      0 in 5431 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 5431 packets (all packets)
Instrument anomalies: 
      0 (OK) in 5431 packets (all packets)
FPGA configuration version: 
      211 in 5431 packets (all packets)
10 MHz counter at the last 1Hz pulse from 25.6988002 to 73.6986283
   Differences in neigboring packets: 
      0.0000000 in 5428 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      47.9998281 in 1 packets: 204
      -10.9999605 in 1 packets: 4080
Temperature FPGA: 
      04 -> 49.8 degC in 4080 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      05 -> 48.5 degC in 1351 packets: 4081, 4082, 4083, 4084, 4085, 4086, 4087, 4088, 4089, 4090, 4091, 4092, 4093, 4094, 4095, 4096, 4097, 4098, ...
Temperature XO: 
      C1 -> 37.2 degC in 5431 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 5431 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 5431 packets (all packets)
Number of external events: 
      1 in 204 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 3876 packets: 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, ...
      2 in 1351 packets: 4081, 4082, 4083, 4084, 4085, 4086, 4087, 4088, 4089, 4090, 4091, 4092, 4093, 4094, 4095, 4096, 4097, 4098, ...
Number of generated alerts: 
      1 in 204 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 3876 packets: 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, ...
      2 in 1351 packets: 4081, 4082, 4083, 4084, 4085, 4086, 4087, 4088, 4089, 4090, 4091, 4092, 4093, 4094, 4095, 4096, 4097, 4098, ...
Survey memory error: 
      0 in 5431 packets (all packets)
Event memory error: 
      0 in 5431 packets (all packets)
Configuration error: 
      0 in 5431 packets (all packets)
SDRAM CRC error: 
      0 in 5431 packets (all packets)
Radio gain: 
      0 in 5431 packets (all packets)
Radio bandwidth: 
      0 in 5431 packets (all packets)
Digital gain: 
      0 in 5431 packets (all packets)
Analog gain: 
      0 in 5431 packets (all packets)

EVENT DATA READER
-- File 20221016_084305_1229.dat, 26 EW pages found. Extra packets: 127.
   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
      1 in 204 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 3876 packets: 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, ...
      2 in 1224 packets: 4081, 4082, 4083, 4084, 4085, 4086, 4087, 4088, 4089, 4090, 4091, 4092, 4093, 4094, 4095, 4096, 4097, 4098, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 25.8695431 to 74.4076541
      Difference between the neighboring packets: 
      0.0000170 in 5301 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      48.4687850 in 1 packets: 204
      -11.2571110 in 1 packets: 4080
   Memory page number from 0 to 75
      Difference between the neighboring packets: 
      0 in 5278 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      51 in 1 packets: 204
      1 in 24 packets: 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876, ...
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 5278 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -59 in 1 packets: 204
      1 in 23 packets: 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876, ...
      -18 in 1 packets: 4080
   MIU event flag 
      1 in 5304 packets (all packets)
   Time triggered event flag 
      0 in 5304 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-10-16T08:43:31.966.129.626
   Min EW header abs. time found among all events            : 2022-10-16T08:43:32.021.618.000
   Max EW event (1st sample) abs. time found among all events: 2022-10-16T08:44:20.643.149.626
   Max EW header abs. time found among all events            : 2022-10-16T08:44:20.698.638.000
   TM values from -222 to 208 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 204
    Page no. 60:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 1  ordered packets: 204
   TM values from -22 to 13 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=24 C1MHz=0.021618
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 203 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: 25.8695431
   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-10-16T08:43:32.021.618.000
   Event 1st sample abs. time : 2022-10-16T08:43:31.966.129.626)
   --- Rel. time correction for 1 points based on 59 XO calibration points at 1Hz counter from 0 to 58
   --- First point: 1Hz counter = 24, 32bit 10MHz counter = 25.869543100 corrected by 40bit 10MHz counter of 25.698800200 obtained at 1Hz counter of 24. Result: 24.170743515
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              24.170743340
   Event data descriptor XO time (reconstructed seconds from XP start)    :              24.170743515
   Sampling frequency correction factor for this event:     0.999996400

 Event no. 2 total number of packets: 1224
    Page no. 1:  204 packets  -- OK;  memory page(s):
      70 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      71 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      72 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      73 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      74 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      75 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 6  ordered packets: 1224
   TM values from -222 to 169 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=61 C1MHz=0.507362
   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: 63.1505431
   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-10-16T08:44:09.507.362.000
   Event 1st sample abs. time : 2022-10-16T08:44:09.451.873.626)
   --- Rel. time correction for 1 points based on 59 XO calibration points at 1Hz counter from 0 to 58
   --- First point: 1Hz counter = 61, 32bit 10MHz counter = 63.150543100 corrected by 40bit 10MHz counter of 59.698678500 obtained at 1Hz counter of 58. Result: 61.451877027
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              61.451876852
   Event data descriptor XO time (reconstructed seconds from XP start)    :              61.451877027
   Sampling frequency correction factor for this event:     0.999996400

 Event no. 3 total number of packets: 3876
    Page no. 1:  204 packets  -- OK;  memory page(s):
      51 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      52 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      53 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      54 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      55 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      56 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      57 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      58 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      59 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      60 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      61 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      62 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      63 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      64 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      65 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      66 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      67 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      68 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      69 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 19  ordered packets: 3876
   TM values from -221 to 208 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=72 C1MHz=0.698638
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 3875 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: 74.3417791
   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-10-16T08:44:20.698.638.000
   Event 1st sample abs. time : 2022-10-16T08:44:20.643.149.626)
   --- Rel. time correction for 1 points based on 59 XO calibration points at 1Hz counter from 0 to 58
   --- First point: 1Hz counter = 72, 32bit 10MHz counter = 74.341779100 corrected by 40bit 10MHz counter of 59.698678500 obtained at 1Hz counter of 58. Result: 72.643153315
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              72.643153140
   Event data descriptor XO time (reconstructed seconds from XP start)    :              72.643153315
   Sampling frequency correction factor for this event:     0.999996400
--
Extremes in separate events:

 - Event number: 1 from 2022-10-16T08:43:31.966.129.626 to 2022-10-16T08:43:31.969.597.638 (XO: 24.170743340 - 24.174211352)
   Min TM value:-22 at an offset of 21.800 usec -> 2022-10-16T08:43:31.966.151.426 (XO: 24.170765140)
   Max TM value:13 at an offset of 702.253 usec -> 2022-10-16T08:43:31.966.831.878 (XO: 24.171445592)
   Max dTM/dt [1/us]:1.81e+02 at an offset of 1621.056 usec -> 2022-10-16T08:43:31.967.750.681 (XO: 24.172364396)
   Min dTM/dt [1/us]:-1.74e+02 at an offset of 1007.491 usec -> 2022-10-16T08:43:31.967.137.117 (XO: 24.171750831)
   Med: -4.00000   Ave: -4.3360582   Std: 4.2860460

 - Event number: 2 from 2022-10-16T08:44:09.451.873.626 to 2022-10-16T08:44:09.472.681.700 (XO: 61.451876852 - 61.472684927)
   Min TM value:-222 at an offset of 4690.092 usec -> 2022-10-16T08:44:09.456.563.717 (XO: 61.456566944)
   Max TM value:169 at an offset of 4689.792 usec -> 2022-10-16T08:44:09.456.563.417 (XO: 61.456566644)
   Max dTM/dt [1/us]:1.60e+03 at an offset of 4687.617 usec -> 2022-10-16T08:44:09.456.561.242 (XO: 61.456564469)
   Min dTM/dt [1/us]:-1.91e+03 at an offset of 4717.417 usec -> 2022-10-16T08:44:09.456.591.042 (XO: 61.456594269)
   Med: -4.00000   Ave: -4.3135086   Std: 5.3409501

 - Event number: 3 from 2022-10-16T08:44:20.643.149.626 to 2022-10-16T08:44:20.709.041.863 (XO: 72.643153140 - 72.709045378)
   Min TM value:-221 at an offset of 52787.728 usec -> 2022-10-16T08:44:20.695.937.353 (XO: 72.695940868)
   Max TM value:208 at an offset of 22833.207 usec -> 2022-10-16T08:44:20.665.982.833 (XO: 72.665986348)
   Max dTM/dt [1/us]:1.93e+03 at an offset of 62772.763 usec -> 2022-10-16T08:44:20.705.922.389 (XO: 72.705925904)
   Min dTM/dt [1/us]:-1.92e+03 at an offset of 52774.977 usec -> 2022-10-16T08:44:20.695.924.603 (XO: 72.695928118)
   Med: -4.00000   Ave: -4.3241803   Std: 5.2927399
