-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Wed Mar  8 11:56:00 2023 UTC
-- File 20220527_052302_1229.dat, 2563  packets found.
APID:
      1229 (EW) in 2563 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 2563 packets (all packets)
Total number of packets: 
      36720 in 2563 packets (all packets)
Packet No from 1 to 2563
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 18.815808 to 130.596789
-each separately from 18s to 130s and from 596789us to 815808us.
   Differences in neigboring packets: 
      0.000000 in 2561 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      111.780981 in 1 packets: 1836
MIU packet time from 2022-05-27T05:23:23.815.808.000 to 2022-05-27T05:25:15.596.789.000
   Differences in neigboring packets: 
      0.000000 in 2561 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      111.780981 in 1 packets: 1836
MIU orbit number: 
      60000 in 2563 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 2563 packets (all packets)
MIU orbit information / number of events: 
      0 in 2563 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 2563 packets (all packets)
Instrument anomalies: 
      0 (OK) in 2563 packets (all packets)
FPGA configuration version: 
      211 in 2563 packets (all packets)
10 MHz counter at the last 1Hz pulse from 19.7580745 to 131.7576705
   Differences in neigboring packets: 
      0.0000000 in 2561 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      111.9995960 in 1 packets: 1836
Temperature FPGA: 
      01 -> 53.7 degC in 2563 packets (all packets)
Temperature XO: 
      C4 -> 42.0 degC in 2563 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 2563 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 2563 packets (all packets)
Number of external events: 
      2 in 1836 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 727 packets: 1837, 1838, 1839, 1840, 1841, 1842, 1843, 1844, 1845, 1846, 1847, 1848, 1849, 1850, 1851, 1852, 1853, 1854, ...
Number of generated alerts: 
      2 in 1836 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 727 packets: 1837, 1838, 1839, 1840, 1841, 1842, 1843, 1844, 1845, 1846, 1847, 1848, 1849, 1850, 1851, 1852, 1853, 1854, ...
Survey memory error: 
      0 in 2563 packets (all packets)
Event memory error: 
      0 in 2563 packets (all packets)
Configuration error: 
      0 in 2563 packets (all packets)
SDRAM CRC error: 
      0 in 2563 packets (all packets)
Radio gain: 
      0 in 2563 packets (all packets)
Radio bandwidth: 
      0 in 2563 packets (all packets)
Digital gain: 
      0 in 2563 packets (all packets)
Analog gain: 
      0 in 2563 packets (all packets)

EVENT DATA READER
-- File 20220527_052302_1229.dat, 12 EW pages found. Extra packets: 115.
   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
      2 in 1836 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 612 packets: 1837, 1838, 1839, 1840, 1841, 1842, 1843, 1844, 1845, 1846, 1847, 1848, 1849, 1850, 1851, 1852, 1853, 1854, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 20.6952644 to 132.4550154
      Difference between the neighboring packets: 
      0.0000170 in 2446 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      111.7181690 in 1 packets: 1836
   Memory page number from 0 to 11
      Difference between the neighboring packets: 
      0 in 2436 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 11 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244
   Event page number from 43 to 60
      Difference between the neighboring packets: 
      0 in 2436 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 10 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 2040, 2244
      -17 in 1 packets: 1836
   MIU event flag 
      1 in 2448 packets (all packets)
   Time triggered event flag 
      0 in 2448 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-05-27T05:23:23.760.319.626
   Min EW header abs. time found among all events            : 2022-05-27T05:23:23.815.808.000
   Max EW event (1st sample) abs. time found among all events: 2022-05-27T05:25:15.541.300.626
   Max EW header abs. time found among all events            : 2022-05-27T05:25:15.596.789.000
   TM values from -250 to 205 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: 1836
    Page no. 52:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 53:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 54:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 55:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 56:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 57:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 9  ordered packets: 1836
   TM values from -250 to 205 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=18 C1MHz=0.815808
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 1835 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: 20.6952644
   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-05-27T05:23:23.815.808.000
   Event 1st sample abs. time : 2022-05-27T05:23:23.760.319.626)
   --- Rel. time correction for 1 points based on 119 XO calibration points at 1Hz counter from 0 to 118
   --- First point: 1Hz counter = 18, 32bit 10MHz counter = 20.695264400 corrected by 40bit 10MHz counter of 19.758074500 obtained at 1Hz counter of 18. Result: 18.937193274
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              18.937193099
   Event data descriptor XO time (reconstructed seconds from XP start)    :              18.937193274
   Sampling frequency correction factor for this event:     0.999996400

 Event no. 3 total number of packets: 612
    Page no. 43:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 44:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 45:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 3  ordered packets: 612
   TM values from -223 to 178 median: -5.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=130 C1MHz=0.596789
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 611 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: 132.4446284
   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-05-27T05:25:15.596.789.000
   Event 1st sample abs. time : 2022-05-27T05:25:15.541.300.626)
   --- Rel. time correction for 1 points based on 119 XO calibration points at 1Hz counter from 0 to 118
   --- First point: 1Hz counter = 130, 32bit 10MHz counter = 132.444628400 corrected by 40bit 10MHz counter of 119.757713900 obtained at 1Hz counter of 118. Result: 130.686960173
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):             130.686959998
   Event data descriptor XO time (reconstructed seconds from XP start)    :             130.686960173
   Sampling frequency correction factor for this event:     0.999996400
--
Extremes in separate events:

 - Event number: 1 --EMPTY-- 

 - Event number: 2 from 2022-05-27T05:23:23.760.319.626 to 2022-05-27T05:23:23.791.531.738 (XO: 18.937193099 - 18.968405211)
   Min TM value:-250 at an offset of 17824.577 usec -> 2022-05-27T05:23:23.778.144.202 (XO: 18.955017676)
   Max TM value:205 at an offset of 27877.688 usec -> 2022-05-27T05:23:23.788.197.313 (XO: 18.965070787)
   Max dTM/dt [1/us]:2.19e+03 at an offset of 17824.677 usec -> 2022-05-27T05:23:23.778.144.302 (XO: 18.955017776)
   Min dTM/dt [1/us]:-1.94e+03 at an offset of 17839.489 usec -> 2022-05-27T05:23:23.778.159.115 (XO: 18.955032588)
   Med: -4.00000   Ave: -4.4453840   Std: 9.1068173

 - Event number: 3 from 2022-05-27T05:25:15.541.300.626 to 2022-05-27T05:25:15.551.704.663 (XO: 130.686959998 - 130.697364036)
   Min TM value:-223 at an offset of 6819.237 usec -> 2022-05-27T05:25:15.548.119.863 (XO: 130.693779235)
   Max TM value:178 at an offset of 6834.550 usec -> 2022-05-27T05:25:15.548.135.175 (XO: 130.693794548)
   Max dTM/dt [1/us]:1.88e+03 at an offset of 6834.375 usec -> 2022-05-27T05:25:15.548.135.000 (XO: 130.693794373)
   Min dTM/dt [1/us]:-1.83e+03 at an offset of 6850.050 usec -> 2022-05-27T05:25:15.548.150.675 (XO: 130.693810048)
   Med: -5.00000   Ave: -4.5573349   Std: 8.0612162
