-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Thu Mar  9 09:19:59 2023 UTC
-- File 20220530_140325_1229.dat, 11075  packets found.
APID:
      1229 (EW) in 11075 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 11075 packets (all packets)
Total number of packets: 
      36720 in 11075 packets (all packets)
Packet No from 1 to 11075
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 25.305484 to 27.646390
-each separately from 25s to 27s and from 305484us to 646390us.
   Differences in neigboring packets: 
      0.000000 in 11072 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1.317843 in 1 packets: 3264
      -2.340906 in 1 packets: 8568
MIU packet time from 2022-05-30T14:03:53.305.484.000 to 2022-05-30T14:03:55.646.390.000
   Differences in neigboring packets: 
      0.000000 in 11072 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1.317843 in 1 packets: 3264
      -2.340906 in 1 packets: 8568
MIU orbit number: 
      60000 in 11075 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 11075 packets (all packets)
MIU orbit information / number of events: 
      0 in 11075 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 11075 packets (all packets)
Instrument anomalies: 
      0 (OK) in 11075 packets (all packets)
FPGA configuration version: 
      211 in 11075 packets (all packets)
10 MHz counter at the last 1Hz pulse from 26.7124508 to 28.7124440
   Differences in neigboring packets: 
      0.0000000 in 11072 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      0.9999966 in 1 packets: 3264
      -1.9999932 in 1 packets: 8568
Temperature FPGA: 
      02 -> 52.4 degC in 5771 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      01 -> 53.7 degC in 5304 packets: 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3277, 3278, 3279, 3280, 3281, 3282, ...
Temperature XO: 
      C4 -> 42.0 degC in 11075 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 11075 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 11075 packets (all packets)
Number of external events: 
      2 in 3264 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 5304 packets: 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3277, 3278, 3279, 3280, 3281, 3282, ...
      1 in 2507 packets: 8569, 8570, 8571, 8572, 8573, 8574, 8575, 8576, 8577, 8578, 8579, 8580, 8581, 8582, 8583, 8584, 8585, 8586, ...
Number of generated alerts: 
      2 in 3264 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 5304 packets: 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3277, 3278, 3279, 3280, 3281, 3282, ...
      1 in 2507 packets: 8569, 8570, 8571, 8572, 8573, 8574, 8575, 8576, 8577, 8578, 8579, 8580, 8581, 8582, 8583, 8584, 8585, 8586, ...
Survey memory error: 
      0 in 11075 packets (all packets)
Event memory error: 
      0 in 11075 packets (all packets)
Configuration error: 
      0 in 11075 packets (all packets)
SDRAM CRC error: 
      0 in 11075 packets (all packets)
Radio gain: 
      0 in 11075 packets (all packets)
Radio bandwidth: 
      0 in 11075 packets (all packets)
Digital gain: 
      0 in 11075 packets (all packets)
Analog gain: 
      0 in 11075 packets (all packets)

