-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Fri Jan  5 23:10:42 2024 UTC
-- File 20230720_185646_1229.dat, 10337  packets found.
APID:
      1229 (EW) in 10337 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 10337 packets (all packets)
Total number of packets: 
      36720 in 10337 packets (all packets)
Packet No from 1 to 10337
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 10.911731 to 18.811863
-each separately from 10s to 18s and from 110454us to 911731us.
   Differences in neigboring packets: 
      0.000000 in 10334 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      5.701409 in 1 packets: 204
      -7.900132 in 1 packets: 5916
MIU packet time from 2023-07-20T18:56:59.911.731.000 to 2023-07-20T18:57:07.811.863.000
   Differences in neigboring packets: 
      0.000000 in 10334 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      5.701409 in 1 packets: 204
      -7.900132 in 1 packets: 5916
MIU orbit number: 
      60000 in 10337 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 10337 packets (all packets)
MIU orbit information / number of events: 
      0 in 10337 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 10337 packets (all packets)
Instrument anomalies: 
      0 (OK) in 10337 packets (all packets)
FPGA configuration version: 
      211 in 10337 packets (all packets)
10 MHz counter at the last 1Hz pulse from 12.0813285 to 20.0813009
   Differences in neigboring packets: 
      0.0000000 in 10334 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      4.9999828 in 1 packets: 204
      -7.9999724 in 1 packets: 5916
Temperature FPGA: 
      FE -> 57.6 degC in 10337 packets (all packets)
Temperature XO: 
      C6 -> 45.2 degC in 10337 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 10337 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 10337 packets (all packets)
Number of external events: 
      2 in 204 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 5712 packets: 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, ...
      1 in 4421 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 204 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 5712 packets: 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, ...
      1 in 4421 packets: 5917, 5918, 5919, 5920, 5921, 5922, 5923, 5924, 5925, 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, 5934, ...
Survey memory error: 
      0 in 10337 packets (all packets)
Event memory error: 
      0 in 10337 packets (all packets)
Configuration error: 
      0 in 10337 packets (all packets)
SDRAM CRC error: 
      0 in 10337 packets (all packets)
Radio gain: 
      0 in 10337 packets (all packets)
Radio bandwidth: 
      0 in 10337 packets (all packets)
Digital gain: 
      0 in 10337 packets (all packets)
Analog gain: 
      0 in 10337 packets (all packets)

EVENT DATA READER
-- File 20230720_185646_1229.dat, 50 EW pages found. Extra packets: 137.
   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 204 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 5712 packets: 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, ...
      1 in 4284 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 12.9375736 to 20.9347646
      Difference between the neighboring packets: 
      0.0000170 in 10197 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      5.4933290 in 1 packets: 204
      -7.9971910 in 1 packets: 5916
   Memory page number from 0 to 99
      Difference between the neighboring packets: 
      0 in 10150 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      51 in 1 packets: 204
      1 in 48 packets: 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876, ...
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 10150 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -59 in 1 packets: 204
      1 in 47 packets: 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876, ...
      -27 in 1 packets: 5916
   MIU event flag 
      1 in 10200 packets (all packets)
   Time triggered event flag 
      0 in 10200 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:56:59.856.242.637
   Min EW header abs. time found among all events            : 2023-07-20T18:56:59.911.731.000
   Max EW event (1st sample) abs. time found among all events: 2023-07-20T18:57:07.756.374.637
   Max EW header abs. time found among all events            : 2023-07-20T18:57:07.811.863.000
   TM values from -329 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: 4284
    Page no. 1:  204 packets  -- OK;  memory page(s):
      79 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      80 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      81 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      82 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      83 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      84 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      85 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      86 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      87 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      88 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      89 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      90 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      91 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      92 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      93 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      94 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      95 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      96 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      97 in 204 packets (all packets)  --OK-- 
    Page no. 20:  204 packets  -- OK;  memory page(s):
      98 in 204 packets (all packets)  --OK-- 
    Page no. 21:  204 packets  -- OK;  memory page(s):
      99 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 21  ordered packets: 4284
   TM values from -329 to 220 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=10 C1MHz=0.911731
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 4283 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: 12.9375736
   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:56:59.911.731.000
   Event 1st sample abs. time : 2023-07-20T18:56:59.856.242.637)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 10, 32bit 10MHz counter = 12.937573600 corrected by 40bit 10MHz counter of 12.081328500 obtained at 1Hz counter of 10. Result: 10.856248011
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              10.856247836
   Event data descriptor XO time (reconstructed seconds from XP start)    :              10.856248011
   Sampling frequency correction factor for this event:     0.999996600

 Event no. 2 total number of packets: 204
    Page no. 60:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 1  ordered packets: 204
   TM values from -233 to 227 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=13 C1MHz=0.110454
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 203 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: 15.3408976
   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:57:02.110.454.000
   Event 1st sample abs. time : 2023-07-20T18:57:02.054.965.637)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 13, 32bit 10MHz counter = 15.340897600 corrected by 40bit 10MHz counter of 15.081318100 obtained at 1Hz counter of 13. Result: 13.259580383
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              13.259580208
   Event data descriptor XO time (reconstructed seconds from XP start)    :              13.259580383
   Sampling frequency correction factor for this event:     0.999996600

 Event no. 3 total number of packets: 5712
    Page no. 1:  204 packets  -- OK;  memory page(s):
      51 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      52 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      53 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      54 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      55 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      56 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      57 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      58 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      59 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      60 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      61 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      62 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      63 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      64 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      65 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      66 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      67 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      68 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      69 in 204 packets (all packets)  --OK-- 
    Page no. 20:  204 packets  -- OK;  memory page(s):
      70 in 204 packets (all packets)  --OK-- 
    Page no. 21:  204 packets  -- OK;  memory page(s):
      71 in 204 packets (all packets)  --OK-- 
    Page no. 22:  204 packets  -- OK;  memory page(s):
      72 in 204 packets (all packets)  --OK-- 
    Page no. 23:  204 packets  -- OK;  memory page(s):
      73 in 204 packets (all packets)  --OK-- 
    Page no. 24:  204 packets  -- OK;  memory page(s):
      74 in 204 packets (all packets)  --OK-- 
    Page no. 25:  204 packets  -- OK;  memory page(s):
      75 in 204 packets (all packets)  --OK-- 
    Page no. 26:  204 packets  -- OK;  memory page(s):
      76 in 204 packets (all packets)  --OK-- 
    Page no. 27:  204 packets  -- OK;  memory page(s):
      77 in 204 packets (all packets)  --OK-- 
    Page no. 28:  204 packets  -- OK;  memory page(s):
      78 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 28  ordered packets: 5712
   TM values from -301 to 237 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=18 C1MHz=0.811863
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 5711 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: 20.8376776
   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:57:07.811.863.000
   Event 1st sample abs. time : 2023-07-20T18:57:07.756.374.637)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 18, 32bit 10MHz counter = 20.837677600 corrected by 40bit 10MHz counter of 15.081318100 obtained at 1Hz counter of 13. Result: 18.756379072
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              18.756378897
   Event data descriptor XO time (reconstructed seconds from XP start)    :              18.756379072
   Sampling frequency correction factor for this event:     0.999996600
