-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Fri Jan 12 03:13:27 2024 UTC
-- File 20230725_012754_1229.dat, 3180  packets found.
APID:
      1229 (EW) in 3180 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 3180 packets (all packets)
Total number of packets: 
      36720 in 3180 packets (all packets)
Packet No from 1 to 3180
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 28.182705 to 50.412655
-each separately from 28s to 50s and from 182705us to 412655us.
   Differences in neigboring packets: 
      0.000000 in 3178 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -22.229950 in 1 packets: 2040
MIU packet time from 2023-07-25T01:28:25.182.705.000 to 2023-07-25T01:28:47.412.655.000
   Differences in neigboring packets: 
      0.000000 in 3178 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -22.229950 in 1 packets: 2040
MIU orbit number: 
      60000 in 3180 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 3180 packets (all packets)
MIU orbit information / number of events: 
      0 in 3180 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 3180 packets (all packets)
Instrument anomalies: 
      0 (OK) in 3180 packets (all packets)
FPGA configuration version: 
      211 in 3180 packets (all packets)
10 MHz counter at the last 1Hz pulse from 29.6889047 to 51.6888343
   Differences in neigboring packets: 
      0.0000000 in 3178 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -21.9999296 in 1 packets: 2040
Temperature FPGA: 
      FD -> 58.9 degC in 3180 packets (all packets)
Temperature XO: 
      C7 -> 46.8 degC in 3180 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 3180 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 3180 packets (all packets)
Number of external events: 
      3 in 2040 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 1140 packets: 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, ...
Number of generated alerts: 
      3 in 2040 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 1140 packets: 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, ...
Survey memory error: 
      0 in 3180 packets (all packets)
Event memory error: 
      0 in 3180 packets (all packets)
Configuration error: 
      0 in 3180 packets (all packets)
SDRAM CRC error: 
      0 in 3180 packets (all packets)
Radio gain: 
      0 in 3180 packets (all packets)
Radio bandwidth: 
      0 in 3180 packets (all packets)
Digital gain: 
      0 in 3180 packets (all packets)
Analog gain: 
      0 in 3180 packets (all packets)

EVENT DATA READER
-- File 20230725_012754_1229.dat, 15 EW pages found. Extra packets: 120.
   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 2040 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 1020 packets: 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 29.8161227 to 52.1222817
      Difference between the neighboring packets: 
      0.0000170 in 3058 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -22.3061590 in 1 packets: 2040
   Memory page number from 0 to 14
      Difference between the neighboring packets: 
      0 in 3045 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 14 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856
   Event page number from 1 to 22
      Difference between the neighboring packets: 
      0 in 3045 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 13 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2244, 2448, 2652, 2856
      -21 in 1 packets: 2040
   MIU event flag 
      1 in 3060 packets (all packets)
   Time triggered event flag 
      0 in 3060 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: 2023-07-25T01:28:25.127.216.653
   Min EW header abs. time found among all events            : 2023-07-25T01:28:25.182.705.000
   Max EW event (1st sample) abs. time found among all events: 2023-07-25T01:28:47.357.166.648
   Max EW header abs. time found among all events            : 2023-07-25T01:28:47.412.655.000
   TM values from -230 to 190 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: 1020
    Page no. 1:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      13 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      14 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 5  ordered packets: 1020
   TM values from -223 to 190 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=28 C1MHz=0.182705
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 1019 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: 29.8161227
   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): 2023-07-25T01:28:25.182.705.000
   Event 1st sample abs. time : 2023-07-25T01:28:25.127.216.653)
   --- Rel. time correction for 1 points based on 44 XO calibration points at 1Hz counter from 0 to 43
   --- First point: 1Hz counter = 28, 32bit 10MHz counter = 29.816122700 corrected by 40bit 10MHz counter of 29.688904700 obtained at 1Hz counter of 28. Result: 28.127218394
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              28.127218219
   Event data descriptor XO time (reconstructed seconds from XP start)    :              28.127218394
   Sampling frequency correction factor for this event:     0.999996900

 Event no. 3 total number of packets: 2040
    Page no. 13:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 20:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 21:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 22:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 10  ordered packets: 2040
   TM values from -230 to 185 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=50 C1MHz=0.412655
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 2039 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: 52.0876187
   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): 2023-07-25T01:28:47.412.655.000
   Event 1st sample abs. time : 2023-07-25T01:28:47.357.166.648)
   --- Rel. time correction for 1 points based on 44 XO calibration points at 1Hz counter from 0 to 43
   --- First point: 1Hz counter = 50, 32bit 10MHz counter = 52.087618700 corrected by 40bit 10MHz counter of 44.688856700 obtained at 1Hz counter of 43. Result: 50.398785676
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              50.398785501
   Event data descriptor XO time (reconstructed seconds from XP start)    :              50.398785676
   Sampling frequency correction factor for this event:     0.999996800
--
Extremes in separate events:

 - Event number: 1 --EMPTY-- 

 - Event number: 2 from 2023-07-25T01:28:25.127.216.653 to 2023-07-25T01:28:25.144.556.706 (XO: 28.127218219 - 28.144558273)
   Min TM value:-223 at an offset of 14964.221 usec -> 2023-07-25T01:28:25.142.180.874 (XO: 28.142182441)
   Max TM value:190 at an offset of 14918.659 usec -> 2023-07-25T01:28:25.142.135.311 (XO: 28.142136878)
   Max dTM/dt [1/us]:1.68e+03 at an offset of 15081.059 usec -> 2023-07-25T01:28:25.142.297.712 (XO: 28.142299279)
   Min dTM/dt [1/us]:-1.94e+03 at an offset of 15006.684 usec -> 2023-07-25T01:28:25.142.223.337 (XO: 28.142224903)
   Med: -4.00000   Ave: -4.4055486   Std: 10.387967

 - Event number: 3 from 2023-07-25T01:28:47.357.166.648 to 2023-07-25T01:28:47.391.846.758 (XO: 50.398785501 - 50.433465612)
   Min TM value:-230 at an offset of 8011.813 usec -> 2023-07-25T01:28:47.365.178.461 (XO: 50.406797314)
   Max TM value:185 at an offset of 8014.338 usec -> 2023-07-25T01:28:47.365.180.986 (XO: 50.406799839)
   Max dTM/dt [1/us]:2.00e+03 at an offset of 8014.176 usec -> 2023-07-25T01:28:47.365.180.823 (XO: 50.406799677)
   Min dTM/dt [1/us]:-1.75e+03 at an offset of 17857.520 usec -> 2023-07-25T01:28:47.375.024.167 (XO: 50.416643021)
   Med: -4.00000   Ave: -4.4487078   Std: 7.5503388
