-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Thu Mar 23 10:39:44 2023 UTC
-- File 20210703_131102_1229.dat, 6511  packets found.
APID:
      1229 (EW) in 6511 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 6511 packets (all packets)
Total number of packets: 
      36720 in 6511 packets (all packets)
Packet No from 1 to 6511
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 1.140367 to 12.959352
-each separately from 1s to 12s and from 140367us to 978412us.
   Differences in neigboring packets: 
      0.000000 in 6508 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      9.980940 in 1 packets: 5100
      -11.818985 in 1 packets: 5916
MIU packet time from 2021-07-03T13:11:02.140.367.000 to 2021-07-03T13:11:13.959.352.000
   Differences in neigboring packets: 
      0.000000 in 6508 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      9.980940 in 1 packets: 5100
      -11.818985 in 1 packets: 5916
MIU orbit number: 
      60000 in 6511 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 6511 packets (all packets)
MIU orbit information / number of events: 
      0 in 6511 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 6511 packets (all packets)
Instrument anomalies: 
      0 (OK) in 6511 packets (all packets)
FPGA configuration version: 
      211 in 6511 packets (all packets)
10 MHz counter at the last 1Hz pulse from 2.7743341 to 13.7742942
   Differences in neigboring packets: 
      0.0000000 in 6508 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      9.9999637 in 1 packets: 5100
      -10.9999601 in 1 packets: 5916
Temperature FPGA: 
      05 -> 48.5 degC in 6511 packets (all packets)
Temperature XO: 
      C0 -> 35.6 degC in 6511 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 6511 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 6511 packets (all packets)
Number of external events: 
      2 in 5100 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 816 packets: 5101, 5102, 5103, 5104, 5105, 5106, 5107, 5108, 5109, 5110, 5111, 5112, 5113, 5114, 5115, 5116, 5117, 5118, ...
      1 in 595 packets: 5917, 5918, 5919, 5920, 5921, 5922, 5923, 5924, 5925, 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, 5934, ...
Number of generated alerts: 
      2 in 5100 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 816 packets: 5101, 5102, 5103, 5104, 5105, 5106, 5107, 5108, 5109, 5110, 5111, 5112, 5113, 5114, 5115, 5116, 5117, 5118, ...
      1 in 595 packets: 5917, 5918, 5919, 5920, 5921, 5922, 5923, 5924, 5925, 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, 5934, ...
Survey memory error: 
      0 in 6511 packets (all packets)
Event memory error: 
      0 in 6511 packets (all packets)
Configuration error: 
      0 in 6511 packets (all packets)
SDRAM CRC error: 
      0 in 6511 packets (all packets)
Radio gain: 
      0 in 6511 packets (all packets)
Radio bandwidth: 
      0 in 6511 packets (all packets)
Digital gain: 
      0 in 6511 packets (all packets)
Analog gain: 
      0 in 6511 packets (all packets)

