-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Mon Jan  8 15:43:33 2024 UTC
-- File 20230721_084856_1229.dat, 2305  packets found.
APID:
      1229 (EW) in 2305 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 2305 packets (all packets)
Total number of packets: 
      32640 in 2305 packets (all packets)
Packet No from 1 to 2305
!!!ERROR: Maximum packet number must be = 32640
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 32640
Hz and MHz counters from 0.953771 to 8.534846
-each separately from 0s to 8s and from 534846us to 953771us.
   Differences in neigboring packets: 
      0.000000 in 2303 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.581075 in 1 packets: 2040
MIU packet time from 2023-07-21T08:48:59.953.771.000 to 2023-07-21T08:49:07.534.846.000
   Differences in neigboring packets: 
      0.000000 in 2303 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.581075 in 1 packets: 2040
MIU orbit number: 
      60000 in 2305 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 2305 packets (all packets)
MIU orbit information / number of events: 
      0 in 2305 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 2305 packets (all packets)
Instrument anomalies: 
      0 (OK) in 2305 packets (all packets)
FPGA configuration version: 
      211 in 2305 packets (all packets)
10 MHz counter at the last 1Hz pulse from 1.9195503 to 9.9195240
   Differences in neigboring packets: 
      0.0000000 in 2303 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.9999737 in 1 packets: 2040
Temperature FPGA: 
      FD -> 58.9 degC in 2040 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      FE -> 57.6 degC in 265 packets: 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, ...
Temperature XO: 
      C6 -> 45.2 degC in 2305 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 2305 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 2305 packets (all packets)
Number of external events: 
      2 in 2040 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 265 packets: 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, ...
Number of generated alerts: 
      2 in 2040 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 265 packets: 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, ...
Survey memory error: 
      0 in 2305 packets (all packets)
Event memory error: 
      0 in 2305 packets (all packets)
Configuration error: 
      0 in 2305 packets (all packets)
SDRAM CRC error: 
      0 in 2305 packets (all packets)
Radio gain: 
      0 in 2305 packets (all packets)
Radio bandwidth: 
      0 in 2305 packets (all packets)
Digital gain: 
      0 in 2305 packets (all packets)
Analog gain: 
      0 in 2305 packets (all packets)

EVENT DATA READER
-- File 20230721_084856_1229.dat, 11 EW pages found. Extra packets: 61.
   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 2
      2 in 2040 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 204 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 2.8178354 to 10.4335464
      Difference between the neighboring packets: 
      0.0000170 in 2242 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.6157110 in 1 packets: 2040
   Memory page number from 7 to 17
      Difference between the neighboring packets: 
      0 in 2233 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, 1836, 2040
   Event page number from 1 to 10
      Difference between the neighboring packets: 
      0 in 2233 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 9 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836
      -9 in 1 packets: 2040
   MIU event flag 
      1 in 2244 packets (all packets)
   Time triggered event flag 
      0 in 2244 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-21T08:48:59.898.282.825
   Min EW header abs. time found among all events            : 2023-07-21T08:48:59.953.771.000
   Max EW event (1st sample) abs. time found among all events: 2023-07-21T08:49:07.479.357.825
   Max EW header abs. time found among all events            : 2023-07-21T08:49:07.534.846.000
   TM values from -260 to 231 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. 1:  204 packets  -- OK;  memory page(s):
      17 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 1  ordered packets: 204
   TM values from -73 to 87 median: -5.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=0 C1MHz=0.953771
   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: 2.8178354
   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-21T08:48:59.953.771.000
   Event 1st sample abs. time : 2023-07-21T08:48:59.898.282.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. 2 total number of packets: 2040
    Page no. 1:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      13 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      14 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      15 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      16 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 10  ordered packets: 2040
   TM values from -260 to 231 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=8 C1MHz=0.534846
   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: 10.3988834
   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-21T08:49:07.534.846.000
   Event 1st sample abs. time : 2023-07-21T08:49:07.479.357.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 from 2023-07-21T08:48:59.898.282.825 to 2023-07-21T08:48:59.901.750.825 (XO: -333.000000175 - -332.996532175)
   Min TM value:-73 at an offset of 1323.275 usec -> 2023-07-21T08:48:59.899.606.100 (XO: -332.998676900)
   Max TM value:87 at an offset of 1731.562 usec -> 2023-07-21T08:48:59.900.014.387 (XO: -332.998268612)
   Max dTM/dt [1/us]:9.36e+02 at an offset of 2510.850 usec -> 2023-07-21T08:48:59.900.793.675 (XO: -332.997489325)
   Min dTM/dt [1/us]:-1.26e+03 at an offset of 1724.075 usec -> 2023-07-21T08:48:59.900.006.900 (XO: -332.998276100)
   Med: -5.00000   Ave: -4.5385777   Std: 3.1715200

 - Event number: 2 from 2023-07-21T08:49:07.479.357.825 to 2023-07-21T08:49:07.514.037.825 (XO: -333.000000175 - -332.965320175)
   Min TM value:-260 at an offset of 12901.800 usec -> 2023-07-21T08:49:07.492.259.625 (XO: -332.987098375)
   Max TM value:231 at an offset of 23108.462 usec -> 2023-07-21T08:49:07.502.466.287 (XO: -332.976891713)
   Max dTM/dt [1/us]:2.43e+03 at an offset of 33066.338 usec -> 2023-07-21T08:49:07.512.424.162 (XO: -332.966933838)
   Min dTM/dt [1/us]:-2.70e+03 at an offset of 23108.562 usec -> 2023-07-21T08:49:07.502.466.387 (XO: -332.976891613)
   Med: -4.00000   Ave: -4.4570051   Std: 6.5361893
