-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Mon Mar 13 18:20:33 2023 UTC
-- File 20220603_140203_1229.dat, 1930  packets found.
APID:
      1229 (EW) in 1930 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 1930 packets (all packets)
Total number of packets: 
      36720 in 1930 packets (all packets)
Packet No from 1 to 1930
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 67.279436 to 180.620991
-each separately from 67s to 180s and from 279436us to 620991us.
   Differences in neigboring packets: 
      0.000000 in 1928 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -113.341555 in 1 packets: 408
MIU packet time from 2022-06-03T14:03:13.279.436.000 to 2022-06-03T14:05:06.620.991.000
   Differences in neigboring packets: 
      0.000000 in 1928 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -113.341555 in 1 packets: 408
MIU orbit number: 
      60000 in 1930 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 1930 packets (all packets)
MIU orbit information / number of events: 
      0 in 1930 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 1930 packets (all packets)
Instrument anomalies: 
      0 (OK) in 1930 packets (all packets)
FPGA configuration version: 
      211 in 1930 packets (all packets)
10 MHz counter at the last 1Hz pulse from 69.2522089 to 182.2518291
   Differences in neigboring packets: 
      0.0000000 in 1928 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -112.9996202 in 1 packets: 408
Temperature FPGA: 
      FF -> 56.3 degC in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      00 -> 55.0 degC in 1522 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
Temperature XO: 
      C5 -> 43.6 degC in 1930 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 1930 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 1930 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, ...
      2 in 1522 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
Number of generated alerts: 
      3 in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 1522 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
Survey memory error: 
      0 in 1930 packets (all packets)
Event memory error: 
      0 in 1930 packets (all packets)
Configuration error: 
      0 in 1930 packets (all packets)
SDRAM CRC error: 
      0 in 1930 packets (all packets)
Radio gain: 
      0 in 1930 packets (all packets)
Radio bandwidth: 
      0 in 1930 packets (all packets)
Digital gain: 
      0 in 1930 packets (all packets)
Analog gain: 
      0 in 1930 packets (all packets)

EVENT DATA READER
-- File 20220603_140203_1229.dat, 9 EW pages found. Extra packets: 94.
   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 2 to 3
      3 in 408 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 1428 packets: 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 69.4761580 to 183.0253970
      Difference between the neighboring packets: 
      0.0000170 in 1834 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -113.5492390 in 1 packets: 408
   Memory page number from 0 to 12
      Difference between the neighboring packets: 
      0 in 1827 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 7 packets: 204, 612, 816, 1020, 1224, 1428, 1632
      5 in 1 packets: 408
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 1827 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 7 packets: 204, 612, 816, 1020, 1224, 1428, 1632
      -59 in 1 packets: 408
   MIU event flag 
      1 in 1836 packets (all packets)
   Time triggered event flag 
      0 in 1836 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-03T14:03:13.223.947.642
   Min EW header abs. time found among all events            : 2022-06-03T14:03:13.279.436.000
   Max EW event (1st sample) abs. time found among all events: 2022-06-03T14:05:06.565.502.637
   Max EW header abs. time found among all events            : 2022-06-03T14:05:06.620.991.000
   TM values from -246 to 211 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 0
   No packets in this event  -- NOT OK -- 

 Event no. 2 total number of packets: 1428
    Page no. 1:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 7  ordered packets: 1428
   TM values from -246 to 211 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=67 C1MHz=0.279436
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 1427 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: 69.4761580
   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-03T14:03:13.279.436.000
   Event 1st sample abs. time : 2022-06-03T14:03:13.223.947.642)
   --- Rel. time correction for 1 points based on 179 XO calibration points at 1Hz counter from 0 to 178
   --- First point: 1Hz counter = 67, 32bit 10MHz counter = 69.476158000 corrected by 40bit 10MHz counter of 69.252208900 obtained at 1Hz counter of 67. Result: 67.223949839
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              67.223949664
   Event data descriptor XO time (reconstructed seconds from XP start)    :              67.223949839
   Sampling frequency correction factor for this event:     0.999996700

 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 -199 to 195 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=180 C1MHz=0.620991
   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: 183.0184780
   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-03T14:05:06.620.991.000
   Event 1st sample abs. time : 2022-06-03T14:05:06.565.502.637)
   --- Rel. time correction for 1 points based on 179 XO calibration points at 1Hz counter from 0 to 178
   --- First point: 1Hz counter = 180, 32bit 10MHz counter = 183.018478000 corrected by 40bit 10MHz counter of 180.251835800 obtained at 1Hz counter of 178. Result: 180.766651607
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):             180.766651432
   Event data descriptor XO time (reconstructed seconds from XP start)    :             180.766651607
   Sampling frequency correction factor for this event:     0.999996600
--
Extremes in separate events:

 - Event number: 1 --EMPTY-- 

 - Event number: 2 from 2022-06-03T14:03:13.223.947.642 to 2022-06-03T14:03:13.248.223.722 (XO: 67.223949664 - 67.248225744)
   Min TM value:-246 at an offset of 23195.264 usec -> 2022-06-03T14:03:13.247.142.906 (XO: 67.247144928)
   Max TM value:211 at an offset of 3185.798 usec -> 2022-06-03T14:03:13.227.133.440 (XO: 67.227135462)
   Max dTM/dt [1/us]:2.32e+03 at an offset of 3212.923 usec -> 2022-06-03T14:03:13.227.160.565 (XO: 67.227162587)
   Min dTM/dt [1/us]:-2.19e+03 at an offset of 23195.114 usec -> 2022-06-03T14:03:13.247.142.756 (XO: 67.247144778)
   Med: -4.00000   Ave: -4.2894762   Std: 8.7143250

 - Event number: 3 from 2022-06-03T14:05:06.565.502.637 to 2022-06-03T14:05:06.572.438.660 (XO: 180.766651432 - 180.773587455)
   Min TM value:-199 at an offset of 1170.516 usec -> 2022-06-03T14:05:06.566.673.153 (XO: 180.767821948)
   Max TM value:195 at an offset of 1073.016 usec -> 2022-06-03T14:05:06.566.575.653 (XO: 180.767724448)
   Max dTM/dt [1/us]:1.76e+03 at an offset of 1072.854 usec -> 2022-06-03T14:05:06.566.575.490 (XO: 180.767724285)
   Min dTM/dt [1/us]:-1.62e+03 at an offset of 1211.642 usec -> 2022-06-03T14:05:06.566.714.278 (XO: 180.767863073)
   Med: -4.00000   Ave: -4.3597553   Std: 9.2081975
