Dynamic Spectrum and Imaging: Difference between revisions

From EOVSA Wiki
Jump to navigation Jump to search
Line 1: Line 1:


==Get Dynamic Sepctrum with SunCASA==
==Get Dynamic Sepctrum 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 a dynamic spectrum from an MS file, and visualize it.
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 a dynamic spectrum from an MS file, and visualize it.  


<pre>
<pre>
from suncasa.utils import dspec
from suncasa.utils import dspec as ds
vis = 'example.ms' # the visbility data  
 
bl='4&12'  ## specify a baseline between antenna 4 and antenna 12.
msfile = 'IDB20170821201020-203020.12s.slfcaled.ms' # the visbility data
spw='0~7'
bl = ''  ##  
specfile = msfile+'.bl4-12.190000-194000.spec.npz'
spw = ''
timeran='17:58:50~17:59:30'
specfile = msfile + '.dspec.npz'
dspec.get_dspec(vis=vis,specfile=specfile,bl=bl,spw=spw,timeran=timeran)
timeran = ''
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'
domedian =True
ds.get_dspec(vis=msfile, specfile=specfile, bl=bl, spw=spw, domedian=domedian)
ds.plt_dspec(specfile, pol='XXYY')
 
</pre>
</pre>


==Imaging with SunCASA ==
==Imaging with SunCASA ==

Revision as of 04:21, 15 May 2019

Get Dynamic Sepctrum 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 a dynamic spectrum from an MS file, and visualize it.

from suncasa.utils import dspec as ds

msfile = 'IDB20170821201020-203020.12s.slfcaled.ms'  # the visbility data
bl = ''  ## 
spw = ''
specfile = msfile + '.dspec.npz'
timeran = ''
domedian =True
ds.get_dspec(vis=msfile, specfile=specfile, bl=bl, spw=spw, domedian=domedian)
ds.plt_dspec(specfile, pol='XXYY')

Imaging with SunCASA