Spectral Imaging with SunCASA: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Before Starting SunCASA== You will likely be running SunCASA from a working directory that has your data on it, or where you want your output to go. It is easier to start fr...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Get Dynamic Spectrum with SunCASA== | ==Get Dynamic Spectrum with SunCASA== | ||
Within SunCASA, you are using IPython to interact with the system. This does not mean extensive python experience is necessary. Basic Python interactions are straightforward, e.g., assigning parameters, importing modules, running functions. The first module we introduce is ''dspec''. This module allows you to generate and visualize a dynamic spectrum | Within SunCASA, you are using IPython to interact with the system. This does not mean extensive python experience is necessary. Basic Python interactions are straightforward, e.g., assigning parameters, importing modules, running functions. The first module we introduce is ''dspec''. This module allows you to generate and visualize a dynamic spectrum out of a MS file or a subset of it, with a combination of selections parameters: ''spw'', ''timerange'', ''freqrange'', ''bl'', ''pol'' | ||
<pre> | <pre> |
Latest revision as of 19:34, 9 May 2019
Get Dynamic Spectrum with SunCASA
Within SunCASA, you are using IPython to interact with the system. This does not mean extensive python experience is necessary. Basic Python interactions are straightforward, e.g., assigning parameters, importing modules, running functions. The first module we introduce is dspec. This module allows you to generate and visualize a dynamic spectrum out of a MS file or a subset of it, with a combination of selections parameters: spw, timerange, freqrange, bl, pol
from suncasa.utils import dspec vis = 'example.ms' # the visbility data bl='4&12' ## specify a baseline between antenna 4 and antenna 12. spw='0~7' specfile = msfile+'.bl4-12.190000-194000.spec.npz' timeran='17:58:50~17:59:30' dspec.plt_dspec(specfile=specfile,pol='RR',dmin=1,dmax=12) #dmin and dmax is used to change color,pol can be selected as 'RR''LL'or'I'