QRP,
I had looked at the S2P file using a text editor and could see the values were space delimited but the none of the columns were identifiable to me as the S21 log magnitude values displayed by the nanoVNA. For example at 50 kHz the insertion loss value was -34.013 dB but none of the values at 50000 in the S2P file below are that value.
# Hz S RI R 50
50000 -0.009529378 0.000616876 0.019876752 0.001359617 0 0 0 0
- Herb