EVENT DATA READER
-- File 20220530_140325_1229.dat, 54 EW pages found. Extra packets: 59.
   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
      2 in 3264 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 5304 packets: 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3277, 3278, 3279, 3280, 3281, 3282, ...
      1 in 2448 packets: 8569, 8570, 8571, 8572, 8573, 8574, 8575, 8576, 8577, 8578, 8579, 8580, 8581, 8582, 8583, 8584, 8585, 8586, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 26.9624479 to 29.5114109
      Difference between the neighboring packets: 
      0.0000170 in 11013 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1.2276890 in 1 packets: 3264
      -2.5489630 in 1 packets: 8568
   Memory page number from 0 to 88
      Difference between the neighboring packets: 
      0 in 10962 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 52 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, ...
      36 in 1 packets: 8568
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 10962 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 51 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3468, 3672, 3876, ...
      -25 in 1 packets: 3264
      -59 in 1 packets: 8568
   MIU event flag 
      1 in 11016 packets (all packets)
   Time triggered event flag 
      0 in 11016 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: 2022-05-30T14:03:53.249.995.637
   Min EW header abs. time found among all events            : 2022-05-30T14:03:53.305.484.000
   Max EW event (1st sample) abs. time found among all events: 2022-05-30T14:03:55.590.901.637
   Max EW header abs. time found among all events            : 2022-05-30T14:03:55.646.390.000
   TM values from -278 to 234 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 2448
    Page no. 1:  204 packets  -- OK;  memory page(s):
      77 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      78 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      79 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      80 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      81 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      82 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      83 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      84 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      85 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      86 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      87 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      88 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 12  ordered packets: 2448
   TM values from -265 to 231 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=25 C1MHz=0.305484
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 2447 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.9624479
   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): 2022-05-30T14:03:53.305.484.000
   Event 1st sample abs. time : 2022-05-30T14:03:53.249.995.637)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 25, 32bit 10MHz counter = 26.962447900 corrected by 40bit 10MHz counter of 14.712491200 obtained at 1Hz counter of 13. Result: 25.249998350
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              25.249998175
   Event data descriptor XO time (reconstructed seconds from XP start)    :              25.249998350
   Sampling frequency correction factor for this event:     0.999996600

 Event no. 2 total number of packets: 3264
    Page no. 45:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 46:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 47:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 48:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 49:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 50:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 51:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 52:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 53:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 54:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 55:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 56:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
    Page no. 57:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      13 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      14 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      15 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 16  ordered packets: 3264
   TM values from -278 to 234 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=26 C1MHz=0.328547
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 3263 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: 28.1380999
   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): 2022-05-30T14:03:54.328.547.000
   Event 1st sample abs. time : 2022-05-30T14:03:54.273.058.637)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 26, 32bit 10MHz counter = 28.138099900 corrected by 40bit 10MHz counter of 14.712491200 obtained at 1Hz counter of 13. Result: 26.425654347
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              26.425654172
   Event data descriptor XO time (reconstructed seconds from XP start)    :              26.425654347
   Sampling frequency correction factor for this event:     0.999996600

 Event no. 3 total number of packets: 5304
    Page no. 35:  204 packets  -- OK;  memory page(s):
      16 in 204 packets (all packets)  --OK-- 
    Page no. 36:  204 packets  -- OK;  memory page(s):
      17 in 204 packets (all packets)  --OK-- 
    Page no. 37:  204 packets  -- OK;  memory page(s):
      18 in 204 packets (all packets)  --OK-- 
    Page no. 38:  204 packets  -- OK;  memory page(s):
      19 in 204 packets (all packets)  --OK-- 
    Page no. 39:  204 packets  -- OK;  memory page(s):
      20 in 204 packets (all packets)  --OK-- 
    Page no. 40:  204 packets  -- OK;  memory page(s):
      21 in 204 packets (all packets)  --OK-- 
    Page no. 41:  204 packets  -- OK;  memory page(s):
      22 in 204 packets (all packets)  --OK-- 
    Page no. 42:  204 packets  -- OK;  memory page(s):
      23 in 204 packets (all packets)  --OK-- 
    Page no. 43:  204 packets  -- OK;  memory page(s):
      24 in 204 packets (all packets)  --OK-- 
    Page no. 44:  204 packets  -- OK;  memory page(s):
      25 in 204 packets (all packets)  --OK-- 
    Page no. 45:  204 packets  -- OK;  memory page(s):
      26 in 204 packets (all packets)  --OK-- 
    Page no. 46:  204 packets  -- OK;  memory page(s):
      27 in 204 packets (all packets)  --OK-- 
    Page no. 47:  204 packets  -- OK;  memory page(s):
      28 in 204 packets (all packets)  --OK-- 
    Page no. 48:  204 packets  -- OK;  memory page(s):
      29 in 204 packets (all packets)  --OK-- 
    Page no. 49:  204 packets  -- OK;  memory page(s):
      30 in 204 packets (all packets)  --OK-- 
    Page no. 50:  204 packets  -- OK;  memory page(s):
      31 in 204 packets (all packets)  --OK-- 
    Page no. 51:  204 packets  -- OK;  memory page(s):
      32 in 204 packets (all packets)  --OK-- 
    Page no. 52:  204 packets  -- OK;  memory page(s):
      33 in 204 packets (all packets)  --OK-- 
    Page no. 53:  204 packets  -- OK;  memory page(s):
      34 in 204 packets (all packets)  --OK-- 
    Page no. 54:  204 packets  -- OK;  memory page(s):
      35 in 204 packets (all packets)  --OK-- 
    Page no. 55:  204 packets  -- OK;  memory page(s):
      36 in 204 packets (all packets)  --OK-- 
    Page no. 56:  204 packets  -- OK;  memory page(s):
      37 in 204 packets (all packets)  --OK-- 
    Page no. 57:  204 packets  -- OK;  memory page(s):
      38 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      39 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      40 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      41 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 26  ordered packets: 5304
   TM values from -245 to 219 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=27 C1MHz=0.646390
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 5303 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: 29.4212599
   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): 2022-05-30T14:03:55.646.390.000
   Event 1st sample abs. time : 2022-05-30T14:03:55.590.901.637)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 27, 32bit 10MHz counter = 29.421259900 corrected by 40bit 10MHz counter of 14.712491200 obtained at 1Hz counter of 13. Result: 27.708818710
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              27.708818535
   Event data descriptor XO time (reconstructed seconds from XP start)    :              27.708818710
   Sampling frequency correction factor for this event:     0.999996600
