Spectrogram Software: Difference between revisions

From EOVSA Wiki
Jump to navigation Jump to search
(Created page with "== EOVSA Python Spectrogram Object (v0.1) == The module spectrogram.py defines a Spectrogram class that allows the creation of an object for reading, displaying, and gaining a...")
 
No edit summary
Line 3: Line 3:


== Minimal Use of Object ==
== Minimal Use of Object ==
As a short example of the use the module from the dpp, start ipython and at the prompt type:
import spectrogram as sp
from util import Time
trange = Time(['2015-05-05 22:00:00','2015-05-05 22:30:00'])
s = sp.Spectrogram(trange)
s.explore()
This will find the files corresponding to the half-hour period indicated by the timerange trange, read the data, apply calibration and background subtraction, and display the data in three separate panels: as a spectrogram (dynamic spectrum), instantaneous spectrum, and lightcurve for a single frequency.  By clicking and dragging the mouse in the dynamic spectrum panel, one can control which frequency is displayed in the lightcurve panel, and which time is displayed in the spectrum panel.  One can use the usual plot control icons to zoom, pan, select, print, etc.  In the instantaneous spectrum panel, a fit of the Stähli function is overplotted on the spectral points.  Figure 1 shows the result of the above commands.

Revision as of 01:42, 27 September 2016

EOVSA Python Spectrogram Object (v0.1)

The module spectrogram.py defines a Spectrogram class that allows the creation of an object for reading, displaying, and gaining access to the EOVSA total power data from the “interim” Miriad data files. Because the object directly accesses these files, it will work only when logged in and running from the dpp computer, although this may change with further development of the code.

Minimal Use of Object

As a short example of the use the module from the dpp, start ipython and at the prompt type: import spectrogram as sp from util import Time trange = Time(['2015-05-05 22:00:00','2015-05-05 22:30:00']) s = sp.Spectrogram(trange) s.explore() This will find the files corresponding to the half-hour period indicated by the timerange trange, read the data, apply calibration and background subtraction, and display the data in three separate panels: as a spectrogram (dynamic spectrum), instantaneous spectrum, and lightcurve for a single frequency. By clicking and dragging the mouse in the dynamic spectrum panel, one can control which frequency is displayed in the lightcurve panel, and which time is displayed in the spectrum panel. One can use the usual plot control icons to zoom, pan, select, print, etc. In the instantaneous spectrum panel, a fit of the Stähli function is overplotted on the spectral points. Figure 1 shows the result of the above commands.