-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Mon Mar 13 23:33:57 2023 UTC
-- File 20220605_105508_1227.dat, 62  packets found.
APID:
      1227 (SL) in 62 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 62 packets (all packets)
Total number of packets: 
      18 in 62 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 6.042497 to 54.521958
-each separately from 6s to 54s and from 42497us to 942894us.
   Differences in neigboring packets: 
      0.000017 in 58 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      17.379558 in 1 packets: 18
      16.519972 in 1 packets: 36
      14.578945 in 1 packets: 54
MIU packet time from 2022-06-05T10:55:17.042.497.000 to 2022-06-05T10:56:05.521.958.000
   Differences in neigboring packets: 
      0.000017 in 58 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      17.379558 in 1 packets: 18
      16.519972 in 1 packets: 36
      14.578945 in 1 packets: 54
MIU orbit number: 
      60000 in 62 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 62 packets (all packets)
MIU orbit information / number of events: 
      0 in 62 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 62 packets (all packets)
Instrument anomalies: 
      0 (OK) in 62 packets (all packets)
FPGA configuration version: 
      211 in 62 packets (all packets)
10 MHz counter at the last 1Hz pulse from 7.6480814 to 55.6479232
   Differences in neigboring packets: 
      0.0000000 in 58 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      16.9999440 in 1 packets: 18
      15.9999473 in 1 packets: 36
      14.9999505 in 1 packets: 54
Temperature FPGA: 
      FF -> 56.3 degC in 36 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      FE -> 57.6 degC in 26 packets: 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, ...
Temperature XO: 
      C6 -> 45.2 degC in 62 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 62 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 62 packets (all packets)
Number of external events: 
      0 in 62 packets (all packets)
Number of generated alerts: 
      0 in 62 packets (all packets)
Survey memory error: 
      0 in 62 packets (all packets)
Event memory error: 
      0 in 62 packets (all packets)
Configuration error: 
      0 in 62 packets (all packets)
SDRAM CRC error: 
      0 in 62 packets (all packets)
Radio gain: 
      0 in 62 packets (all packets)
Radio bandwidth: 
      0 in 62 packets (all packets)
Digital gain: 
      0 in 62 packets (all packets)
Analog gain: 
      0 in 62 packets (all packets)
 
SURVEY DATA READER
-- File 20220605_105508_1227.dat, 3 SL data blocks found. Extra packets: 8.
   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:
      70 in 18 packets (all packets)  -- OK --
   10 MHz counter from 7.6905795 to 7.6908685
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
      Difference to the following block: 17.3795030  -- OK for SL --
   MIU time from 2022-06-05T10:55:17.042.497.000 to 2022-06-05T10:55:17.042.786.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
      Difference to the following block: 17.379558

 - 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:
      71 in 18 packets (all packets)  -- OK --
   10 MHz counter from 25.0703715 to 25.0706605
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
      Difference to the following block: 16.5199190  -- OK for SL --
   MIU time from 2022-06-05T10:55:34.422.344.000 to 2022-06-05T10:55:34.422.633.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
      Difference to the following block: 16.519972

 - 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:
      72 in 18 packets (all packets)  -- OK --
   10 MHz counter from 41.5905795 to 41.5908685
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
   MIU time from 2022-06-05T10:55:50.942.605.000 to 2022-06-05T10:55:50.942.894.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 = 6, 32bit 10MHz counter = 7.690579500 corrected by 40bit 10MHz counter of 7.648081400 obtained at 1Hz counter of 6. Result: 6.042498240
--
   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.999996600 - 0.999996700
   Min 1st sample MIU time among all SL packets: 2022-06-05T10:55:17.042.356.725
   Max 1st sample MIU time among all SL packets: 2022-06-05T10:55:50.942.753.725
   Min 1st sample XO time among all SL packets: 6.042357965
   Max 1st sample XO time among all SL packets: 39.942758730
   TM values from -237 to 217 median:-5.00000
--
Extremes and waveform characteristics in blocks of SL data packets:

 - Block number: 1 starting at 2022-06-05T10:55:17.042.356.725 (XO: 6.042357965 - 6.042663966, t=45.2 degC)  Rank: 00070
   TM values: Max =   217  Min =  -237  Ave =    -4.47  Std =    30.68
   Min TM value:-237 at an offset of 180.826 usec -> 2022-06-05T10:55:17.042.537.550 (XO: 6.042538790)
   Max TM value:217 at an offset of 126.775 usec -> 2022-06-05T10:55:17.042.483.500 (XO: 6.042484740)
   Max dTM/dt [1/us]:1.72e+03 at an offset of 183.113 usec -> 2022-06-05T10:55:17.042.539.838 (XO: 6.042541078)
   Min dTM/dt [1/us]:-2.14e+03 at an offset of 180.713 usec -> 2022-06-05T10:55:17.042.537.438 (XO: 6.042538678)

 - Block number: 2 starting at 2022-06-05T10:55:34.422.203.725 (XO: 23.422207218 - 23.422513219, t=45.2 degC)  Rank: 00071
   TM values: Max =   172  Min =  -210  Ave =    -4.52  Std =    31.05
   Min TM value:-210 at an offset of 231.713 usec -> 2022-06-05T10:55:34.422.435.438 (XO: 23.422438932)
   Max TM value:172 at an offset of 172.163 usec -> 2022-06-05T10:55:34.422.375.888 (XO: 23.422379381)
   Max dTM/dt [1/us]:1.52e+03 at an offset of 172.001 usec -> 2022-06-05T10:55:34.422.375.725 (XO: 23.422379219)
   Min dTM/dt [1/us]:-1.85e+03 at an offset of 231.601 usec -> 2022-06-05T10:55:34.422.435.325 (XO: 23.422438819)

 - Block number: 3 starting at 2022-06-05T10:55:50.942.464.725 (XO: 39.942469729 - 39.942775730, t=45.2 degC)  Rank: 00072
   TM values: Max =   210  Min =  -199  Ave =    -4.45  Std =    21.84
   Min TM value:-199 at an offset of 116.200 usec -> 2022-06-05T10:55:50.942.580.925 (XO: 39.942585930)
   Max TM value:210 at an offset of 115.950 usec -> 2022-06-05T10:55:50.942.580.675 (XO: 39.942585680)
   Max dTM/dt [1/us]:1.50e+03 at an offset of 113.613 usec -> 2022-06-05T10:55:50.942.578.337 (XO: 39.942583342)
   Min dTM/dt [1/us]:-2.01e+03 at an offset of 116.075 usec -> 2022-06-05T10:55:50.942.580.800 (XO: 39.942585805)