--
Extremes in separate events:

 - Event number: 1 from 2023-07-20T18:56:59.856.242.637 to 2023-07-20T18:56:59.929.070.884 (XO: 10.856247836 - 10.929076084)
   Min TM value:-329 at an offset of 53967.558 usec -> 2023-07-20T18:56:59.910.210.195 (XO: 10.910215395)
   Max TM value:220 at an offset of 53967.821 usec -> 2023-07-20T18:56:59.910.210.457 (XO: 10.910215657)
   Max dTM/dt [1/us]:2.45e+03 at an offset of 53967.683 usec -> 2023-07-20T18:56:59.910.210.320 (XO: 10.910215520)
   Min dTM/dt [1/us]:-2.20e+03 at an offset of 53965.283 usec -> 2023-07-20T18:56:59.910.207.920 (XO: 10.910213120)
   Med: -4.00000   Ave: -4.4900066   Std: 16.253063

 - Event number: 2 from 2023-07-20T18:57:02.054.965.637 to 2023-07-20T18:57:02.058.433.648 (XO: 13.259580208 - 13.263048219)
   Min TM value:-233 at an offset of 459.514 usec -> 2023-07-20T18:57:02.055.425.151 (XO: 13.260039722)
   Max TM value:227 at an offset of 560.177 usec -> 2023-07-20T18:57:02.055.525.813 (XO: 13.260140384)
   Max dTM/dt [1/us]:2.07e+03 at an offset of 517.752 usec -> 2023-07-20T18:57:02.055.483.388 (XO: 13.260097959)
   Min dTM/dt [1/us]:-1.98e+03 at an offset of 560.227 usec -> 2023-07-20T18:57:02.055.525.863 (XO: 13.260140434)
   Med: -4.00000   Ave: -4.3779268   Std: 16.372330

 - Event number: 3 from 2023-07-20T18:57:07.756.374.637 to 2023-07-20T18:57:07.853.478.967 (XO: 18.756378897 - 18.853483227)
   Min TM value:-301 at an offset of 53282.431 usec -> 2023-07-20T18:57:07.809.657.068 (XO: 18.809661328)
   Max TM value:237 at an offset of 93112.704 usec -> 2023-07-20T18:57:07.849.487.341 (XO: 18.849491601)
   Max dTM/dt [1/us]:2.46e+03 at an offset of 53284.794 usec -> 2023-07-20T18:57:07.809.659.430 (XO: 18.809663690)
   Min dTM/dt [1/us]:-2.45e+03 at an offset of 13325.208 usec -> 2023-07-20T18:57:07.769.699.844 (XO: 18.769704104)
   Med: -4.00000   Ave: -4.3981936   Std: 13.802481
