updated
parent
7a3dd330dd
commit
e41e23cbe3
6
rfplot.c
6
rfplot.c
|
@ -690,6 +690,12 @@ struct trace locate_trace(struct spectrogram s,struct select sel)
|
|||
j0=(int) floor(y-sel.w);
|
||||
j1=(int) floor(y+sel.w);
|
||||
|
||||
// Keep in range
|
||||
if (j0<0)
|
||||
j0=0;
|
||||
if (j1>=s.nchan)
|
||||
j1=s.nchan;
|
||||
|
||||
// Find maximum and significance
|
||||
zm=0.0;
|
||||
jmax=0;
|
||||
|
|
|
@ -288,7 +288,7 @@ struct trace *compute_trace(double *mjd,int n,int site_id,float freq,float bw,in
|
|||
break;
|
||||
sscanf(line,"%d %lf",&satno,&freq0);
|
||||
|
||||
if (freq0>=fmin && freq0<=fmax)
|
||||
if (freq0>=0.95*fmin && freq0<=1.05*fmax)
|
||||
i++;
|
||||
}
|
||||
fclose(infile);
|
||||
|
@ -318,7 +318,7 @@ struct trace *compute_trace(double *mjd,int n,int site_id,float freq,float bw,in
|
|||
if (fgetline(infile,line,LIM)<=0)
|
||||
break;
|
||||
sscanf(line,"%d %lf",&satno,&freq0);
|
||||
if (freq0<fmin || freq0>fmax)
|
||||
if (freq0<0.95*fmin || freq0>1.05*fmax)
|
||||
continue;
|
||||
|
||||
// Allocate
|
||||
|
|
Loading…
Reference in New Issue