You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
31
33
32
-
An alternative version (without patchelf dependency) requires running leanpipedt from within a casapy session.
33
-
34
34
Files:
35
35
-- leanpipedt.py: master script that defines search pipeline.
36
36
-- applycals2.py and applytelcal.py: script to parse CASA calibration tables (gain and bp) or telcalfile. Called by leanpipedt.py.
37
37
-- leanpipedt_cython.pyx: Cython-accelerated utility functions, including dedispersion of visibilities.
-- setup.py: script to compile Cython into shared-object libraries.
40
-
-- tpipe.py: old version of search script (class-based structure, includes Miriad format data support).
40
+
-- tpipe.py: deprecated version of search script (class-based structure, includes Miriad format data support).
41
41
42
42
Build Instructions:
43
43
1) Install CASA
44
44
45
-
2) Build casapy-free CASA (optional; not possible on OSX yet)
45
+
(optional 2) Build casapy-free CASA (not possible on OSX yet)
46
46
This step builds python modules to import CASA into any Python session (no "casapy" session needed).
47
47
This requires fixing some links to libraries with patchelf.
48
48
Full instructions at http://newton.cx/~peter/2014/02/casa-in-python-without-casapy.
49
49
See also the casapatch.sh script, which must be edited and run to build new CASA python modules.
50
50
Once complete, you should be able to simply type "import casac" and get access to CASA's ms and table tools.
51
51
Finally, download "casautil.py" at https://github.com/pkgw/pwpy/blob/master/intflib/casautil.py.
52
-
53
-
If you skip this step, you will need to remove references to "casautil" and the "ms" and "tb" definitions in leanpipedt.py and applycals2.py. Running from inside casapy will automatically define those objects in the Python namespace.
52
+
To use this, you will need to uncomment references to "casautil" and the "ms" and "tb" definitions in leanpipedt.py and applycals2.py.
54
53
55
54
3) Install Cython
56
55
See http://cython.org to build Cython, an optimizing static compiler for Python.
57
56
58
-
4) Install pyFFTW (optional)
57
+
(Optional 4) Install pyFFTW
59
58
Get pyFFTW at https://github.com/hgomersall/pyFFTW. Note that there is an unsupported library with similar name at https://pypi.python.org/pypi/PyFFTW3/0.2.1.
60
59
This supposedly requires Cython 0.15, FFTW 3.3, Python 2.7, Numpy 1.6. Although I've made it work with Python 2.6.
61
60
FFTW is an optimized FFT library and can boost performance by a factor of 2. Can be tricky to do this stage, so skipping is ok for many use cases.
62
-
63
-
If you skip this step, you will need to edit leanpipedt.py, leanpipedt_cython.pyx, and qimg_cython.pyx to redefine "fft". Instead of "fft" being an object from pyFFTW, it will be from numpy.fft.
61
+
To use this, you will need to change commented lines in leanpipedt.py and qimg_cython.pyx to redefine "fft" and add references to pyfftw.
64
62
65
63
5) Build accelerated functions
66
64
Edit "setup.py" file to define how Cython will compile (basically setting filename/function to be compiled).
0 commit comments