Hello PSRCHIVE experts,
I have psrsh script to delete a few bad channels at the lower part of the band. The output file reports wrong bandwidth and frequency. However the plotting programs (pazi/pav/psrplot) in recent psrchive version show the right frequency labels on the plots. The output file is also considerably smaller, implying that the channels were deleted. Is the header not being updated? Thanks!
Here is the psrsh script:
# delete RFI affected parts of the band
delete freq 2200.0:2500.0
# zap these frequencies as well
zap freq 2620.0:2650.0 2670.0:2690.0
Hey Ramesh,
by default, psrchive will not adjust the bandwidth and centre frequency in the header when you delete frequencies. To make it update these metadata, you can set
in your ~/.psrchive.cfg
Hope this helps,
Stefan
PS I deleted the bug 455 as it looks like it was a duplicate of this
Hi Stefan,
Great, that worked flawlessly! Thanks a ton. Please close this ticket!
Cheers,
Ramesh