Skip to content
Snippets Groups Projects
Commit f922ce01 authored by Vlad Kondratiev's avatar Vlad Kondratiev
Browse files

number of samples in 2bf2fits is changed to be at least 8192

parent 48192140
Branches master
No related tags found
No related merge requests found
......@@ -381,6 +381,8 @@ class PipeUnitPart(PipeUnit):
if ss.sapid == self.sapid:
sap = ss
nsamples=int(49152 / (self.nrChanPerSub * self.downsample_factor)) # this roughly corresponds to a ~250ms block
if nsamples < 8192: # VK: changing this value as 8192 (or higher) is usually used and passing block size in TMSS does not currently work - 23.04.2024
nsamples = 8192
# then we tweak this value to be sure it's common denominator of the total number of samples
nsamples=self.lcd(nsamples, os.path.getsize(input_file)/(4*nsubs_eff*self.nrChanPerSub))
cmd="2bf2fits %s %s -append -nbits 8 -A %d -sigma %d -nsubs %d -sap %d -tab %d -part %d -stokes %d -o %s \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment