-- OK --
-----------------> BLESK ver.2021-02-27 run on Mon Dec 13 10:58:32 2021 UTC
-- File 20210812_153145_1227.dat, 36  packets found.
APID:
      1227 (SL) in 36 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 36 packets (all packets)
Total number of packets: 
      18 in 36 packets (all packets)
Packet No from 1 to 18
   Sequence of packet numbers -- OK -- 
Hz and MHz counters from 10.668647 to 15.769913
-each separately from 10s to 15s and from 668647us to 769913us.
   Differences in neigboring packets: 
      0.000017 in 34 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      5.100688 in 1 packets: 18
MIU packet time from 2021-08-12T15:31:58.668.647.000 to 2021-08-12T15:32:03.769.913.000
   Differences in neigboring packets: 
      0.000017 in 34 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      5.100688 in 1 packets: 18
MIU orbit number: 
      60000 in 36 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 36 packets (all packets)
MIU orbit information / number of events: 
      0 in 36 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 36 packets (all packets)
Instrument anomalies: 
      0 (OK) in 36 packets (all packets)
FPGA configuration version: 
      211 in 36 packets (all packets)
10 MHz counter at the last 1Hz pulse from 11.8299158 to 16.8298991
   Differences in neigboring packets: 
      0.0000000 in 34 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, ...
      4.9999833 in 1 packets: 18
Temperature FPGA: 
      05 -> 48.5 degC in 18 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18
      06 -> 47.2 degC in 18 packets: 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36
Temperature XO: 
      C1 -> 37.2 degC in 36 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 36 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 36 packets (all packets)
Number of external events: 
      1 in 1 packets: 1
      2 in 35 packets: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, ...
Number of generated alerts: 
      1 in 1 packets: 1
      2 in 35 packets: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, ...
Survey memory error: 
      0 in 36 packets (all packets)
Event memory error: 
      0 in 36 packets (all packets)
Configuration error: 
      0 in 36 packets (all packets)
SDRAM CRC error: 
      0 in 36 packets (all packets)
Radio gain: 
      0 in 36 packets (all packets)
Radio bandwidth: 
      0 in 36 packets (all packets)
Digital gain: 
      0 in 36 packets (all packets)
Analog gain: 
      0 in 36 packets (all packets)
 
SURVEY DATA READER
-- File 20210812_153145_1227.dat, 2 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:
      84 in 18 packets (all packets)  -- OK --
   10 MHz counter from 12.4985638 to 12.4988528
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
      Difference to the following block: 5.1006710  -- OK for SL --
   MIU time from 2021-08-12T15:31:58.668.647.000 to 2021-08-12T15:31:58.668.936.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
      Difference to the following block: 5.100688

 - 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:
      80 in 18 packets (all packets)  -- OK --
   10 MHz counter from 17.5995238 to 17.5998128
      Difference between neigboring packets: 
      0.0000170 in 17 packets (all packets)  -- OK --
   MIU time from 2021-08-12T15:32:03.769.624.000 to 2021-08-12T15:32:03.769.913.000
      Difference between neigboring packets: 
      0.000017 in 17 packets (all packets)
   --- Rel. time correction for 36 points based on 29 XO calibration points at 1Hz counter from 0 to 28
   --- First point: 1Hz counter = 10, 32bit 10MHz counter = 12.498563800 corrected by 40bit 10MHz counter of 11.829915800 obtained at 1Hz counter of 10. Result: 10.668650273
--
   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.999996600
   Min 1st sample MIU time among all SL packets: 2021-08-12T15:31:58.668.506.725
   Max 1st sample MIU time among all SL packets: 2021-08-12T15:32:03.769.772.725
   Min 1st sample XO time among all SL packets: 10.668509998
   Max 1st sample XO time among all SL packets: 15.769776042
   TM values from -302 to 242 median:-5.00000
--
Extremes and waveform characteristics in blocks of SL data packets:

 - Block number: 1 starting at 2021-08-12T15:31:58.668.506.725 (XO: 10.668509998 - 10.668815999, t=37.2 degC)  Rank: 00084
   TM values: Max =   238  Min =  -239  Ave =    -4.46  Std =    20.89
   Min TM value:-239 at an offset of 120.688 usec -> 2021-08-12T15:31:58.668.627.412 (XO: 10.668630686)
   Max TM value:238 at an offset of 123.388 usec -> 2021-08-12T15:31:58.668.630.112 (XO: 10.668633386)
   Max dTM/dt [1/us]:1.97e+03 at an offset of 123.263 usec -> 2021-08-12T15:31:58.668.629.987 (XO: 10.668633261)
   Min dTM/dt [1/us]:-2.21e+03 at an offset of 120.538 usec -> 2021-08-12T15:31:58.668.627.262 (XO: 10.668630536)

 - Block number: 2 starting at 2021-08-12T15:32:03.769.483.725 (XO: 15.769487041 - 15.769793042, t=37.2 degC)  Rank: 00080
   TM values: Max =   242  Min =  -302  Ave =    -4.48  Std =    29.71
   Min TM value:-302 at an offset of 207.013 usec -> 2021-08-12T15:32:03.769.690.738 (XO: 15.769694054)
   Max TM value:242 at an offset of 122.088 usec -> 2021-08-12T15:32:03.769.605.812 (XO: 15.769609129)
   Max dTM/dt [1/us]:1.98e+03 at an offset of 121.925 usec -> 2021-08-12T15:32:03.769.605.650 (XO: 15.769608967)
   Min dTM/dt [1/us]:-2.38e+03 at an offset of 206.926 usec -> 2021-08-12T15:32:03.769.690.650 (XO: 15.769693967)