EVENT DATA READER
-- File 20210703_131102_1229.dat, 31 EW pages found. Extra packets: 187.
   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 5100 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 816 packets: 5101, 5102, 5103, 5104, 5105, 5106, 5107, 5108, 5109, 5110, 5111, 5112, 5113, 5114, 5115, 5116, 5117, 5118, ...
      1 in 408 packets: 5917, 5918, 5919, 5920, 5921, 5922, 5923, 5924, 5925, 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, 5934, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 2.8592145 to 14.7405655
      Difference between the neighboring packets: 
      0.0000170 in 6321 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      9.8213930 in 1 packets: 5100
      -11.8813510 in 1 packets: 5916
   Memory page number from 0 to 30
      Difference between the neighboring packets: 
      0 in 6293 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 30 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 60
      Difference between the neighboring packets: 
      0 in 6293 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 28 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, ...
      -45 in 1 packets: 5100
      -17 in 1 packets: 5916
   MIU event flag 
      1 in 6324 packets (all packets)
   Time triggered event flag 
      0 in 6324 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: 2021-07-03T13:11:02.084.878.825
   Min EW header abs. time found among all events            : 2021-07-03T13:11:02.140.367.000
   Max EW event (1st sample) abs. time found among all events: 2021-07-03T13:11:13.903.863.825
   Max EW header abs. time found among all events            : 2021-07-03T13:11:13.959.352.000
   TM values from -272 to 237 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 408
    Page no. 1:  204 packets  -- OK;  memory page(s):
      29 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      30 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 2  ordered packets: 408
   TM values from -229 to 237 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=1 C1MHz=0.140367
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 407 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: 2.8592145
   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): 2021-07-03T13:11:02.140.367.000
   Event 1st sample abs. time : 2021-07-03T13:11:02.084.878.825)
   --- Rel. time correction failed for 1 points and 0 XO calibration points.
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):            -333.000000175
   Event data descriptor XO time (reconstructed seconds from XP start)    :            -333.000000000
   Sampling frequency correction factor for this event:     1.000000000

 Event no. 2 total number of packets: 5100
    Page no. 36:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 37:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 38:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 39:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 40:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 41:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 42:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 43:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 44:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 45:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 46:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 47:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
    Page no. 48:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
    Page no. 49:  204 packets  -- OK;  memory page(s):
      13 in 204 packets (all packets)  --OK-- 
    Page no. 50:  204 packets  -- OK;  memory page(s):
      14 in 204 packets (all packets)  --OK-- 
    Page no. 51:  204 packets  -- OK;  memory page(s):
      15 in 204 packets (all packets)  --OK-- 
    Page no. 52:  204 packets  -- OK;  memory page(s):
      16 in 204 packets (all packets)  --OK-- 
    Page no. 53:  204 packets  -- OK;  memory page(s):
      17 in 204 packets (all packets)  --OK-- 
    Page no. 54:  204 packets  -- OK;  memory page(s):
      18 in 204 packets (all packets)  --OK-- 
    Page no. 55:  204 packets  -- OK;  memory page(s):
      19 in 204 packets (all packets)  --OK-- 
    Page no. 56:  204 packets  -- OK;  memory page(s):
      20 in 204 packets (all packets)  --OK-- 
    Page no. 57:  204 packets  -- OK;  memory page(s):
      21 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      22 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      23 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      24 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 25  ordered packets: 5100
   TM values from -258 to 236 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=2 C1MHz=0.978412
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 5099 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: 4.8186345
   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): 2021-07-03T13:11:03.978.412.000
   Event 1st sample abs. time : 2021-07-03T13:11:03.922.923.825)
   --- Rel. time correction failed for 1 points and 0 XO calibration points.
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):            -333.000000175
   Event data descriptor XO time (reconstructed seconds from XP start)    :            -333.000000000
   Sampling frequency correction factor for this event:     1.000000000

 Event no. 3 total number of packets: 816
    Page no. 15:  204 packets  -- OK;  memory page(s):
      25 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      26 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      27 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      28 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 4  ordered packets: 816
   TM values from -272 to 221 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=12 C1MHz=0.959352
   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: 14.7267105
   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): 2021-07-03T13:11:13.959.352.000
   Event 1st sample abs. time : 2021-07-03T13:11:13.903.863.825)
   --- Rel. time correction failed for 1 points and 0 XO calibration points.
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):            -333.000000175
   Event data descriptor XO time (reconstructed seconds from XP start)    :            -333.000000000
   Sampling frequency correction factor for this event:     1.000000000
--
Extremes in separate events:

 - Event number: 1 from 2021-07-03T13:11:02.084.878.825 to 2021-07-03T13:11:02.091.814.825 (XO: -333.000000175 - -332.993064175)
   Min TM value:-229 at an offset of 3003.662 usec -> 2021-07-03T13:11:02.087.882.487 (XO: -332.996996513)
   Max TM value:237 at an offset of 3006.363 usec -> 2021-07-03T13:11:02.087.885.187 (XO: -332.996993813)
   Max dTM/dt [1/us]:2.37e+03 at an offset of 3006.263 usec -> 2021-07-03T13:11:02.087.885.087 (XO: -332.996993913)
   Min dTM/dt [1/us]:-2.13e+03 at an offset of 3003.525 usec -> 2021-07-03T13:11:02.087.882.350 (XO: -332.996996650)
   Med: -4.00000   Ave: -4.4192546   Std: 6.8101498

 - Event number: 2 from 2021-07-03T13:11:03.922.923.825 to 2021-07-03T13:11:04.009.623.825 (XO: -333.000000175 - -332.913300175)
   Min TM value:-258 at an offset of 53742.413 usec -> 2021-07-03T13:11:03.976.666.237 (XO: -332.946257763)
   Max TM value:236 at an offset of 43667.375 usec -> 2021-07-03T13:11:03.966.591.200 (XO: -332.956332800)
   Max dTM/dt [1/us]:2.34e+03 at an offset of 43667.262 usec -> 2021-07-03T13:11:03.966.591.087 (XO: -332.956332913)
   Min dTM/dt [1/us]:-2.32e+03 at an offset of 53742.300 usec -> 2021-07-03T13:11:03.976.666.125 (XO: -332.946257875)
   Med: -4.00000   Ave: -4.4464221   Std: 5.8482953

 - Event number: 3 from 2021-07-03T13:11:13.903.863.825 to 2021-07-03T13:11:13.917.735.825 (XO: -333.000000175 - -332.986128175)
   Min TM value:-272 at an offset of 5931.713 usec -> 2021-07-03T13:11:13.909.795.537 (XO: -332.994068463)
   Max TM value:221 at an offset of 5875.537 usec -> 2021-07-03T13:11:13.909.739.362 (XO: -332.994124638)
   Max dTM/dt [1/us]:2.21e+03 at an offset of 5875.387 usec -> 2021-07-03T13:11:13.909.739.212 (XO: -332.994124788)
   Min dTM/dt [1/us]:-2.54e+03 at an offset of 5931.600 usec -> 2021-07-03T13:11:13.909.795.425 (XO: -332.994068575)
   Med: -4.00000   Ave: -4.4159656   Std: 6.6897545
