-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Tue Mar  7 05:47:47 2023 UTC
-- File 20220522_211908_1227.dat, 46  packets found.
APID:
      1227 (SL) in 46 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 46 packets (all packets)
Total number of packets: 
      18 in 46 packets (all packets)
Packet No from 1 to 18
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 18
Hz and MHz counters from 10.033373 to 33.223225
-each separately from 10s to 33s and from 33373us to 953442us.
   Differences in neigboring packets: 
      0.000017 in 43 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      19.919491 in 1 packets: 18
      3.269630 in 1 packets: 36
MIU packet time from 2022-05-22T21:19:21.033.373.000 to 2022-05-22T21:19:44.223.225.000
   Differences in neigboring packets: 
      0.000017 in 43 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      19.919491 in 1 packets: 18
      3.269630 in 1 packets: 36
MIU orbit number: 
      60000 in 46 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 46 packets (all packets)
MIU orbit information / number of events: 
      0 in 46 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 46 packets (all packets)
Instrument anomalies: 
      0 (OK) in 46 packets (all packets)
FPGA configuration version: 
      211 in 46 packets (all packets)
10 MHz counter at the last 1Hz pulse from 11.5342960 to 34.5342135
   Differences in neigboring packets: 
      0.0000000 in 43 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      18.9999318 in 1 packets: 18
      3.9999857 in 1 packets: 36
Temperature FPGA: 
      01 -> 53.7 degC in 18 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18
      FF -> 56.3 degC in 18 packets: 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36
      00 -> 55.0 degC in 10 packets: 37, 38, 39, 40, 41, 42, 43, 44, 45, 46
Temperature XO: 
      C4 -> 42.0 degC in 46 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 46 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 46 packets (all packets)
Number of external events: 
      0 in 46 packets (all packets)
Number of generated alerts: 
      0 in 46 packets (all packets)
Survey memory error: 
      0 in 46 packets (all packets)
Event memory error: 
      0 in 46 packets (all packets)
Configuration error: 
      0 in 46 packets (all packets)
SDRAM CRC error: 
      0 in 46 packets (all packets)
Radio gain: 
      0 in 46 packets (all packets)
Radio bandwidth: 
      0 in 46 packets (all packets)
Digital gain: 
      0 in 46 packets (all packets)
Analog gain: 
      0 in 46 packets (all packets)
 
SURVEY DATA READER
-- File 20220522_211908_1227.dat, 2 SL data blocks found. Extra packets: 10.
   ERROR -  Extra packets
--
Data structure of blocks of survey data packets:

 - Block number: 1 from the sequence of 18 packets.
   Block numbers in the data:
      1 in 18 packets (all packets)  -- OK --
   Ranks for SL, 0 for SR and SA:
      64 in 18 packets (all packets)  -- OK --
   10 MHz counter from 11.5676705 to 11.5679595
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
      Difference to the following block: 19.9194230  -- OK for SL --
   MIU time from 2022-05-22T21:19:21.033.373.000 to 2022-05-22T21:19:21.033.662.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
      Difference to the following block: 19.919491

 - Block number: 2 from the sequence of 18 packets.
   Block numbers in the data:
      2 in 18 packets (all packets)  -- OK --
   Ranks for SL, 0 for SR and SA:
      65 in 18 packets (all packets)  -- OK --
   10 MHz counter from 31.4873825 to 31.4876715
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
   MIU time from 2022-05-22T21:19:40.953.153.000 to 2022-05-22T21:19:40.953.442.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
   --- Rel. time correction for 36 points based on 44 XO calibration points at 1Hz counter from 0 to 43
   --- First point: 1Hz counter = 10, 32bit 10MHz counter = 11.567670500 corrected by 40bit 10MHz counter of 11.534296000 obtained at 1Hz counter of 10. Result: 10.033374620
--
   MIU or XO time of the 1st SL sample = header (MIU or corrected XO) time +offset(if negative) - 275 ns delay
   Samplig frequency correction factor in all SL packets: 0.999996400 - 0.999996400
   Min 1st sample MIU time among all SL packets: 2022-05-22T21:19:21.033.232.725
   Max 1st sample MIU time among all SL packets: 2022-05-22T21:19:40.953.301.725
   Min 1st sample XO time among all SL packets: 10.033234345
   Max 1st sample XO time among all SL packets: 29.953306857
   TM values from -243 to 221 median:-4.00000
--
Extremes and waveform characteristics in blocks of SL data packets:

 - Block number: 1 starting at 2022-05-22T21:19:21.033.232.725 (XO: 10.033234345 - 10.033540346, t=42.0 degC)  Rank: 00064
   TM values: Max =   221  Min =  -217  Ave =    -4.38  Std =    32.83
   Min TM value:-217 at an offset of 158.401 usec -> 2022-05-22T21:19:21.033.391.125 (XO: 10.033392745)
   Max TM value:221 at an offset of 104.900 usec -> 2022-05-22T21:19:21.033.337.625 (XO: 10.033339245)
   Max dTM/dt [1/us]:2.03e+03 at an offset of 44.325 usec -> 2022-05-22T21:19:21.033.277.050 (XO: 10.033278670)
   Min dTM/dt [1/us]:-2.43e+03 at an offset of 105.063 usec -> 2022-05-22T21:19:21.033.337.787 (XO: 10.033339408)

 - Block number: 2 starting at 2022-05-22T21:19:40.953.012.725 (XO: 29.953017856 - 29.953323857, t=42.0 degC)  Rank: 00065
   TM values: Max =   193  Min =  -243  Ave =    -4.45  Std =    26.40
   Min TM value:-243 at an offset of 130.700 usec -> 2022-05-22T21:19:40.953.143.425 (XO: 29.953148556)
   Max TM value:193 at an offset of 113.538 usec -> 2022-05-22T21:19:40.953.126.262 (XO: 29.953131394)
   Max dTM/dt [1/us]:1.75e+03 at an offset of 145.588 usec -> 2022-05-22T21:19:40.953.158.313 (XO: 29.953163444)
   Min dTM/dt [1/us]:-1.79e+03 at an offset of 130.563 usec -> 2022-05-22T21:19:40.953.143.287 (XO: 29.953148419)
