-- OK --
-----------------> BLESK ver.2021-02-27 run on Sat Jan  1 10:58:03 2022 UTC
-- File 20210902_170006_1227.dat, 72  packets found.
APID:
      1227 (SL) in 72 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 72 packets (all packets)
Total number of packets: 
      18 in 72 packets (all packets)
Packet No from 1 to 18
   Sequence of packet numbers -- OK -- 
Hz and MHz counters from 4.135204 to 45.822671
-each separately from 4s to 45s and from 135204us to 822671us.
   Differences in neigboring packets: 
      0.000017 in 68 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      12.277143 in 1 packets: 18
      16.834376 in 1 packets: 36
      12.574792 in 1 packets: 54
MIU packet time from 2021-09-02T17:00:13.135.204.000 to 2021-09-02T17:00:54.822.671.000
   Differences in neigboring packets: 
      0.000017 in 68 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      12.277143 in 1 packets: 18
      16.834376 in 1 packets: 36
      12.574792 in 1 packets: 54
MIU orbit number: 
      60000 in 72 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 72 packets (all packets)
MIU orbit information / number of events: 
      0 in 72 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 72 packets (all packets)
Instrument anomalies: 
      0 (OK) in 72 packets (all packets)
FPGA configuration version: 
      211 in 72 packets (all packets)
10 MHz counter at the last 1Hz pulse from 6.2502199 to 47.2500826
   Differences in neigboring packets: 
      0.0000000 in 68 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      11.9999598 in 2 packets: 18, 54
      16.9999431 in 1 packets: 36
Temperature FPGA: 
      03 -> 51.1 degC in 54 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      04 -> 49.8 degC in 18 packets: 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54
Temperature XO: 
      C1 -> 37.2 degC in 72 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 72 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 72 packets (all packets)
Number of external events: 
      0 in 72 packets (all packets)
Number of generated alerts: 
      0 in 72 packets (all packets)
Survey memory error: 
      0 in 72 packets (all packets)
Event memory error: 
      0 in 72 packets (all packets)
Configuration error: 
      0 in 72 packets (all packets)
SDRAM CRC error: 
      0 in 72 packets (all packets)
Radio gain: 
      0 in 72 packets (all packets)
Radio bandwidth: 
      0 in 72 packets (all packets)
Digital gain: 
      0 in 72 packets (all packets)
Analog gain: 
      0 in 72 packets (all packets)
 
SURVEY DATA READER
-- File 20210902_170006_1227.dat, 4 SL data blocks found. Extra packets: 0.
--
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:
      71 in 18 packets (all packets)  -- OK --
   10 MHz counter from 6.3854251 to 6.3857141
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
      Difference to the following block: 12.2771030  -- OK for SL --
   MIU time from 2021-09-02T17:00:13.135.204.000 to 2021-09-02T17:00:13.135.493.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
      Difference to the following block: 12.277143

 - 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:
      74 in 18 packets (all packets)  -- OK --
   10 MHz counter from 18.6628171 to 18.6631061
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
      Difference to the following block: 16.8343190  -- OK for SL --
   MIU time from 2021-09-02T17:00:25.412.636.000 to 2021-09-02T17:00:25.412.925.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
      Difference to the following block: 16.834376

 - 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 35.4974251 to 35.4977141
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
      Difference to the following block: 12.5747510  -- OK for SL --
   MIU time from 2021-09-02T17:00:42.247.301.000 to 2021-09-02T17:00:42.247.590.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
      Difference to the following block: 12.574792

 - Block number: 4 from the sequence of 18 packets.
   Block numbers in the data:
      4 in 18 packets (all packets)  -- OK --
   Ranks for SL, 0 for SR and SA:
      79 in 18 packets (all packets)  -- OK --
   10 MHz counter from 48.0724651 to 48.0727541
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
   MIU time from 2021-09-02T17:00:54.822.382.000 to 2021-09-02T17:00:54.822.671.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
   --- Rel. time correction for 72 points based on 59 XO calibration points at 1Hz counter from 0 to 58
   --- First point: 1Hz counter = 4, 32bit 10MHz counter = 6.385425100 corrected by 40bit 10MHz counter of 6.250219900 obtained at 1Hz counter of 4. Result: 4.135205646
