General update

pull/10/head
Cees Bassa 2015-06-03 21:26:22 +02:00
parent 672a4782fb
commit 33b08f96d7
2 changed files with 17 additions and 1 deletions

3
rfio.h
View File

@ -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);

View File

@ -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);