SPLICE_DADA on GitHub
Latest version: 1.0.2 (22Jul2019)
|
SPLICE_DADA
Requirements: |
SPLICE_DADA allows you to join several .dada files together along the frequency direction, i.e. to join adjacent subbands.
A few backends and/or experiments acquire data in baseband mode and store them in the DADA format (file extension ".dada"). This is the most powerful and flexible data format possible, as it represents the "raw" complex voltages directly measured from the two receiver's feeds. Often times, mostly for computational reasons, the whole observing bandwidth is split into several subbands, which are processed independently and stored onto separate files by different machines. As a result, the observation will be composed by several groups of files, each group being relative to a separate subband. SPLICE_DADA allows you to stitch the subbands together, so as to produce a single file which embodies the whole observing bandwidth. This is very useful especially when one wants to produce a coherently-dedispersed search-mode data file from the original baseband DADA files.
|
1) Installation No actual installation procedure is needed to use SPLICE_DADA itself. You just need to have Python 2.7 and Numpy installed. Other than that, just:
Obviously, to have SPLICE_DADA at hand from any directory, you can add the folder where the code is located to your PATH environment variable.
To successfully use SPLICE_DADA, you need:
Let's imagine that we have observed the bright pulsar B0329+54 for 30 seconds in the P band (about 350 MHz) in baseband mode, with a total observing bandwidth of 80 MHz, split into 5 separate subbands. The resulting files with which we will have to deal with will be:
where each subband has its own subdirectory, and each .dada file, for each subband, contains 10 seconds of data. In order to merge the subbands together, we use SPLICE_DADA with the following command:
splice_dada -dadafiles "subband*/*.dada" -o spliced_B0329+54
As output, the program returns one merged .dada file for each file found in each subband. The suffix "subint_N" in the ouput file names indicates that file number N was merge across all subbands. In this example:
NB: Even if your files are not organized in subdirectories, each cointaining a different subband, SPLICE_DADA is smart enough to reconstruct and figure out which file belongs to which subband. Left: folding done on individual subbands / Right: folding done on the spliced .dada file 3) Command line options You can use a number of options to adapt SPLICE_DADA to specific applications and cases. Here follows a list of all the available options:
4) Acknowledgements
Big thanks to Cees Bassa, who shared a very similar code ("joindada.c"), by which "SPLICE_DADA" was directly inspired and thanks to which I understood important details on the DADA file format. Many thanks to Marta Burgay for testing the code and providing excellent feedback and suggestions.
|