-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Sat May 13 02:26:11 2023 UTC
-- File 20230512_235223_1229.dat, 7927  packets found.
APID:
      1229 (EW) in 7927 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 7927 packets (all packets)
Total number of packets: 
      23256 in 7927 packets (all packets)
Packet No from 1 to 7927
!!!ERROR: Maximum packet number must be = 23256
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 23256
Hz and MHz counters from 44.196525 to 44.293629
-each separately from 44s to 44s and from 196525us to 293629us.
   Differences in neigboring packets: 
      0.000000 in 7925 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      0.097104 in 1 packets: 5712
MIU packet time from 2023-05-12T23:53:10.196.525.000 to 2023-05-12T23:53:10.293.629.000
   Differences in neigboring packets: 
      0.000000 in 7925 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      0.097104 in 1 packets: 5712
MIU orbit number: 
      60000 in 7927 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 7927 packets (all packets)
MIU orbit information / number of events: 
      0 in 7927 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 7927 packets (all packets)
Instrument anomalies: 
      0 (OK) in 7927 packets (all packets)
FPGA configuration version: 
      211 in 7927 packets (all packets)
10 MHz counter at the last 1Hz pulse from 45.9119624 to 45.9119624
   Differences in neigboring packets: 
      0.0000000 in 7926 packets (all packets)
Temperature FPGA: 
      03 -> 51.1 degC in 7927 packets (all packets)
Temperature XO: 
      C1 -> 37.2 degC in 7927 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 7927 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 7927 packets (all packets)
Number of external events: 
      1 in 5712 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 2215 packets: 5713, 5714, 5715, 5716, 5717, 5718, 5719, 5720, 5721, 5722, 5723, 5724, 5725, 5726, 5727, 5728, 5729, 5730, ...
Number of generated alerts: 
      5 in 5712 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      8 in 2215 packets: 5713, 5714, 5715, 5716, 5717, 5718, 5719, 5720, 5721, 5722, 5723, 5724, 5725, 5726, 5727, 5728, 5729, 5730, ...
Survey memory error: 
      0 in 7927 packets (all packets)
Event memory error: 
      0 in 7927 packets (all packets)
Configuration error: 
      0 in 7927 packets (all packets)
SDRAM CRC error: 
      0 in 7927 packets (all packets)
Radio gain: 
      0 in 7927 packets (all packets)
Radio bandwidth: 
      0 in 7927 packets (all packets)
Digital gain: 
      0 in 7927 packets (all packets)
Analog gain: 
      0 in 7927 packets (all packets)

