added some Gotchas in notes
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 13 Feb 2018 20:39:46 +0000 (20:39 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 13 Feb 2018 20:39:46 +0000 (20:39 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3402 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/octave/nf_from_gr.m

index 67ff0d738eaed0f29138b2b7fea87a4a11e9aaf4..bd36d02401a90ea275a388ff462e459b0cbd96be 100644 (file)
@@ -1,13 +1,24 @@
 % nf_from_gr.m
 % David Rowe Mar 2016
-%
-% Calculate NF from GNU Radio output samples in 
-% ...IQIQ... (32 bit float) sample files
-%
-% 1/ Take one sample with a -100dBm input carrier
-% 2/ Take another sample with no signal (just rx noise)
-% 3/ Set Fs, adjust st and en to use a chunk of spectrum without too
-%     many birdies.
+
+#{
+  Calculate NF from GNU Radio output samples in 
+  ...IQIQ... (32 bit float) sample files
+  1/ Take one sample with a -100dBm input carrier
+  2/ Take another sample with no signal (just rx noise)
+  3/ Set Fs, adjust st and en to use a chunk of spectrum without too
+      many birdies.
+  Gotchas:
+
+  1/ Inspect Figure(1), the time domain plots.
+  2/ Make sure plenty of ADC bits are being used with the noise-only sample,
+     we don't want ADC quantisation noise to dominate.  Aim for about half
+     full scale.
+  3/ Also watch out for clipping on either sample.
+
+#}
 
 1;