--
   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: 2021-09-02T17:00:13.135.063.725
   Max 1st sample MIU time among all SL packets: 2021-09-02T17:00:54.822.530.725
   Min 1st sample XO time among all SL packets: 4.135065371
   Max 1st sample XO time among all SL packets: 45.822533939
   TM values from -303 to 264 median:-5.00000
--
Extremes and waveform characteristics in blocks of SL data packets:

 - Block number: 1 starting at 2021-09-02T17:00:13.135.063.725 (XO: 4.135065371 - 4.135371372, t=37.2 degC)  Rank: 00071
   TM values: Max =   260  Min =  -279  Ave =    -4.44  Std =    37.06
   Min TM value:-279 at an offset of 52.275 usec -> 2021-09-02T17:00:13.135.116.000 (XO: 4.135117646)
   Max TM value:260 at an offset of 54.738 usec -> 2021-09-02T17:00:13.135.118.462 (XO: 4.135120108)
   Max dTM/dt [1/us]:2.86e+03 at an offset of 54.625 usec -> 2021-09-02T17:00:13.135.118.350 (XO: 4.135119996)
   Min dTM/dt [1/us]:-2.64e+03 at an offset of 52.125 usec -> 2021-09-02T17:00:13.135.115.850 (XO: 4.135117496)

 - Block number: 2 starting at 2021-09-02T17:00:25.412.495.725 (XO: 16.412498527 - 16.412804529, t=37.2 degC)  Rank: 00074
   TM values: Max =   264  Min =  -303  Ave =    -4.57  Std =    27.41
   Min TM value:-303 at an offset of 100.988 usec -> 2021-09-02T17:00:25.412.596.712 (XO: 16.412599515)
   Max TM value:264 at an offset of 100.688 usec -> 2021-09-02T17:00:25.412.596.412 (XO: 16.412599215)
   Max dTM/dt [1/us]:2.94e+03 at an offset of 103.338 usec -> 2021-09-02T17:00:25.412.599.062 (XO: 16.412601865)
   Min dTM/dt [1/us]:-2.62e+03 at an offset of 100.800 usec -> 2021-09-02T17:00:25.412.596.525 (XO: 16.412599328)

 - Block number: 3 starting at 2021-09-02T17:00:42.247.160.725 (XO: 33.247162865 - 33.247468866, t=37.2 degC)  Rank: 00080
   TM values: Max =   242  Min =  -277  Ave =    -4.51  Std =    27.59
   Min TM value:-277 at an offset of 124.925 usec -> 2021-09-02T17:00:42.247.285.650 (XO: 33.247287791)
   Max TM value:242 at an offset of 127.488 usec -> 2021-09-02T17:00:42.247.288.212 (XO: 33.247290353)
   Max dTM/dt [1/us]:2.80e+03 at an offset of 127.313 usec -> 2021-09-02T17:00:42.247.288.037 (XO: 33.247290178)
   Min dTM/dt [1/us]:-2.74e+03 at an offset of 124.775 usec -> 2021-09-02T17:00:42.247.285.500 (XO: 33.247287641)

 - Block number: 4 starting at 2021-09-02T17:00:54.822.241.725 (XO: 45.822244938 - 45.822550939, t=37.2 degC)  Rank: 00079
   TM values: Max =   225  Min =  -282  Ave =    -4.52  Std =    24.20
   Min TM value:-282 at an offset of 113.050 usec -> 2021-09-02T17:00:54.822.354.775 (XO: 45.822357989)
   Max TM value:225 at an offset of 115.500 usec -> 2021-09-02T17:00:54.822.357.225 (XO: 45.822360439)
   Max dTM/dt [1/us]:2.46e+03 at an offset of 115.375 usec -> 2021-09-02T17:00:54.822.357.100 (XO: 45.822360314)
   Min dTM/dt [1/us]:-2.43e+03 at an offset of 112.850 usec -> 2021-09-02T17:00:54.822.354.575 (XO: 45.822357789)
