Difference between revisions of "Dynamic Spectrum and Imaging"

From EOVSA Wiki
Jump to: navigation, search
(Get Dynamic Sepctrum with SunCASA)
(Get Dynamic Sepctrum with SunCASA)
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. You can select a subset of data by specifying a [https://casa.nrao.edu/Release3.3.0/docs/UserMan/UserMansu112.html time range], [https://casaguides.nrao.edu/index.php/Selecting_Spectral_Windows_and_Channels spectral windows/channels],  [https://casaguides.nrao.edu/index.php/Antenna/Baseline_Selection_Syntax_with_or_without_Autocorrelations antenna baseline]. Check out the links for detail selection syntax.
+
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. You can select a subset of data by specifying a [https://casa.nrao.edu/Release3.3.0/docs/UserMan/UserMansu112.html time range], [https://casaguides.nrao.edu/index.php/Selecting_Spectral_Windows_and_Channels spectral windows/channels],  [https://casaguides.nrao.edu/index.php/Antenna/Baseline_Selection_Syntax_with_or_without_Autocorrelations antenna baseline]. More information of the selection syntax may be found in the [https://casa.nrao.edu/Release3.3.0/docs/UserMan/UserMansu112.html time range], [https://casaguides.nrao.edu/index.php/Selecting_Spectral_Windows_and_Channels spectral windows/channels],  [https://casaguides.nrao.edu/index.php/Antenna/Baseline_Selection_Syntax_with_or_without_Autocorrelations antenna baseline] pages.
  
 
<pre>
 
<pre>
Line 7: Line 7:
  
 
msfile = 'IDB20170821201020-203020.12s.slfcaled.ms'  # the visbility data
 
msfile = 'IDB20170821201020-203020.12s.slfcaled.ms'  # the visbility data
bl = ''  ##  
+
specfile = msfile + '.dspec.npz'  ## The output filename of the dynamic spectrum
spw = ''
+
bl = ''           ##  antenna selection
specfile = msfile + '.dspec.npz'
+
spw = ''       ## Spectral Windows and Channels selection
timeran = ''
+
timeran = '' ## time range selection
 
domedian =True
 
domedian =True
 
ds.get_dspec(vis=msfile, specfile=specfile, bl=bl, spw=spw, domedian=domedian)
 
ds.get_dspec(vis=msfile, specfile=specfile, bl=bl, spw=spw, domedian=domedian)

Revision as of 04:41, 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. You can select a subset of data by specifying a time range, spectral windows/channels, antenna baseline. More information of the selection syntax may be found in the time range, spectral windows/channels, antenna baseline pages.

from suncasa.utils import dspec as ds

msfile = 'IDB20170821201020-203020.12s.slfcaled.ms'  # the visbility data
specfile = msfile + '.dspec.npz'  ## The output filename of the dynamic spectrum 
bl = ''           ##  antenna selection
spw = ''        ## Spectral Windows and Channels selection
timeran = ''  ## time range selection
domedian =True
ds.get_dspec(vis=msfile, specfile=specfile, bl=bl, spw=spw, domedian=domedian)
ds.plt_dspec(specfile, pol='XXYY')

Imaging with SunCASA