-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Mon Jan  8 19:13:49 2024 UTC
-- File 20230721_235926_1229.dat, 4130  packets found.
APID:
      1229 (EW) in 4130 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 4130 packets (all packets)
Total number of packets: 
      27948 in 4130 packets (all packets)
Packet No from 1 to 4130
!!!ERROR: Maximum packet number must be = 27948
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 27948
Hz and MHz counters from 5.497490 to 5.556446
-each separately from 5s to 5s and from 497490us to 556446us.
   Differences in neigboring packets: 
      0.000000 in 4127 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -0.058956 in 1 packets: 612
      0.058956 in 1 packets: 4080
MIU packet time from 2023-07-21T23:59:34.497.490.000 to 2023-07-21T23:59:34.556.446.000
   Differences in neigboring packets: 
      0.000000 in 4127 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -0.058956 in 1 packets: 612
      0.058956 in 1 packets: 4080
MIU orbit number: 
      60000 in 4130 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 4130 packets (all packets)
MIU orbit information / number of events: 
      0 in 4130 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 4130 packets (all packets)
Instrument anomalies: 
      0 (OK) in 4130 packets (all packets)
FPGA configuration version: 
      211 in 4130 packets (all packets)
10 MHz counter at the last 1Hz pulse from 6.3814090 to 6.3814090
   Differences in neigboring packets: 
      0.0000000 in 4129 packets (all packets)
Temperature FPGA: 
      FF -> 56.3 degC in 4130 packets (all packets)
Temperature XO: 
      C6 -> 45.2 degC in 4130 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 4130 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 4130 packets (all packets)
Number of external events: 
      3 in 662 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 3468 packets: 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, ...
Number of generated alerts: 
      3 in 662 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 3468 packets: 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, ...
Survey memory error: 
      0 in 4130 packets (all packets)
Event memory error: 
      0 in 4130 packets (all packets)
Configuration error: 
      0 in 4130 packets (all packets)
SDRAM CRC error: 
      0 in 4130 packets (all packets)
Radio gain: 
      0 in 4130 packets (all packets)
Radio bandwidth: 
      0 in 4130 packets (all packets)
Digital gain: 
      0 in 4130 packets (all packets)
Analog gain: 
      0 in 4130 packets (all packets)

EVENT DATA READER
-- File 20230721_235926_1229.dat, 20 EW pages found. Extra packets: 50.
   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 612 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 3468 packets: 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 6.8234125 to 7.0904315
      Difference between the neighboring packets: 
      0.0000170 in 4078 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -0.2670190 in 1 packets: 612
   Memory page number from 0 to 120
      Difference between the neighboring packets: 
      0 in 4060 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 18 packets: 204, 408, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876
      102 in 1 packets: 612
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 4060 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 18 packets: 204, 408, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876
      -59 in 1 packets: 612
   MIU event flag 
      1 in 4080 packets (all packets)
   Time triggered event flag 
      0 in 4080 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-21T23:59:34.442.001.825
   Min EW header abs. time found among all events            : 2023-07-21T23:59:34.497.490.000
   Max EW event (1st sample) abs. time found among all events: 2023-07-21T23:59:34.500.957.825
   Max EW header abs. time found among all events            : 2023-07-21T23:59:34.556.446.000
   TM values from -283 to 222 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: 3468
    Page no. 1:  204 packets  -- OK;  memory page(s):
      104 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      105 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      106 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      107 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      108 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      109 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      110 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      111 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      112 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      113 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      114 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      115 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      116 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      117 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      118 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      119 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      120 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 17  ordered packets: 3468
   TM values from -283 to 222 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=5 C1MHz=0.497490
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 3467 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: 6.8234125
   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-21T23:59:34.497.490.000
   Event 1st sample abs. time : 2023-07-21T23:59:34.442.001.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: 612
    Page no. 58:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 3  ordered packets: 612
   TM values from -124 to 121 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=5 C1MHz=0.556446
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 611 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.0800445
   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-21T23:59:34.556.446.000
   Event 1st sample abs. time : 2023-07-21T23:59:34.500.957.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-21T23:59:34.442.001.825 to 2023-07-21T23:59:34.500.957.825 (XO: -333.000000175 - -332.941044175)
   Min TM value:-283 at an offset of 23790.000 usec -> 2023-07-21T23:59:34.465.791.825 (XO: -332.976210175)
   Max TM value:222 at an offset of 23788.000 usec -> 2023-07-21T23:59:34.465.789.825 (XO: -332.976212175)
   Max dTM/dt [1/us]:2.57e+03 at an offset of 23863.287 usec -> 2023-07-21T23:59:34.465.865.112 (XO: -332.976136888)
   Min dTM/dt [1/us]:-2.67e+03 at an offset of 23789.875 usec -> 2023-07-21T23:59:34.465.791.700 (XO: -332.976210300)
   Med: -4.00000   Ave: -4.4197060   Std: 6.2104669

 - Event number: 3 from 2023-07-21T23:59:34.500.957.825 to 2023-07-21T23:59:34.511.361.825 (XO: -333.000000175 - -332.989596175)
   Min TM value:-124 at an offset of 7237.387 usec -> 2023-07-21T23:59:34.508.195.212 (XO: -332.992762787)
   Max TM value:121 at an offset of 7237.688 usec -> 2023-07-21T23:59:34.508.195.512 (XO: -332.992762488)
   Max dTM/dt [1/us]:1.20e+03 at an offset of 7237.525 usec -> 2023-07-21T23:59:34.508.195.350 (XO: -332.992762650)
   Min dTM/dt [1/us]:-7.91e+02 at an offset of 7240.238 usec -> 2023-07-21T23:59:34.508.198.062 (XO: -332.992759938)
   Med: -4.00000   Ave: -4.4641989   Std: 5.0857886
