diff --git a/cdmt.cu b/cdmt.cu index 3f43fef..95f4eae 100644 --- a/cdmt.cu +++ b/cdmt.cu @@ -11,6 +11,7 @@ #include #include #include +#include #define HEADERSIZE 4096 #define DMCONSTANT 2.41e-10 @@ -18,7 +19,7 @@ // Struct for header information struct header { int64_t headersize,buffersize; - unsigned int nchan,nsamp,nbit,nif,nsub; + unsigned int nchan,nsamp,nbit=8,nif,nsub; int machine_id,telescope_id,nbeam,ibeam,sumif; double tstart,tsamp,fch1,foff,fcen,bwchan; double src_raj,src_dej,az_start,za_start; @@ -44,7 +45,7 @@ void write_filterbank_header(struct header h,FILE *file); // Usage void usage() { - printf("cdmt -P -d -D -b -N -n -o \n\n"); + printf("cdmt -P -d -D -b -N -n -r