General update
parent
672a4782fb
commit
33b08f96d7
3
rfio.h
3
rfio.h
|
@ -3,7 +3,8 @@ struct spectrogram {
|
|||
double *mjd;
|
||||
double freq,samp_rate;
|
||||
float *length;
|
||||
float *z;
|
||||
float *z,*zavg,*zstd;
|
||||
float zmin,zmax;
|
||||
char nfd0[32];
|
||||
};
|
||||
struct spectrogram read_spectrogram(char *prefix,int isub,int nsub,double f0,double df0,int nbin,double foff);
|
||||
|
|
15
rfplot.c
15
rfplot.c
|
@ -414,7 +414,20 @@ int main(int argc,char *argv[])
|
|||
// cpgeras();
|
||||
cpgpage();
|
||||
cpgsci(1);
|
||||
/*
|
||||
cpgsvp(0.1,0.95,0.9,0.95);
|
||||
cpgswin(xmin,xmax,s.zmin,s.zmax);
|
||||
cpgbox("BCTS",0.,0,"BCTSN",0.,0);
|
||||
|
||||
for (i=0;i<s.nsub;i++) {
|
||||
if (i==0)
|
||||
cpgmove((float) i,s.zavg[i]);
|
||||
else
|
||||
cpgdraw((float) i,s.zavg[i]);
|
||||
}
|
||||
|
||||
cpgsvp(0.1,0.95,0.1,0.85);
|
||||
*/
|
||||
cpgsvp(0.1,0.95,0.1,0.95);
|
||||
cpgswin(xmin,xmax,ymin,ymax);
|
||||
|
||||
|
@ -912,6 +925,8 @@ int main(int argc,char *argv[])
|
|||
|
||||
// Free
|
||||
free(s.z);
|
||||
free(s.zavg);
|
||||
free(s.zstd);
|
||||
free(s.mjd);
|
||||
if (tf.n>0) {
|
||||
free(tf.mjd);
|
||||
|
|
Loading…
Reference in New Issue