-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Sun Jun  4 01:03:42 2023 UTC
-- File 20230603_121411_1229.dat, 4958  packets found.
APID:
      1229 (EW) in 4958 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 4958 packets (all packets)
Total number of packets: 
      36720 in 4958 packets (all packets)
Packet No from 1 to 4958
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 22.140830 to 24.745305
-each separately from 22s to 24s and from 140830us to 745305us.
   Differences in neigboring packets: 
      0.000000 in 4956 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -2.604475 in 1 packets: 3468
MIU packet time from 2023-06-03T12:14:36.140.830.000 to 2023-06-03T12:14:38.745.305.000
   Differences in neigboring packets: 
      0.000000 in 4956 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -2.604475 in 1 packets: 3468
MIU orbit number: 
      60000 in 4958 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 4958 packets (all packets)
MIU orbit information / number of events: 
      0 in 4958 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 4958 packets (all packets)
Instrument anomalies: 
      0 (OK) in 4958 packets (all packets)
FPGA configuration version: 
      211 in 4958 packets (all packets)
10 MHz counter at the last 1Hz pulse from 24.1160433 to 26.1160363
   Differences in neigboring packets: 
      0.0000000 in 4956 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -1.9999930 in 1 packets: 3468
Temperature FPGA: 
      01 -> 53.7 degC in 4958 packets (all packets)
Temperature XO: 
      C3 -> 40.4 degC in 3468 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      C4 -> 42.0 degC in 1490 packets: 3469, 3470, 3471, 3472, 3473, 3474, 3475, 3476, 3477, 3478, 3479, 3480, 3481, 3482, 3483, 3484, 3485, 3486, ...
Temperature ant 3: 
      01 -> 108.0 degC in 4958 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 4958 packets (all packets)
Number of external events: 
      3 in 3468 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 1490 packets: 3469, 3470, 3471, 3472, 3473, 3474, 3475, 3476, 3477, 3478, 3479, 3480, 3481, 3482, 3483, 3484, 3485, 3486, ...
Number of generated alerts: 
      5 in 3468 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 1490 packets: 3469, 3470, 3471, 3472, 3473, 3474, 3475, 3476, 3477, 3478, 3479, 3480, 3481, 3482, 3483, 3484, 3485, 3486, ...
Survey memory error: 
      0 in 4958 packets (all packets)
Event memory error: 
      0 in 4958 packets (all packets)
Configuration error: 
      0 in 4958 packets (all packets)
SDRAM CRC error: 
      0 in 4958 packets (all packets)
Radio gain: 
      0 in 4958 packets (all packets)
Radio bandwidth: 
      0 in 4958 packets (all packets)
Digital gain: 
      0 in 4958 packets (all packets)
Analog gain: 
      0 in 4958 packets (all packets)

EVENT DATA READER
-- File 20230603_121411_1229.dat, 24 EW pages found. Extra packets: 62.
   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 3468 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      2 in 1428 packets: 3469, 3470, 3471, 3472, 3473, 3474, 3475, 3476, 3477, 3478, 3479, 3480, 3481, 3482, 3483, 3484, 3485, 3486, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 24.2013869 to 26.8647939
      Difference between the neighboring packets: 
      0.0000170 in 4894 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -2.6634070 in 1 packets: 3468
   Memory page number from 54 to 77
      Difference between the neighboring packets: 
      0 in 4872 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 23 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 17
      Difference between the neighboring packets: 
      0 in 4872 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 22 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3672, 3876, ...
      -16 in 1 packets: 3468
   MIU event flag 
      1 in 4896 packets (all packets)
   Time triggered event flag 
      0 in 4896 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-06-03T12:14:36.085.341.631
   Min EW header abs. time found among all events            : 2023-06-03T12:14:36.140.830.000
   Max EW event (1st sample) abs. time found among all events: 2023-06-03T12:14:38.689.816.631
   Max EW header abs. time found among all events            : 2023-06-03T12:14:38.745.305.000
   TM values from -260 to 359 median:-5.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: 1428
    Page no. 1:  204 packets  -- OK;  memory page(s):
      71 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      72 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      73 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      74 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      75 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      76 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      77 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 7  ordered packets: 1428
   TM values from -237 to 182 median: -5.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=22 C1MHz=0.140830
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 1427 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: 24.2013869
   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-06-03T12:14:36.140.830.000
   Event 1st sample abs. time : 2023-06-03T12:14:36.085.341.631)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 22, 32bit 10MHz counter = 24.201386900 corrected by 40bit 10MHz counter of 15.116075000 obtained at 1Hz counter of 13. Result: 22.085343699
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              22.085343524
   Event data descriptor XO time (reconstructed seconds from XP start)    :              22.085343699
   Sampling frequency correction factor for this event:     0.999996500

 Event no. 3 total number of packets: 3468
    Page no. 1:  204 packets  -- OK;  memory page(s):
      54 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      55 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      56 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      57 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      58 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      59 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      60 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      61 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      62 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      63 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      64 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      65 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      66 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      67 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      68 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      69 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      70 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 17  ordered packets: 3468
   TM values from -260 to 359 median: -5.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=24 C1MHz=0.745305
   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: 26.8058549
   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-06-03T12:14:38.745.305.000
   Event 1st sample abs. time : 2023-06-03T12:14:38.689.816.631)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 24, 32bit 10MHz counter = 26.805854900 corrected by 40bit 10MHz counter of 15.116075000 obtained at 1Hz counter of 13. Result: 24.689820814
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              24.689820639
   Event data descriptor XO time (reconstructed seconds from XP start)    :              24.689820814
   Sampling frequency correction factor for this event:     0.999996500
--
Extremes in separate events:

 - Event number: 1 --EMPTY-- 

 - Event number: 2 from 2023-06-03T12:14:36.085.341.631 to 2023-06-03T12:14:36.109.617.715 (XO: 22.085343524 - 22.109619609)
   Min TM value:-237 at an offset of 19678.594 usec -> 2023-06-03T12:14:36.105.020.224 (XO: 22.105022118)
   Max TM value:182 at an offset of 19676.531 usec -> 2023-06-03T12:14:36.105.018.162 (XO: 22.105020055)
   Max dTM/dt [1/us]:1.74e+03 at an offset of 19680.981 usec -> 2023-06-03T12:14:36.105.022.612 (XO: 22.105024505)
   Min dTM/dt [1/us]:-2.07e+03 at an offset of 19678.444 usec -> 2023-06-03T12:14:36.105.020.074 (XO: 22.105021968)
   Med: -5.00000   Ave: -4.5365943   Std: 4.9056110

 - Event number: 3 from 2023-06-03T12:14:38.689.816.631 to 2023-06-03T12:14:38.748.772.837 (XO: 24.689820639 - 24.748776846)
   Min TM value:-260 at an offset of 53886.401 usec -> 2023-06-03T12:14:38.743.703.032 (XO: 24.743707040)
   Max TM value:359 at an offset of 53880.239 usec -> 2023-06-03T12:14:38.743.696.869 (XO: 24.743700878)
   Max dTM/dt [1/us]:2.07e+03 at an offset of 47999.868 usec -> 2023-06-03T12:14:38.737.816.498 (XO: 24.737820507)
   Min dTM/dt [1/us]:-2.04e+03 at an offset of 25730.353 usec -> 2023-06-03T12:14:38.715.546.983 (XO: 24.715550992)
   Med: -5.00000   Ave: -4.5409117   Std: 6.7307383
