diff --git a/baseb_graph.c b/baseb_graph.c index 9e57565..bcf61db 100644 --- a/baseb_graph.c +++ b/baseb_graph.c @@ -1425,7 +1425,7 @@ j=bg_first_xpoint; bg_carrfilter_points=0; for(i=bg_first_xpixel; i<=bg_last_xpixel; i+=bg.pixels_per_point) { - if(bg_ytmp[j] > 0.000000001) + if(bg_ytmp[j] > 1.e-7) { bg_carrfilter_points++; iy=2*bg.yfac_log*log10(1./bg_ytmp[j]); @@ -1692,7 +1692,6 @@ while(k <= fft3_size-j+1) k++; basebraw_fir_pts++; } -basebraw_fir_pts-=2; k=basebraw_fir_pts; memset(&basebraw_fir[k],0,(fft3_size-k)*sizeof(float)); t1=1.e-7*basebcarr_fir[fft3_size/2]; @@ -1706,7 +1705,6 @@ while(k1 && bg_binshape[i-1] > 0.0000031) +// Get the -140 dB point +while(i>1 && bg_binshape[i-1] > 1.e-7) { i--; binshape_points++; } +if(i > 10)i-=4; +k=fft3_size-i; while(i>0) { bg_binshape[i]=0; + bg_binshape[k]=0; i--; + k++; } binshape_total=binshape_points; while(i>0 && bg_binshape[i] > 1.5*t2) diff --git a/mix2.c b/mix2.c index 7150b51..255a8d8 100644 --- a/mix2.c +++ b/mix2.c @@ -534,17 +534,17 @@ good_poldata:; { for(i=0; i