Menu

#454 psrsh - delete command

next release
closed
psrsh (2)
5
2021-10-22
2021-10-22
Ramesh
No

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

Discussion

  • Ramesh

    Ramesh - 2021-10-22
    • summary: parish - delete command --> psrsh - delete command
     
  • Stefan Oslowski

    Stefan Oslowski - 2021-10-22

    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

    DeleteInterpreter::adjust_metadata_while_deleting_channels = 1
    

    in your ~/.psrchive.cfg

    Hope this helps,
    Stefan

    PS I deleted the bug 455 as it looks like it was a duplicate of this

     
  • Ramesh

    Ramesh - 2021-10-22

    Hi Stefan,

    Great, that worked flawlessly! Thanks a ton. Please close this ticket!

    Cheers,
    Ramesh

     
  • Stefan Oslowski

    Stefan Oslowski - 2021-10-22
    • status: open --> closed
    • assigned_to: Stefan Oslowski
     

Log in to post a comment.

MongoDB Logo MongoDB