-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Tue Mar 21 10:02:26 2023 UTC
-- File 20220623_065223_1229.dat, 6729  packets found.
APID:
      1229 (EW) in 6729 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 6729 packets (all packets)
Total number of packets: 
      36720 in 6729 packets (all packets)
Packet No from 1 to 6729
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 16.432359 to 23.531383
-each separately from 16s to 23s and from 432359us to 531383us.
   Differences in neigboring packets: 
      0.000000 in 6727 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.099024 in 1 packets: 3876
MIU packet time from 2022-06-23T06:52:42.432.359.000 to 2022-06-23T06:52:49.531.383.000
   Differences in neigboring packets: 
      0.000000 in 6727 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.099024 in 1 packets: 3876
MIU orbit number: 
      60000 in 6729 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 6729 packets (all packets)
MIU orbit information / number of events: 
      0 in 6729 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 6729 packets (all packets)
Instrument anomalies: 
      0 (OK) in 6729 packets (all packets)
FPGA configuration version: 
      211 in 6729 packets (all packets)
10 MHz counter at the last 1Hz pulse from 17.6486618 to 24.6486346
   Differences in neigboring packets: 
      0.0000000 in 6727 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -6.9999728 in 1 packets: 3876
Temperature FPGA: 
      05 -> 48.5 degC in 3876 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      04 -> 49.8 degC in 2853 packets: 3877, 3878, 3879, 3880, 3881, 3882, 3883, 3884, 3885, 3886, 3887, 3888, 3889, 3890, 3891, 3892, 3893, 3894, ...
Temperature XO: 
      C1 -> 37.2 degC in 6729 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 6729 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 6729 packets (all packets)
Number of external events: 
      3 in 3876 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 2853 packets: 3877, 3878, 3879, 3880, 3881, 3882, 3883, 3884, 3885, 3886, 3887, 3888, 3889, 3890, 3891, 3892, 3893, 3894, ...
Number of generated alerts: 
      3 in 3876 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 2853 packets: 3877, 3878, 3879, 3880, 3881, 3882, 3883, 3884, 3885, 3886, 3887, 3888, 3889, 3890, 3891, 3892, 3893, 3894, ...
Survey memory error: 
      0 in 6729 packets (all packets)
Event memory error: 
      0 in 6729 packets (all packets)
Configuration error: 
      0 in 6729 packets (all packets)
SDRAM CRC error: 
      0 in 6729 packets (all packets)
Radio gain: 
      0 in 6729 packets (all packets)
Radio bandwidth: 
      0 in 6729 packets (all packets)
Digital gain: 
      0 in 6729 packets (all packets)
Analog gain: 
      0 in 6729 packets (all packets)

EVENT DATA READER
-- File 20220623_065223_1229.dat, 32 EW pages found. Extra packets: 201.
   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 3876 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 2652 packets: 3877, 3878, 3879, 3880, 3881, 3882, 3883, 3884, 3885, 3886, 3887, 3888, 3889, 3890, 3891, 3892, 3893, 3894, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 18.0255339 to 25.1904049
      Difference between the neighboring packets: 
      0.0000170 in 6526 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.1648710 in 1 packets: 3876
   Memory page number from 41 to 72
      Difference between the neighboring packets: 
      0 in 6496 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 31 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, ...
   Event page number from 1 to 19
      Difference between the neighboring packets: 
      0 in 6496 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 30 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, ...
      -18 in 1 packets: 3876
   MIU event flag 
      1 in 6528 packets (all packets)
   Time triggered event flag 
      0 in 6528 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-23T06:52:42.376.870.609
   Min EW header abs. time found among all events            : 2022-06-23T06:52:42.432.359.000
   Max EW event (1st sample) abs. time found among all events: 2022-06-23T06:52:49.475.894.609
   Max EW header abs. time found among all events            : 2022-06-23T06:52:49.531.383.000
   TM values from -283 to 226 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: 2652
    Page no. 1:  204 packets  -- OK;  memory page(s):
      60 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      61 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      62 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      63 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      64 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      65 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      66 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      67 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      68 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      69 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      70 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      71 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      72 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 13  ordered packets: 2652
   TM values from -230 to 226 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=16 C1MHz=0.432359
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 2651 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: 18.0255339
   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-23T06:52:42.432.359.000
   Event 1st sample abs. time : 2022-06-23T06:52:42.376.870.609)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 16, 32bit 10MHz counter = 18.025533900 corrected by 40bit 10MHz counter of 14.648673400 obtained at 1Hz counter of 13. Result: 16.376873670
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              16.376873495
   Event data descriptor XO time (reconstructed seconds from XP start)    :              16.376873670
   Sampling frequency correction factor for this event:     0.999996100

 Event no. 3 total number of packets: 3876
    Page no. 1:  204 packets  -- OK;  memory page(s):
      41 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      42 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      43 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      44 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      45 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      46 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      47 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      48 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      49 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      50 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      51 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      52 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      53 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      54 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      55 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      56 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      57 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      58 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      59 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 19  ordered packets: 3876
   TM values from -283 to 200 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=23 C1MHz=0.531383
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 3875 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: 25.1245299
   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-23T06:52:49.531.383.000
   Event 1st sample abs. time : 2022-06-23T06:52:49.475.894.609)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 23, 32bit 10MHz counter = 25.124529900 corrected by 40bit 10MHz counter of 14.648673400 obtained at 1Hz counter of 13. Result: 23.475897356
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              23.475897181
   Event data descriptor XO time (reconstructed seconds from XP start)    :              23.475897356
   Sampling frequency correction factor for this event:     0.999996100
--
Extremes in separate events:

 - Event number: 1 --EMPTY-- 

 - Event number: 2 from 2022-06-23T06:52:42.376.870.609 to 2022-06-23T06:52:42.421.954.784 (XO: 16.376873495 - 16.421957671)
   Min TM value:-230 at an offset of 12599.199 usec -> 2022-06-23T06:52:42.389.469.808 (XO: 16.389472694)
   Max TM value:226 at an offset of 12583.462 usec -> 2022-06-23T06:52:42.389.454.070 (XO: 16.389456956)
   Max dTM/dt [1/us]:1.81e+03 at an offset of 42569.404 usec -> 2022-06-23T06:52:42.419.440.012 (XO: 16.419442898)
   Min dTM/dt [1/us]:-2.45e+03 at an offset of 12583.562 usec -> 2022-06-23T06:52:42.389.454.170 (XO: 16.389457056)
   Med: -4.00000   Ave: -4.3821683   Std: 8.2891786

 - Event number: 3 from 2022-06-23T06:52:49.475.894.609 to 2022-06-23T06:52:49.541.786.865 (XO: 23.475897181 - 23.541789438)
   Min TM value:-283 at an offset of 54775.451 usec -> 2022-06-23T06:52:49.530.670.060 (XO: 23.530672632)
   Max TM value:200 at an offset of 4741.618 usec -> 2022-06-23T06:52:49.480.636.227 (XO: 23.480638799)
   Max dTM/dt [1/us]:2.31e+03 at an offset of 54775.564 usec -> 2022-06-23T06:52:49.530.670.172 (XO: 23.530672745)
   Min dTM/dt [1/us]:-2.28e+03 at an offset of 54773.064 usec -> 2022-06-23T06:52:49.530.667.672 (XO: 23.530670245)
   Med: -4.00000   Ave: -4.3408912   Std: 9.1606372
