-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Fri Jan 12 05:25:15 2024 UTC
-- File 20230725_203031_1229.dat, 4880  packets found.
APID:
      1229 (EW) in 4880 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 4880 packets (all packets)
Total number of packets: 
      36720 in 4880 packets (all packets)
Packet No from 1 to 4880
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 8.596029 to 16.246464
-each separately from 8s to 16s and from 246464us to 596029us.
   Differences in neigboring packets: 
      0.000000 in 4878 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.650435 in 1 packets: 816
MIU packet time from 2023-07-25T20:30:42.596.029.000 to 2023-07-25T20:30:50.246.464.000
   Differences in neigboring packets: 
      0.000000 in 4878 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.650435 in 1 packets: 816
MIU orbit number: 
      60000 in 4880 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 4880 packets (all packets)
MIU orbit information / number of events: 
      0 in 4880 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 4880 packets (all packets)
Instrument anomalies: 
      0 (OK) in 4880 packets (all packets)
FPGA configuration version: 
      211 in 4880 packets (all packets)
10 MHz counter at the last 1Hz pulse from 9.7685815 to 17.7685552
   Differences in neigboring packets: 
      0.0000000 in 4878 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.9999737 in 1 packets: 816
Temperature FPGA: 
      FE -> 57.6 degC in 4880 packets (all packets)
Temperature XO: 
      C6 -> 45.2 degC in 4880 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 4880 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 4880 packets (all packets)
Number of external events: 
      3 in 816 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 4064 packets: 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, ...
Number of generated alerts: 
      3 in 816 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 4064 packets: 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, ...
Survey memory error: 
      0 in 4880 packets (all packets)
Event memory error: 
      0 in 4880 packets (all packets)
Configuration error: 
      0 in 4880 packets (all packets)
SDRAM CRC error: 
      0 in 4880 packets (all packets)
Radio gain: 
      0 in 4880 packets (all packets)
Radio bandwidth: 
      0 in 4880 packets (all packets)
Digital gain: 
      0 in 4880 packets (all packets)
Analog gain: 
      0 in 4880 packets (all packets)

EVENT DATA READER
-- File 20230725_203031_1229.dat, 23 EW pages found. Extra packets: 188.
   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 816 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 3876 packets: 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 10.3091247 to 18.1675957
      Difference between the neighboring packets: 
      0.0000170 in 4690 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -7.8584710 in 1 packets: 816
   Memory page number from 0 to 58
      Difference between the neighboring packets: 
      0 in 4669 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 21 packets: 204, 408, 612, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876, ...
      37 in 1 packets: 816
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 4669 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 21 packets: 204, 408, 612, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876, ...
      -59 in 1 packets: 816
   MIU event flag 
      1 in 4692 packets (all packets)
   Time triggered event flag 
      0 in 4692 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-25T20:30:42.540.540.642
   Min EW header abs. time found among all events            : 2023-07-25T20:30:42.596.029.000
   Max EW event (1st sample) abs. time found among all events: 2023-07-25T20:30:50.190.975.642
   Max EW header abs. time found among all events            : 2023-07-25T20:30:50.246.464.000
   TM values from -268 to 233 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: 3876
    Page no. 1:  204 packets  -- OK;  memory page(s):
      40 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      41 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      42 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      43 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      44 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      45 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      46 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      47 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      48 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      49 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      50 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      51 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      52 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      53 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      54 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      55 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      56 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      57 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      58 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 19  ordered packets: 3876
   TM values from -267 to 233 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=8 C1MHz=0.596029
   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: 10.3091247
   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-25T20:30:42.596.029.000
   Event 1st sample abs. time : 2023-07-25T20:30:42.540.540.642)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 8, 32bit 10MHz counter = 10.309124700 corrected by 40bit 10MHz counter of 9.768581500 obtained at 1Hz counter of 8. Result: 8.540544984
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):               8.540544809
   Event data descriptor XO time (reconstructed seconds from XP start)    :               8.540544984
   Sampling frequency correction factor for this event:     0.999996700

 Event no. 3 total number of packets: 816
    Page no. 57:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 4  ordered packets: 816
   TM values from -268 to 233 median: -5.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=16 C1MHz=0.246464
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 815 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.1537407
   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-25T20:30:50.246.464.000
   Event 1st sample abs. time : 2023-07-25T20:30:50.190.975.642)
   --- 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.153740700 corrected by 40bit 10MHz counter of 14.768565000 obtained at 1Hz counter of 13. Result: 16.385186871
   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.385186696
   Event data descriptor XO time (reconstructed seconds from XP start)    :              16.385186871
   Sampling frequency correction factor for this event:     0.999996700
--
Extremes in separate events:

 - Event number: 1 --EMPTY-- 

 - Event number: 2 from 2023-07-25T20:30:42.540.540.642 to 2023-07-25T20:30:42.606.432.859 (XO: 8.540544809 - 8.606437026)
   Min TM value:-267 at an offset of 62905.295 usec -> 2023-07-25T20:30:42.603.445.937 (XO: 8.603450104)
   Max TM value:233 at an offset of 52886.075 usec -> 2023-07-25T20:30:42.593.426.716 (XO: 8.593430883)
   Max dTM/dt [1/us]:2.21e+03 at an offset of 2829.409 usec -> 2023-07-25T20:30:42.543.370.051 (XO: 8.543374218)
   Min dTM/dt [1/us]:-2.74e+03 at an offset of 62905.170 usec -> 2023-07-25T20:30:42.603.445.812 (XO: 8.603449979)
   Med: -4.00000   Ave: -4.4762272   Std: 19.326015

 - Event number: 3 from 2023-07-25T20:30:50.190.975.642 to 2023-07-25T20:30:50.204.847.687 (XO: 16.385186696 - 16.399058742)
   Min TM value:-268 at an offset of 8164.414 usec -> 2023-07-25T20:30:50.199.140.056 (XO: 16.393351111)
   Max TM value:233 at an offset of 8164.677 usec -> 2023-07-25T20:30:50.199.140.318 (XO: 16.393351373)
   Max dTM/dt [1/us]:2.42e+03 at an offset of 8164.552 usec -> 2023-07-25T20:30:50.199.140.193 (XO: 16.393351248)
   Min dTM/dt [1/us]:-2.41e+03 at an offset of 8072.339 usec -> 2023-07-25T20:30:50.199.047.981 (XO: 16.393259035)
   Med: -5.00000   Ave: -4.5459649   Std: 18.392183
