How to Convert and Process Mock Data

To process Mock data, you will need to download the fits2fits executable from here: http://github.com/scottransom/psrfits2psrfits

Mock data is located on the AO system at /share/pdataX/pdev, where X=1-7 correspond to beams 0-6, respectively. It is visible from (almost) all machines at AO. This executable will be put in ~pulsar/bin eventually but for now it would be good to have people compile and test it independently in case some machine- or architecture-specific bugs come up. You can try using summer1 and summer2, those are the machines designated for pulsar data processing.

Mock data is recorded separately for 2 bands--filenames from the High band contain b0s0g0, and filenames from the Low band contain b0s1g0. The High band is much cleaner. At this stage, each band must be converted to 4/8 bits separately.

To convert data, do:
psrfits2psrfits -o [output file basename, no file number at end] -b [# of bits for output, 4 or 8] [input data files from one band, in time order]

You will get *one* output file that will contain all the converted data, even if there are multiple input files.

For example, a recent observation consists of these High band files:
p2030.20100509.B2028+22.b0s0g0.00000.fits
p2030.20100509.B2028+22.b0s0g0.00001.fits
p2030.20100509.B2028+22.b0s0g0.00002.fits
p2030.20100509.B2028+22.b0s0g0.00003.fits
p2030.20100509.B2028+22.b0s0g0.00004.fits
And these Low band files:
p2030.20100509.B2028+22.b0s1g0.00000.fits
p2030.20100509.B2028+22.b0s1g0.00001.fits
p2030.20100509.B2028+22.b0s1g0.00002.fits
p2030.20100509.B2028+22.b0s1g0.00003.fits
p2030.20100509.B2028+22.b0s1g0.00004.fits

E.g. to convert High band data for beam 0, from the directory where you want output to be written do:
psrfits2psrfits -o p2030-4bit.20100509.B2028+22.b0s0g0 -b 4 /share/pdata1/pdev/p2030.20100509.B2028+22.b0s0g0.00000.fits /share/pdata1/pdev/p2030.20100509.B2028+22.b0s0g0.00001.fits /share/pdata1/pdev/p2030.20100509.B2028+22.b0s0g0.00002.fits /share/pdata1/pdev/p2030.20100509.B2028+22.b0s0g0.00003.fits /share/pdata1/pdev/p2030.20100509.B2028+22.b0s0g0.00004.fits

You will get one output file,
p2030-4bit.20100509.B2028+22.b0s0g0.00000.fits.
Presto recognizes 4 and 8-bit psrfits data so you can do anything with this output file that Presto normally does.

NFS shares at AO don't support file sizes >2GB, so you will get an error message and the code will bail if you're outputting to an NFS share and that size is exceeded (in which case you can just test with less than 8GB's worth of input files). If you're outputting to a local directory (/data or /tmp), larger files should be ok.