EVENT DATA READER
-- File 20230512_235223_1229.dat, 38 EW pages found. Extra packets: 175.
   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
      1 in 5712 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 2040 packets: 5713, 5714, 5715, 5716, 5717, 5718, 5719, 5720, 5721, 5722, 5723, 5724, 5725, 5726, 5727, 5728, 5729, 5730, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 46.0530003 to 46.1847673
      Difference between the neighboring packets: 
      0.0000170 in 7751 packets (all packets)
   Memory page number from 108 to 145
      Difference between the neighboring packets: 
      0 in 7714 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 37 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 28
      Difference between the neighboring packets: 
      0 in 7714 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 36 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, ...
      -27 in 1 packets: 5712
   MIU event flag 
      1 in 7752 packets (all packets)
   Time triggered event flag 
      0 in 7752 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-05-12T23:53:10.141.036.620
   Min EW header abs. time found among all events            : 2023-05-12T23:53:10.196.525.000
   Max EW event (1st sample) abs. time found among all events: 2023-05-12T23:53:10.238.140.620
   Max EW header abs. time found among all events            : 2023-05-12T23:53:10.293.629.000
   TM values from -527 to 834 median:-5.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 5712
    Page no. 1:  204 packets  -- OK;  memory page(s):
      108 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      109 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      110 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      111 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      112 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      113 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      114 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      115 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      116 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      117 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      118 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      119 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      120 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      121 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      122 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      123 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      124 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      125 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      126 in 204 packets (all packets)  --OK-- 
    Page no. 20:  204 packets  -- OK;  memory page(s):
      127 in 204 packets (all packets)  --OK-- 
    Page no. 21:  204 packets  -- OK;  memory page(s):
      128 in 204 packets (all packets)  --OK-- 
    Page no. 22:  204 packets  -- OK;  memory page(s):
      129 in 204 packets (all packets)  --OK-- 
    Page no. 23:  204 packets  -- OK;  memory page(s):
      130 in 204 packets (all packets)  --OK-- 
    Page no. 24:  204 packets  -- OK;  memory page(s):
      131 in 204 packets (all packets)  --OK-- 
    Page no. 25:  204 packets  -- OK;  memory page(s):
      132 in 204 packets (all packets)  --OK-- 
    Page no. 26:  204 packets  -- OK;  memory page(s):
      133 in 204 packets (all packets)  --OK-- 
    Page no. 27:  204 packets  -- OK;  memory page(s):
      134 in 204 packets (all packets)  --OK-- 
    Page no. 28:  204 packets  -- OK;  memory page(s):
      135 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 28  ordered packets: 5712
   TM values from -527 to 834 median: -5.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=44 C1MHz=0.196525
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 5711 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: 46.0530003
   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-05-12T23:53:10.196.525.000
   Event 1st sample abs. time : 2023-05-12T23:53:10.141.036.620)
   --- Rel. time correction for 1 points based on 29 XO calibration points at 1Hz counter from 0 to 28
   --- First point: 1Hz counter = 44, 32bit 10MHz counter = 46.053000300 corrected by 40bit 10MHz counter of 29.912021300 obtained at 1Hz counter of 28. Result: 44.141038722
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              44.141038547
   Event data descriptor XO time (reconstructed seconds from XP start)    :              44.141038722
   Sampling frequency correction factor for this event:     0.999996300

 Event no. 2 total number of packets: 2040
    Page no. 1:  204 packets  -- OK;  memory page(s):
      136 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      137 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      138 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      139 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      140 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      141 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      142 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      143 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      144 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      145 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 10  ordered packets: 2040
   TM values from -291 to 332 median: -5.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=44 C1MHz=0.293629
   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: 46.1501043
   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-05-12T23:53:10.293.629.000
   Event 1st sample abs. time : 2023-05-12T23:53:10.238.140.620)
   --- Rel. time correction for 1 points based on 29 XO calibration points at 1Hz counter from 0 to 28
   --- First point: 1Hz counter = 44, 32bit 10MHz counter = 46.150104300 corrected by 40bit 10MHz counter of 29.912021300 obtained at 1Hz counter of 28. Result: 44.238143081
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              44.238142906
   Event data descriptor XO time (reconstructed seconds from XP start)    :              44.238143081
   Sampling frequency correction factor for this event:     0.999996300
--
Extremes in separate events:

 - Event number: 1 from 2023-05-12T23:53:10.141.036.620 to 2023-05-12T23:53:10.238.140.979 (XO: 44.141038547 - 44.238142906)
   Min TM value:-527 at an offset of 52640.407 usec -> 2023-05-12T23:53:10.193.677.027 (XO: 44.193678954)
   Max TM value:834 at an offset of 51981.092 usec -> 2023-05-12T23:53:10.193.017.712 (XO: 44.193019639)
   Max dTM/dt [1/us]:6.06e+03 at an offset of 51981.042 usec -> 2023-05-12T23:53:10.193.017.662 (XO: 44.193019589)
   Min dTM/dt [1/us]:-6.59e+03 at an offset of 51981.155 usec -> 2023-05-12T23:53:10.193.017.774 (XO: 44.193019702)
   Med: -5.00000   Ave: -4.5300028   Std: 11.978457

 - Event number: 2 from 2023-05-12T23:53:10.238.140.620 to 2023-05-12T23:53:10.272.820.748 (XO: 44.238142906 - 44.272823034)
   Min TM value:-291 at an offset of 7568.866 usec -> 2023-05-12T23:53:10.245.709.485 (XO: 44.245711772)
   Max TM value:332 at an offset of 31339.841 usec -> 2023-05-12T23:53:10.269.480.460 (XO: 44.269482747)
   Max dTM/dt [1/us]:3.86e+03 at an offset of 7568.916 usec -> 2023-05-12T23:53:10.245.709.535 (XO: 44.245711822)
   Min dTM/dt [1/us]:-3.46e+03 at an offset of 31339.916 usec -> 2023-05-12T23:53:10.269.480.535 (XO: 44.269482822)
   Med: -5.00000   Ave: -4.5334137   Std: 9.9360883
