Skip to content

Commit 850d84c

Browse files
authored
adding citation info and reformatting readme
1 parent 473c4c0 commit 850d84c

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

README.md

+25-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ tpipe
44
Casey Law
55
claw@astro.berkeley.edu
66

7-
Introduction:
7+
Introduction
8+
----
89

910
Python library for analysis of radio interferometry data for finding dispersed (fast) transients.
1011

@@ -13,7 +14,9 @@ Applies CASA calibration tables on the fly. Multi-threaded mode does reading/pro
1314
Searches multiple DMs and timescales using multiple cores via the multiprocessing library.
1415
Searches can be done with accelerated FFT imaging or bispectrum algorithms.
1516

16-
Requirements:
17+
Requirements
18+
----
19+
1720
-- python (probably version >2.6..?)
1821
-- numpy, matplotlib
1922
-- CASA 4.0 or higher
@@ -22,27 +25,41 @@ Optional (requires some hacking):
2225
-- patchelf (to get casapy-free CASA)
2326
-- pyFFTW (for accelerated fft)
2427

25-
Usage:
28+
Citation
29+
----
30+
If you use tpipe, please support open software by citing the record on the [Astrophysics Source Code Library](ascl.net) at http://ascl.net/1603.012. In AASTeX, you can do this like so:
31+
```
32+
\software{..., tpipe \citep{2016ascl.soft03012L}, ...}
33+
```
34+
35+
Usage
36+
----
2637

2738
For baseline mode, start a casapy session:
39+
```
2840
$ casapy
2941
CASA> import leanpipedt
3042
CASA> d = leanpipedt.pipe_thread(filename='data.ms', scan=0, nskip=0, iterint=100, nints=100, spw=[0], chans=range(5,60), selectpol=['RR','LL'], searchtype='imgall', filtershape='z', secondaryfilter='fullim', dmarr=[0,100], dtarr=[1,2], size=512*58, res=58, nthreads=8, gainfile='cal.g1', bpfile='cal.b1')
43+
```
3144

3245
This command will read the first 100 interations from scan 0 (first scan) of 'data.ms'. It will look for the first spectral window and save channels 5,59 (inclusive) for two, orthogonal, circular polarizations. The data will have calibration applied from the gain and bp files. A zero-mean will be subtracted, data dedispersed, and resampled for DM=0 and 100 pc/cm3 and time widths of 1 and 2 integrations. The image search will use a uv grid cell size of 58 lambda and an image size of 512 pixels square (appropriate 2 pixels per beam for L-band, VLA images; covers twice the FWHM).
3346

34-
Files:
47+
Files
48+
----
49+
3550
-- leanpipedt.py: master script that defines search pipeline.
3651
-- applycals2.py and applytelcal.py: script to parse CASA calibration tables (gain and bp) or telcalfile. Called by leanpipedt.py.
3752
-- leanpipedt_cython.pyx: Cython-accelerated utility functions, including dedispersion of visibilities.
3853
-- qimg_cython.pyx: Cython-accelerated imaging functions.
3954
-- setup.py: script to compile Cython into shared-object libraries.
4055
-- tpipe.py: deprecated version of search script (class-based structure, includes Miriad format data support).
4156

42-
Build Instructions:
57+
Build Instructions
58+
----
59+
4360
1) Install CASA
4461

45-
(optional 2) Build casapy-free CASA (not possible on OSX yet)
62+
2) (optional) Build casapy-free CASA (not possible on OSX yet)
4663
This step builds python modules to import CASA into any Python session (no "casapy" session needed).
4764
This requires fixing some links to libraries with patchelf.
4865
Full instructions at http://newton.cx/~peter/2014/02/casa-in-python-without-casapy.
@@ -63,6 +80,8 @@ To use this, you will need to change commented lines in leanpipedt.py and qimg_c
6380
5) Build accelerated functions
6481
Edit "setup.py" file to define how Cython will compile (basically setting filename/function to be compiled).
6582
Then for both "leanpipedt_cython.pyx" and "qimg_cython.pyx", type:
83+
```
6684
> python setup.py build_ext --inplace
85+
```
6786

6887
This will produce "leanpipedt_cython.so" and "qimg_cython.so", which will get imported by leanpipedt.py.

0 commit comments

Comments
 (0)