-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Mon Jan  8 17:32:46 2024 UTC
-- File 20230721_181427_1227.dat, 69  packets found.
APID:
      1227 (SL) in 69 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 69 packets (all packets)
Total number of packets: 
      18 in 69 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 9.560949 to 52.021409
-each separately from 9s to 52s and from 21171us to 911386us.
   Differences in neigboring packets: 
      0.000017 in 65 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      16.349859 in 1 packets: 18
      11.459799 in 1 packets: 36
      14.649697 in 1 packets: 54
MIU packet time from 2023-07-21T18:14:39.560.949.000 to 2023-07-21T18:15:22.021.409.000
   Differences in neigboring packets: 
      0.000017 in 65 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      16.349859 in 1 packets: 18
      11.459799 in 1 packets: 36
      14.649697 in 1 packets: 54
MIU orbit number: 
      60000 in 69 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 69 packets (all packets)
MIU orbit information / number of events: 
      0 in 69 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 69 packets (all packets)
Instrument anomalies: 
      0 (OK) in 69 packets (all packets)
FPGA configuration version: 
      211 in 69 packets (all packets)
10 MHz counter at the last 1Hz pulse from 10.7109505 to 53.7108096
   Differences in neigboring packets: 
      0.0000000 in 65 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      15.9999476 in 1 packets: 18
      11.9999606 in 1 packets: 36
      14.9999509 in 1 packets: 54
Temperature FPGA: 
      FF -> 56.3 degC in 69 packets (all packets)
Temperature XO: 
      C6 -> 45.2 degC in 69 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 69 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 69 packets (all packets)
Number of external events: 
      0 in 1 packets: 1
      1 in 18 packets: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19
      2 in 36 packets: 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, ...
      3 in 14 packets: 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69
Number of generated alerts: 
      0 in 1 packets: 1
      1 in 18 packets: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19
      2 in 36 packets: 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, ...
      3 in 14 packets: 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69
Survey memory error: 
      0 in 69 packets (all packets)
Event memory error: 
      0 in 69 packets (all packets)
Configuration error: 
      0 in 69 packets (all packets)
SDRAM CRC error: 
      0 in 69 packets (all packets)
Radio gain: 
      0 in 69 packets (all packets)
Radio bandwidth: 
      0 in 69 packets (all packets)
Digital gain: 
      0 in 69 packets (all packets)
Analog gain: 
      0 in 69 packets (all packets)
 
SURVEY DATA READER
-- File 20230721_181427_1227.dat, 3 SL data blocks found. Extra packets: 15.
   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:
      121 in 18 packets (all packets)  -- OK --
   10 MHz counter from 11.2719015 to 11.2721905
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
      Difference to the following block: 16.3498070  -- OK for SL --
   MIU time from 2023-07-21T18:14:39.560.949.000 to 2023-07-21T18:14:39.561.238.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
      Difference to the following block: 16.349859

 - 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:
      84 in 18 packets (all packets)  -- OK --
   10 MHz counter from 27.6219975 to 27.6222865
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
      Difference to the following block: 11.4597590  -- OK for SL --
   MIU time from 2023-07-21T18:14:55.911.097.000 to 2023-07-21T18:14:55.911.386.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
      Difference to the following block: 11.459799

 - Block number: 3 from the sequence of 18 packets.
   Block numbers in the data:
      3 in 18 packets (all packets)  -- OK --
   Ranks for SL, 0 for SR and SA:
      80 in 18 packets (all packets)  -- OK --
   10 MHz counter from 39.0820455 to 39.0823345
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
   MIU time from 2023-07-21T18:15:07.371.185.000 to 2023-07-21T18:15:07.371.474.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
   --- Rel. time correction for 54 points based on 59 XO calibration points at 1Hz counter from 0 to 58
   --- First point: 1Hz counter = 9, 32bit 10MHz counter = 11.271901500 corrected by 40bit 10MHz counter of 10.710950500 obtained at 1Hz counter of 9. Result: 9.560952795
--
   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.999996700 - 0.999996800
   Min 1st sample MIU time among all SL packets: 2023-07-21T18:14:39.560.808.725
   Max 1st sample MIU time among all SL packets: 2023-07-21T18:15:07.371.333.725
   Min 1st sample XO time among all SL packets: 9.560812520
   Max 1st sample XO time among all SL packets: 37.371336750
   TM values from -1000 to 1052 median:-4.00000
--
Extremes and waveform characteristics in blocks of SL data packets:

 - Block number: 1 starting at 2023-07-21T18:14:39.560.808.725 (XO: 9.560812520 - 9.561118521, t=45.2 degC)  Rank: 00121
   TM values: Max =  1052  Min = -1000  Ave =    -4.46  Std =    44.86
   Min TM value:-1000 at an offset of 81.738 usec -> 2023-07-21T18:14:39.560.890.462 (XO: 9.560894257)
   Max TM value:1052 at an offset of 81.625 usec -> 2023-07-21T18:14:39.560.890.350 (XO: 9.560894145)
   Max dTM/dt [1/us]:1.29e+04 at an offset of 81.775 usec -> 2023-07-21T18:14:39.560.890.500 (XO: 9.560894295)
   Min dTM/dt [1/us]:-1.26e+04 at an offset of 81.675 usec -> 2023-07-21T18:14:39.560.890.400 (XO: 9.560894195)

 - Block number: 2 starting at 2023-07-21T18:14:55.910.956.725 (XO: 25.910962131 - 25.911268132, t=45.2 degC)  Rank: 00084
   TM values: Max =   231  Min =  -274  Ave =    -4.55  Std =    33.13
   Min TM value:-274 at an offset of 106.375 usec -> 2023-07-21T18:14:55.911.063.100 (XO: 25.911068507)
   Max TM value:231 at an offset of 111.163 usec -> 2023-07-21T18:14:55.911.067.887 (XO: 25.911073294)
   Max dTM/dt [1/us]:2.15e+03 at an offset of 137.350 usec -> 2023-07-21T18:14:55.911.094.075 (XO: 25.911099482)
   Min dTM/dt [1/us]:-2.09e+03 at an offset of 122.963 usec -> 2023-07-21T18:14:55.911.079.687 (XO: 25.911085094)

 - Block number: 3 starting at 2023-07-21T18:15:07.371.044.725 (XO: 37.371047749 - 37.371353750, t=45.2 degC)  Rank: 00080
   TM values: Max =   244  Min =  -337  Ave =    -4.52  Std =    29.40
   Min TM value:-337 at an offset of 82.638 usec -> 2023-07-21T18:15:07.371.127.362 (XO: 37.371130387)
   Max TM value:244 at an offset of 82.400 usec -> 2023-07-21T18:15:07.371.127.125 (XO: 37.371130150)
   Max dTM/dt [1/us]:2.68e+03 at an offset of 84.863 usec -> 2023-07-21T18:15:07.371.129.587 (XO: 37.371132612)
   Min dTM/dt [1/us]:-2.91e+03 at an offset of 82.500 usec -> 2023-07-21T18:15:07.371.127.225 (XO: 37.371130250)
