OSPEX Users Guide

From RHESSI Wiki

(Difference between revisions)
Jump to: navigation, search
Line 19: Line 19:
This should be same as the time profile we created with the HESSI GUI. The countflux data is displayed in the default energy bands. The Select Input GUI also allows you to display an energy profile of data, as well as a spectrogram of the data should these be preferable ways of viewing the spectrum file. For a more in depth discussion of ways to display the data go here.
This should be same as the time profile we created with the HESSI GUI. The countflux data is displayed in the default energy bands. The Select Input GUI also allows you to display an energy profile of data, as well as a spectrogram of the data should these be preferable ways of viewing the spectrum file. For a more in depth discussion of ways to display the data go here.
-
==Selecting Background==
+
===Selecting Background===
Before we can fit any time intervals during the flare we need to select background. Below the simplest method of selecting background will be described. For a more in depth discussion of background selection go here.
Before we can fit any time intervals during the flare we need to select background. Below the simplest method of selecting background will be described. For a more in depth discussion of background selection go here.
Line 29: Line 29:
[[Image:Bck_select.jpg|center|thumb|200px|The Background Interval (upper panel) and Spectrum (lower panel)]]
[[Image:Bck_select.jpg|center|thumb|200px|The Background Interval (upper panel) and Spectrum (lower panel)]]
-
==Fit Options - Selecting Time Intervals and Doing Fits==
+
===Fit Options - Selecting Time Intervals and Doing Fits===
  [[category:Software]]
  [[category:Software]]

Revision as of 20:34, 16 June 2009

Contents

Using OSPEX to Analyze a RHESSI Spectrum

Starting the OSPEX GUI and Loading a Spectrum File

To start the OSPEX GUI at the sswidl command line type:

o = ospex()

This command sets up an OSPEX object named o, and starts the OSPEX GUI. The following screen appears when the GUI starts:

The OSPEX GUI Start Screen

Select the file button in the upper left corner, and choose the Select Input button in the drop down menu that appears. From here we can select the spectrum file for the flare we would like to analyze. The path to file can either be entered manually or the file can be selected using the Browse button. Once the spectrum file is selected the accompanying SRM file will be found automatically as long as files are saved in the same directory with the original names. For the 21Apr2002 flare the Select Input GUI looks like the following once the spectrum file for detector four is selected:

The Spectrum File Selection GUI

Note that the GUI allows you to display the spectrum file in various ways. To compare it to the spectrum created in the HESSI GUI we can plot the time profile. For the spectrum file for the 21Apr2002 event using only the front segment of detector 4 (4F), we see:

The RHESSI lightcurve for the 21Apr2002 flare

This should be same as the time profile we created with the HESSI GUI. The countflux data is displayed in the default energy bands. The Select Input GUI also allows you to display an energy profile of data, as well as a spectrogram of the data should these be preferable ways of viewing the spectrum file. For a more in depth discussion of ways to display the data go here.

Selecting Background

Before we can fit any time intervals during the flare we need to select background. Below the simplest method of selecting background will be described. For a more in depth discussion of background selection go here.

Lets look at a simple method for choosing background. First choose the Select Background button under File in the main OSPEX GUI. The Select Background GUI should appear. For our simple case we will leave it at the default settings, because of this we will be using the same background for all energy bands and times.

First we want to display the time profile for the spectrum. The easiest way to do this is to select the plot v. time option in the GUI. Now select change. Using the default settings this takes us to the GUI for defining a background interval graphically. We can simply use the mouse to define a interval. RHESSI begins taking data for approximately five minutes in nighttime before it’s orbit starts and for five minutes after its orbit. This data is non-solar and we can use it to define the non-solar background levels. Simply right click at the beginning of a nighttime interval and left click at the end. Choose the Adjust to data boundaries button then accept and close. You’ve now chosen your background. Select the Plot Spectrum button in the main Select Background GUI and you will see an energy profile of your selected background. The top panel below shows what you should expect to see after picking your background interval, the lower panel, the spectrum of the background chosen.


The Background Interval (upper panel) and Spectrum (lower panel)

Fit Options - Selecting Time Intervals and Doing Fits

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox