-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Thu Jan 11 23:28:57 2024 UTC
-- File 20230724_020827_1229.dat, 3425  packets found.
APID:
      1229 (EW) in 3425 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 3425 packets (all packets)
Total number of packets: 
      36720 in 3425 packets (all packets)
Packet No from 1 to 3425
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 6.550324 to 8.475071
-each separately from 6s to 8s and from 475071us to 550324us.
   Differences in neigboring packets: 
      0.000000 in 3423 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -1.924747 in 1 packets: 2040
MIU packet time from 2023-07-24T02:08:36.550.324.000 to 2023-07-24T02:08:38.475.071.000
   Differences in neigboring packets: 
      0.000000 in 3423 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -1.924747 in 1 packets: 2040
MIU orbit number: 
      60000 in 3425 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 3425 packets (all packets)
MIU orbit information / number of events: 
      0 in 3425 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 3425 packets (all packets)
Instrument anomalies: 
      0 (OK) in 3425 packets (all packets)
FPGA configuration version: 
      211 in 3425 packets (all packets)
10 MHz counter at the last 1Hz pulse from 7.3719576 to 9.3719512
   Differences in neigboring packets: 
      0.0000000 in 3423 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -1.9999936 in 1 packets: 2040
Temperature FPGA: 
      FF -> 56.3 degC in 3425 packets (all packets)
Temperature XO: 
      C6 -> 45.2 degC in 3425 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 3425 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 3425 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 1385 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 1385 packets: 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, ...
Survey memory error: 
      0 in 3425 packets (all packets)
Event memory error: 
      0 in 3425 packets (all packets)
Configuration error: 
      0 in 3425 packets (all packets)
SDRAM CRC error: 
      0 in 3425 packets (all packets)
Radio gain: 
      0 in 3425 packets (all packets)
Radio bandwidth: 
      0 in 3425 packets (all packets)
Digital gain: 
      0 in 3425 packets (all packets)
Analog gain: 
      0 in 3425 packets (all packets)

EVENT DATA READER
-- File 20230724_020827_1229.dat, 16 EW pages found. Extra packets: 161.
   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 1224 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 7.8667958 to 9.9995988
      Difference between the neighboring packets: 
      0.0000170 in 3262 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -2.1328030 in 1 packets: 2040
   Memory page number from 0 to 50
      Difference between the neighboring packets: 
      0 in 3248 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, 2244, 2448, 2652, 2856, 3060
      36 in 1 packets: 2040
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 3248 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, 2244, 2448, 2652, 2856, 3060
      -59 in 1 packets: 2040
   MIU event flag 
      1 in 3264 packets (all packets)
   Time triggered event flag 
      0 in 3264 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-24T02:08:36.494.835.825
   Min EW header abs. time found among all events            : 2023-07-24T02:08:36.550.324.000
   Max EW event (1st sample) abs. time found among all events: 2023-07-24T02:08:38.419.582.825
   Max EW header abs. time found among all events            : 2023-07-24T02:08:38.475.071.000
   TM values from -301 to 301 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: 1224
    Page no. 1:  204 packets  -- OK;  memory page(s):
      45 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      46 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      47 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      48 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      49 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      50 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 6  ordered packets: 1224
   TM values from -301 to 301 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=6 C1MHz=0.550324
   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: 7.8667958
   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-24T02:08:36.550.324.000
   Event 1st sample abs. time : 2023-07-24T02:08:36.494.835.825)
   --- Rel. time correction failed for 1 points and 0 XO calibration points.
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):            -333.000000175
   Event data descriptor XO time (reconstructed seconds from XP start)    :            -333.000000000
   Sampling frequency correction factor for this event:     1.000000000

 Event no. 3 total number of packets: 2040
    Page no. 51:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 52:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 53:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 54:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 55:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 56:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 57:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 10  ordered packets: 2040
   TM values from -278 to 200 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=8 C1MHz=0.475071
   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: 9.9649358
   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-24T02:08:38.475.071.000
   Event 1st sample abs. time : 2023-07-24T02:08:38.419.582.825)
   --- Rel. time correction failed for 1 points and 0 XO calibration points.
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):            -333.000000175
   Event data descriptor XO time (reconstructed seconds from XP start)    :            -333.000000000
   Sampling frequency correction factor for this event:     1.000000000
--
Extremes in separate events:

 - Event number: 1 --EMPTY-- 

 - Event number: 2 from 2023-07-24T02:08:36.494.835.825 to 2023-07-24T02:08:36.515.643.825 (XO: -333.000000175 - -332.979192175)
   Min TM value:-301 at an offset of 14479.413 usec -> 2023-07-24T02:08:36.509.315.237 (XO: -332.985520763)
   Max TM value:301 at an offset of 18714.000 usec -> 2023-07-24T02:08:36.513.549.825 (XO: -332.981286175)
   Max dTM/dt [1/us]:5.36e+03 at an offset of 14479.462 usec -> 2023-07-24T02:08:36.509.315.287 (XO: -332.985520713)
   Min dTM/dt [1/us]:-4.20e+03 at an offset of 18714.075 usec -> 2023-07-24T02:08:36.513.549.900 (XO: -332.981286100)
   Med: -4.00000   Ave: -4.4885230   Std: 9.0093036

 - Event number: 3 from 2023-07-24T02:08:38.419.582.825 to 2023-07-24T02:08:38.454.262.825 (XO: -333.000000175 - -332.965320175)
   Min TM value:-278 at an offset of 19933.350 usec -> 2023-07-24T02:08:38.439.516.175 (XO: -332.980066825)
   Max TM value:200 at an offset of 30116.938 usec -> 2023-07-24T02:08:38.449.699.762 (XO: -332.969883238)
   Max dTM/dt [1/us]:2.11e+03 at an offset of 19931.225 usec -> 2023-07-24T02:08:38.439.514.050 (XO: -332.980068950)
   Min dTM/dt [1/us]:-2.17e+03 at an offset of 9992.150 usec -> 2023-07-24T02:08:38.429.574.975 (XO: -332.990008025)
   Med: -4.00000   Ave: -4.4769579   Std: 7.2575211
