-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Fri Jan  5 22:58:05 2024 UTC
-- File 20230720_180824_1229.dat, 3255  packets found.
APID:
      1229 (EW) in 3255 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 3255 packets (all packets)
Total number of packets: 
      36720 in 3255 packets (all packets)
Packet No from 1 to 3255
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 9.804708 to 49.305369
-each separately from 9s to 49s and from 305369us to 804708us.
   Differences in neigboring packets: 
      0.000000 in 3253 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      39.500661 in 1 packets: 1020
MIU packet time from 2023-07-20T18:08:36.804.708.000 to 2023-07-20T18:09:16.305.369.000
   Differences in neigboring packets: 
      0.000000 in 3253 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      39.500661 in 1 packets: 1020
MIU orbit number: 
      60000 in 3255 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 3255 packets (all packets)
MIU orbit information / number of events: 
      0 in 3255 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 3255 packets (all packets)
Instrument anomalies: 
      0 (OK) in 3255 packets (all packets)
FPGA configuration version: 
      211 in 3255 packets (all packets)
10 MHz counter at the last 1Hz pulse from 10.8984903 to 50.8983500
   Differences in neigboring packets: 
      0.0000000 in 3253 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      39.9998597 in 1 packets: 1020
Temperature FPGA: 
      FF -> 56.3 degC in 3255 packets (all packets)
Temperature XO: 
      C5 -> 43.6 degC in 3255 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 3255 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 3255 packets (all packets)
Number of external events: 
      1 in 1020 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 2235 packets: 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, ...
Number of generated alerts: 
      1 in 1020 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 2235 packets: 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, ...
Survey memory error: 
      0 in 3255 packets (all packets)
Event memory error: 
      0 in 3255 packets (all packets)
Configuration error: 
      0 in 3255 packets (all packets)
SDRAM CRC error: 
      0 in 3255 packets (all packets)
Radio gain: 
      0 in 3255 packets (all packets)
Radio bandwidth: 
      0 in 3255 packets (all packets)
Digital gain: 
      0 in 3255 packets (all packets)
Analog gain: 
      0 in 3255 packets (all packets)

EVENT DATA READER
-- File 20230720_180824_1229.dat, 15 EW pages found. Extra packets: 195.
   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 3
      1 in 1020 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 2040 packets: 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 11.8384521 to 51.1828951
      Difference between the neighboring packets: 
      0.0000170 in 3058 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      39.2924570 in 1 packets: 1020
   Memory page number from 0 to 16
      Difference between the neighboring packets: 
      0 in 3045 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 13 packets: 204, 408, 612, 816, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856
      3 in 1 packets: 1020
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 3045 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 13 packets: 204, 408, 612, 816, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856
      -59 in 1 packets: 1020
   MIU event flag 
      1 in 3060 packets (all packets)
   Time triggered event flag 
      0 in 3060 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-20T18:08:36.749.219.631
   Min EW header abs. time found among all events            : 2023-07-20T18:08:36.804.708.000
   Max EW event (1st sample) abs. time found among all events: 2023-07-20T18:09:16.249.880.626
   Max EW header abs. time found among all events            : 2023-07-20T18:09:16.305.369.000
   TM values from -257 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: 1020
    Page no. 56:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 57:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 5  ordered packets: 1020
   TM values from -257 to 233 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=9 C1MHz=0.804708
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 1019 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: 11.8384521
   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-20T18:08:36.804.708.000
   Event 1st sample abs. time : 2023-07-20T18:08:36.749.219.631)
   --- Rel. time correction for 1 points based on 44 XO calibration points at 1Hz counter from 0 to 43
   --- First point: 1Hz counter = 9, 32bit 10MHz counter = 11.838452100 corrected by 40bit 10MHz counter of 10.898490300 obtained at 1Hz counter of 9. Result: 9.939965090
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):               9.939964915
   Event data descriptor XO time (reconstructed seconds from XP start)    :               9.939965090
   Sampling frequency correction factor for this event:     0.999996500

 Event no. 2 total number of packets: 0
   No packets in this event  -- NOT OK -- 

 Event no. 3 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. 3 pages: 10  ordered packets: 2040
   TM values from -252 to 217 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=49 C1MHz=0.305369
   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: 51.1482321
   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-20T18:09:16.305.369.000
   Event 1st sample abs. time : 2023-07-20T18:09:16.249.880.626)
   --- Rel. time correction for 1 points based on 44 XO calibration points at 1Hz counter from 0 to 43
   --- First point: 1Hz counter = 49, 32bit 10MHz counter = 51.148232100 corrected by 40bit 10MHz counter of 44.898371000 obtained at 1Hz counter of 43. Result: 49.249883600
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              49.249883425
   Event data descriptor XO time (reconstructed seconds from XP start)    :              49.249883600
   Sampling frequency correction factor for this event:     0.999996400
--
Extremes in separate events:

 - Event number: 1 from 2023-07-20T18:08:36.749.219.631 to 2023-07-20T18:08:36.766.559.691 (XO: 9.939964915 - 9.957304976)
   Min TM value:-257 at an offset of 12095.180 usec -> 2023-07-20T18:08:36.761.314.810 (XO: 9.952060095)
   Max TM value:233 at an offset of 2146.833 usec -> 2023-07-20T18:08:36.751.366.463 (XO: 9.942111747)
   Max dTM/dt [1/us]:1.99e+03 at an offset of 12010.092 usec -> 2023-07-20T18:08:36.761.229.723 (XO: 9.951975007)
   Min dTM/dt [1/us]:-2.20e+03 at an offset of 2146.945 usec -> 2023-07-20T18:08:36.751.366.576 (XO: 9.942111860)
   Med: -4.00000   Ave: -4.4123659   Std: 18.674900

 - Event number: 2 --EMPTY-- 

 - Event number: 3 from 2023-07-20T18:09:16.249.880.626 to 2023-07-20T18:09:16.284.560.750 (XO: 49.249883425 - 49.284563549)
   Min TM value:-252 at an offset of 14178.389 usec -> 2023-07-20T18:09:16.264.059.014 (XO: 49.264061813)
   Max TM value:217 at an offset of 34334.874 usec -> 2023-07-20T18:09:16.284.215.499 (XO: 49.284218298)
   Max dTM/dt [1/us]:1.88e+03 at an offset of 34334.711 usec -> 2023-07-20T18:09:16.284.215.337 (XO: 49.284218136)
   Min dTM/dt [1/us]:-2.07e+03 at an offset of 34291.648 usec -> 2023-07-20T18:09:16.284.172.274 (XO: 49.284175073)
   Med: -4.00000   Ave: -4.4301272   Std: 15.484137
