-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Fri Jan 12 01:02:47 2024 UTC
-- File 20230724_080647_1229.dat, 4200  packets found.
APID:
      1229 (EW) in 4200 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 4200 packets (all packets)
Total number of packets: 
      36720 in 4200 packets (all packets)
Packet No from 1 to 4200
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 46.292897 to 50.073030
-each separately from 46s to 50s and from 73030us to 292897us.
   Differences in neigboring packets: 
      0.000000 in 4198 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3.780133 in 1 packets: 2856
MIU packet time from 2023-07-24T08:07:36.292.897.000 to 2023-07-24T08:07:40.073.030.000
   Differences in neigboring packets: 
      0.000000 in 4198 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3.780133 in 1 packets: 2856
MIU orbit number: 
      60000 in 4200 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 4200 packets (all packets)
MIU orbit information / number of events: 
      0 in 4200 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 4200 packets (all packets)
Instrument anomalies: 
      0 (OK) in 4200 packets (all packets)
FPGA configuration version: 
      211 in 4200 packets (all packets)
10 MHz counter at the last 1Hz pulse from 47.7585863 to 51.7585732
   Differences in neigboring packets: 
      0.0000000 in 4198 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3.9999869 in 1 packets: 2856
Temperature FPGA: 
      FF -> 56.3 degC in 4200 packets (all packets)
Temperature XO: 
      C6 -> 45.2 degC in 4200 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 4200 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 4200 packets (all packets)
Number of external events: 
      1 in 2856 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 1344 packets: 2857, 2858, 2859, 2860, 2861, 2862, 2863, 2864, 2865, 2866, 2867, 2868, 2869, 2870, 2871, 2872, 2873, 2874, ...
Number of generated alerts: 
      1 in 2856 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 1344 packets: 2857, 2858, 2859, 2860, 2861, 2862, 2863, 2864, 2865, 2866, 2867, 2868, 2869, 2870, 2871, 2872, 2873, 2874, ...
Survey memory error: 
      0 in 4200 packets (all packets)
Event memory error: 
      0 in 4200 packets (all packets)
Configuration error: 
      0 in 4200 packets (all packets)
SDRAM CRC error: 
      0 in 4200 packets (all packets)
Radio gain: 
      0 in 4200 packets (all packets)
Radio bandwidth: 
      0 in 4200 packets (all packets)
Digital gain: 
      0 in 4200 packets (all packets)
Analog gain: 
      0 in 4200 packets (all packets)

EVENT DATA READER
-- File 20230724_080647_1229.dat, 20 EW pages found. Extra packets: 120.
   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 2856 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 1224 packets: 2857, 2858, 2859, 2860, 2861, 2862, 2863, 2864, 2865, 2866, 2867, 2868, 2869, 2870, 2871, 2872, 2873, 2874, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 48.1555245 to 51.7969075
      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, ...
      3.5720570 in 1 packets: 2856
   Memory page number from 0 to 43
      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, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 3060, 3264, 3468, 3672, 3876
      25 in 1 packets: 2856
   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, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 3060, 3264, 3468, 3672, 3876
      -59 in 1 packets: 2856
   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-24T08:07:36.237.408.648
   Min EW header abs. time found among all events            : 2023-07-24T08:07:36.292.897.000
   Max EW event (1st sample) abs. time found among all events: 2023-07-24T08:07:40.017.541.648
   Max EW header abs. time found among all events            : 2023-07-24T08:07:40.073.030.000
   TM values from -245 to 200 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 2856
    Page no. 47:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 48:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 49:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 50:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 51:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 52:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 53:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 54:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 55:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 56:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 57:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      13 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 14  ordered packets: 2856
   TM values from -245 to 200 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=46 C1MHz=0.292897
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 2855 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: 48.1555245
   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-24T08:07:36.292.897.000
   Event 1st sample abs. time : 2023-07-24T08:07:36.237.408.648)
   --- Rel. time correction for 1 points based on 44 XO calibration points at 1Hz counter from 0 to 43
   --- First point: 1Hz counter = 46, 32bit 10MHz counter = 48.155524500 corrected by 40bit 10MHz counter of 44.758596100 obtained at 1Hz counter of 43. Result: 46.396939270
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              46.396939095
   Event data descriptor XO time (reconstructed seconds from XP start)    :              46.396939270
   Sampling frequency correction factor for this event:     0.999996800

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

 Event no. 3 total number of packets: 1224
    Page no. 1:  204 packets  -- OK;  memory page(s):
      38 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      39 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      40 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      41 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      42 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      43 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 6  ordered packets: 1224
   TM values from -227 to 199 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=50 C1MHz=0.073030
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 1223 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.7761165
   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-24T08:07:40.073.030.000
   Event 1st sample abs. time : 2023-07-24T08:07:40.017.541.648)
   --- Rel. time correction for 1 points based on 44 XO calibration points at 1Hz counter from 0 to 43
   --- First point: 1Hz counter = 50, 32bit 10MHz counter = 51.776116500 corrected by 40bit 10MHz counter of 44.758596100 obtained at 1Hz counter of 43. Result: 50.017542856
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              50.017542681
   Event data descriptor XO time (reconstructed seconds from XP start)    :              50.017542856
   Sampling frequency correction factor for this event:     0.999996800
--
Extremes in separate events:

 - Event number: 1 from 2023-07-24T08:07:36.237.408.648 to 2023-07-24T08:07:36.285.960.803 (XO: 46.396939095 - 46.445491251)
   Min TM value:-245 at an offset of 4870.878 usec -> 2023-07-24T08:07:36.242.279.526 (XO: 46.401809973)
   Max TM value:200 at an offset of 4690.015 usec -> 2023-07-24T08:07:36.242.098.663 (XO: 46.401629110)
   Max dTM/dt [1/us]:2.06e+03 at an offset of 4903.741 usec -> 2023-07-24T08:07:36.242.312.388 (XO: 46.401842836)
   Min dTM/dt [1/us]:-1.99e+03 at an offset of 4870.728 usec -> 2023-07-24T08:07:36.242.279.376 (XO: 46.401809823)
   Med: -4.00000   Ave: -4.4160977   Std: 13.679954

 - Event number: 2 --EMPTY-- 

 - Event number: 3 from 2023-07-24T08:07:40.017.541.648 to 2023-07-24T08:07:40.038.349.714 (XO: 50.017542681 - 50.038350748)
   Min TM value:-227 at an offset of 4340.989 usec -> 2023-07-24T08:07:40.021.882.636 (XO: 50.021883670)
   Max TM value:199 at an offset of 4338.801 usec -> 2023-07-24T08:07:40.021.880.449 (XO: 50.021881483)
   Max dTM/dt [1/us]:1.92e+03 at an offset of 14262.958 usec -> 2023-07-24T08:07:40.031.804.606 (XO: 50.031805639)
   Min dTM/dt [1/us]:-1.93e+03 at an offset of 4340.826 usec -> 2023-07-24T08:07:40.021.882.474 (XO: 50.021883508)
   Med: -4.00000   Ave: -4.4242743   Std: 11.428976
