Add check to ensure channelsize and subint size result in an integer number of spectra per subint

pull/10/head
Cees Bassa 2018-02-27 15:46:19 +01:00
parent 9fe03acb7b
commit 138514e794
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ int main(int argc,char *argv[])
return 0;
}
// Ensure integer number of spectra per subintegration
tint=ceil(fchan*tint)/fchan;
// Number of channels
nchan=(int) (samp_rate/fchan);