--
Extremes in separate events:

 - Event number: 1 from 2022-05-30T14:03:53.249.995.637 to 2022-05-30T14:03:53.291.611.778 (XO: 25.249998175 - 25.291614316)
   Min TM value:-265 at an offset of 35435.758 usec -> 2022-05-30T14:03:53.285.431.394 (XO: 25.285433933)
   Max TM value:231 at an offset of 35435.508 usec -> 2022-05-30T14:03:53.285.431.144 (XO: 25.285433683)
   Max dTM/dt [1/us]:2.30e+03 at an offset of 15387.952 usec -> 2022-05-30T14:03:53.265.383.589 (XO: 25.265386127)
   Min dTM/dt [1/us]:-2.38e+03 at an offset of 35199.770 usec -> 2022-05-30T14:03:53.285.195.406 (XO: 25.285197945)
   Med: -4.00000   Ave: -4.4851529   Std: 7.6144956

 - Event number: 2 from 2022-05-30T14:03:54.273.058.637 to 2022-05-30T14:03:54.328.546.825 (XO: 26.425654172 - 26.481142361)
   Min TM value:-278 at an offset of 19782.680 usec -> 2022-05-30T14:03:54.292.841.316 (XO: 26.445436852)
   Max TM value:234 at an offset of 19782.405 usec -> 2022-05-30T14:03:54.292.841.041 (XO: 26.445436577)
   Max dTM/dt [1/us]:2.34e+03 at an offset of 19724.892 usec -> 2022-05-30T14:03:54.292.783.529 (XO: 26.445379064)
   Min dTM/dt [1/us]:-2.15e+03 at an offset of 19782.517 usec -> 2022-05-30T14:03:54.292.841.154 (XO: 26.445436689)
   Med: -4.00000   Ave: -4.4710496   Std: 7.0439149

 - Event number: 3 from 2022-05-30T14:03:55.590.901.637 to 2022-05-30T14:03:55.681.069.943 (XO: 27.708818535 - 27.798986842)
   Min TM value:-245 at an offset of 66593.114 usec -> 2022-05-30T14:03:55.657.494.750 (XO: 27.775411649)
   Max TM value:219 at an offset of 66595.514 usec -> 2022-05-30T14:03:55.657.497.150 (XO: 27.775414049)
   Max dTM/dt [1/us]:2.39e+03 at an offset of 66595.401 usec -> 2022-05-30T14:03:55.657.497.038 (XO: 27.775413936)
   Min dTM/dt [1/us]:-2.10e+03 at an offset of 56635.830 usec -> 2022-05-30T14:03:55.647.537.467 (XO: 27.765454365)
   Med: -4.00000   Ave: -4.4611143   Std: 7.2726036
