On the bottom of the page there are two rows of six links within HEASARC to which you can go. The top left option is the W3Browse location where you can search for observations of various objects.
If you had to re-enter your directory then when you finished typing click on Cancel, then Click on Download TAR file again. This time the correct directory should appear in the Selection box.
Netscape will copy the files you have selected into your directory in
the form of a w3browse-.tar file. It is a compressed file
and cannot be used until it is opened up properly.
tar -vxf w3browse-.tar < Enter >
This command produced a subdirectory chain in your directory called rp300217n00/ where youre files are located.
cd rp300217n00/
If the name of the file (or directory) you are entering reaches a
unique string (for example if you had entered rp3 above and
there were no other files in your directory with this beginning) you
may press the key and the filename will be completed.
If the string is not unique then the name will complete up to the
point where it becomes ambiguous and you must add a character to make
it unique - then you can press
to complete it again.
rp300217n00_bas.fits.Z should appear.
Notice the file ends with .Z. This means it is comrpessed
further and still cannot be used.
uncompress *.Z < Enter >
The * is a wildcard character so that your command above says ``uncompress anything in this directory that ends with .Z''.
Then type ls < Enter > . The .Z should have disappeared from the filename making the file usable.
rm w3browse-.tar < Enter > or
rm w3 < Tab > < Enter > and allow the file completion feature to do its work.
emacs rp300217n00_bas.fits < Enter >
The file that comes up contains information such as the date and time of this observation, the telescope and instrument that collected the data, the location of the object as well as its name.
Close emacs.
Xselect < Enter >
Call your session session1 < Enter >.
read events < Enter >
Now Xselect is configured. Notice the important notes that follow on your screen.
Notes: XSELECT set up for ROSAT
Keywords for time and pha are TIME PI
Units of time are s
Default timing binsize= 16.000
This data and that which follows describes how the program is now configured to handle your data. For example, it tells that the units of time in any process will be in seconds. It also prints the directory where your data is located. Finally, the program outputs the information about your object, GK PER, its position in the sky, the livetime (how long the detector was taking data on this object), and the date of observation.
Xselect has some general commands that you will be using to create images, light curves, and energy spectra. Here are some of the commands (and their descriptions) that you will be using the most.
extract image < Enter >
Once again Xselect prints out information on the screen. The important facts are the seconds and the counts that provide a countrate for the image. This is important because a high countrate means the object was giving off photons at a high rate and will be bright. A very low countrate implies a faint or no image (just noise).
You should take some time to familiarize yourself with this tool. You can change the features of your display by selecting a ``button'' from the top row. If you click on Scale, for example, you have a choice, on the seconds row, of viewing your image in a variety of brightness scales. Notice the grayscale legend at the bottom. A linear scaling would let the brightest thing in your image be the color of the extreme right, the least bright thing in your image be the color of the extreme left, and the values in between would be evenly spaced along the grayscale legend. A square root display would let the square root of the maximum and minimum brightness values be displayed as the leftmost and rightmost grayscale values. Try the logarithmic scaling to see what it does.
You can also change the color schemes by clicking on Color. The button cmap will add more choices to your display options. You can invert the grayscale legend by clicking on invert. To return to the color options click on cmap again.
You can mark your object of choice with a cursor and define a region to later observe.
Continue to play with SAOimage until you feel comfotable using it.
filter region src.reg < Enter >
When you apply the filter command to an image it is as if you are placing an opaque screen with a hole in it over the data. The hole in the screen is the region you selected.
This removes the filter from your image since you pulled out the events you wanted and no longer need the filter.
extract image < Enter >
The following is a list of the commands you just used with no comment so that you may refer to it quickly beginning after read events:
extract image < Enter >
saoimage < Enter > (select a region with the cursor)
filter region src.reg < Enter >
extract events < Enter >
clear region < Enter >
extract image < Enter >
saoimage < Enter > (To see the final image)
You may now proceed to manipulate the image of GK PER
The following instructions are optional exercises that demonstrate how you can smooth and average the images using the tools in Xselect. If you choose to try these exercises make sure you return the data to its original form before proceeding to lightcurves and energy spectra. Instructions for restoring the data are part of this exercise, so if you begin these instructions you must follow them through.
set xybinsize < Enter >
Then continue to process the image by commanding:
extract image < Enter > and
saoimage < Enter >
You should see your region selected image in a binned up fashion. The pixels should now be larger sized squares.
set xybinsize < Enter > and input the binning you desire.
extract image < Enter >
saoimage < Enter >
The default xybinsize is 15; this means the first image you looked at had an xybinsize of 15. When you are done exploring this function, set it back to 15.
Type: smooth image < Enter >
You will be asked for a smoothing method. Your options are Boxcar, Gaussian, or Lorentzian. Type Gaussian < Enter > to select this method. You will be asked for a sigma for image smoothing. The default is 1.5 you may accept that value to see what happens.
Again display your result with saoimage < Enter >.
set xybinsize < Enter > and input the binning you desire.
extract image < Enter >
smooth image < Enter > then choose Gaussian < Enter > with a
of 2 or any value you wish to explore.
Then view it with saoimage < Enter >.
Try a of 3 or 4 to see what happens when you smooth too much!
Then type extract image < Enter >. You should saoimage < Enter > just to be sure that your original filtered pixel image is there.
extract curve
set device /XW < Enter >
and now plot it plot curve < Enter >
Notice on your Xselect screen that the prompt has changed from session1:ROSAT-PSPC> to PLT>. This means you are in an interactive mode with the plot window and commands you give the screen will be received by the plot window.
The most important command is exit; type it if things get really crazy. In this case you can clear events and start the lightcurve extraction all over.
rescale x 4e5 6e5 < Enter >
This displays the chosen datapoints across the entire screen. You can zoom in even more by typing rescale x 4.8e5 5.5e5
One notable feature of the PLT environment is that you may
an abbreviation of a command, so long as it is unique instead of the
entire string. In this case you can type r x X
X
to get the same results.
Type exit to return to Xselect now.
Type: filter time cursor < Enter >
Again you will be in the PLT> mode. The first thing to do is to enter quit as you are told to do on the screen. Then in the plot itself click to the right of the curve (around x=5.5e5) and to the left (around x=4.8e5). A horizontal line should have connected your clicks.
Then type x in the plot window to exit this mode. NOTE: You can get tangled up very quickly while in this mode. Do not attempt to try the other commands that appear unless you have plenty of time and motivation! The instructions above will be sufficient for your purposes.
And plot curve < Enter >.
filename.ps/PS (make sure there are no spaces in this command) this will make a ps file in your main directory that you can later print out.
Type extract spectrum < Enter >
Followed by plot spectrum < Enter >.
You will get a plot of COUNTS vs. CHANNEL
filter pha_cutoff < Enter > then enter 10 for the lower cutoff and 300 for the upper cutoff.
Then you must extract spectrum < Enter > and plot spectrum < Enter >.
Xselect has now saved your extracted energy spectrum under the name gkper_spec.pha. You should plot spectrum one more time to see what the rebinning did.
To better analyze the light curve you extracted, it is useful to make a power spectrum, which is the Fourier transform of the light curve so that you may see the major features of the curve.
You may enter session1_fits_curve.xsl or gkper_curve.lc which is your lightcurve that you saved manually.
The axis on you plot should be labeled Power vs. Frequency
(Hz) and have the bintime printed at the top right corner. The power
spectrum does not show any dominant frequency in the lightcurve. It
is mostly noise. This is because our source is weak and because the
ROSAT PSPC is only sensitive up to an energy of 1keV. There
should be a peak at or around 2.86410
Hz which is a
period of 349 seconds.
With a different detector the noisy frequencies would not be present and there would be an obvious peak at the frequency of the source.
Since the detector spans 256 pixels on each axis there are certain factors arising from the detector itself that must be accounted for before further analyzing our data. For each position in the detector there is a certain probability that a photon of a certain energy will be recorded as an event. This probability function (independent of the source we are pointing at) is located in a file that has been created for the ROSAT PSPC named: pspcb_gain2_256.rmf.
The energy spectrum you extracted was plotted in Counts vs. Channel. Each channel on the detector corresponds to an energy. In order to analyze the data properly Xspec must convert the spectrum from Counts vs. Channel to Counts vs. Energy and for this you will need a file named pspcb_v2.spec_resp.
http://xray.rutgers.edu/matilsky/documents/
In the dialog window that appears, make sure the correct directory to which you want to save these files appears in the Selection box (the same directory with all your GK PER files).
The energy spectrum you extracted in the last step of our Xselect session can be model-fit in a program called Xspec to determine the characteristics of our source. First, however, we must prepare our data to be used in Xspec.
Type pcarf < Enter > and input gkper_spec.pha < Enter > as your PHA file.
You have now created all the necessary data files to run an Xspec analysis on GKPER. The next step is to open the Xspec package and fit our data to some spectral models.
Type cpd /xw < Enter > (change plotting device).
Type resp pspcb_gain2_256.rmf < Enter > .
Followed by arf gkper.arf < Enter > .
If you type plot ? < Enter > you will get a list off all the things besides your data that you can plot.
It is also possible to use the command plot ldata < Enter > which plots the data with a logarithmic scale on the y-axis.
We will attempt to fit our data to three spectral models:
This model represents a spectrum that arises from a source whose radiating electrons are moving within a magnetic field and therefore experience a force perpendicular to their motion. This torque accelerates the electrons and causes them to radiate in a characteristic way. The spectrum produced by this effect has the mathematical form of a powerlaw where the intensity of the radiation energy is proportional to the energy raised to a power.
I(E)=AE
Where:
is a spectral index, and
A is a constant.
A blackbody spectrum is one that is only dependent on the temperature of the radiating source. This model assumes that the radiating photons get their energy solely from the temperature of the object.
I(E)=2E/h
c
(e
-1)
Where:
h is Planck's constant, and
c is speed of light.
This radiation spectrum is caused by the thermal motions of electrons in gasses hot enough to be ionized. The presence of charges from the ions exert electromagnetic forces on the electrons that 'bend' their motion and cause them to radiate. The distribution of the energy emitted from such 'bending' depends on the densities of both electrons and ions as well as the temperature of the gas, and it has the form:
A(E)=CG(E,T) Z
n
n
(kT)
e
Where:
C is a constant, G(E,T) is a function that varies with
temperature and energy, Z is the charge of positive ions in the
gas, n and n
are electron density and positive ion
density, respectively, and T is the temperature.
You will receive a list of parameters that this particular model requires. These parameters are default and we can change them to fit our data with the fit command later. We will accept the default values by pressing < Enter > three times.
The output that follows includes a (Chi-Squared) and a reduced
(the original
divided by the number of degrees
of freedom). If the reduced
is near 1 then the fit should
be good. The null hypothesis probability is the probability of
getting a value of
as large or larger than observed if the
model is correct. If this probability is small then the model is not
a good fit.
Your fit should be very bad. This is because the model is constructed
using the initial default values that do not correspond to your data.
Notice that the null hypothesis probability is 0 and that the reduced
is tens of thousands large. Both of these facts indicate a
poor fit.
Notice that the right side of the model is attempting to match the
slope of the data. Also notice the dramatic reduction in
(but still not close to 1).
Type fit < Enter > and after ten iterations, when prompted to continue fitting type y < Enter >.
The model does converge to the data though not exactly. To see where the model departs from the data type plot data residuals < Enter >. At the bottom of the screen, the model is represented by the straight line and the data oscillates above and below. It is only toward the higher energies that the residuals shrink and stop oscillating.
Now look at the tabulated results. The reduced should be
around 6 or 7, which is better than our previous results, but not close
to 1. The null hypothesis probability is tiny as well. This
indicates that our model is not good enough to describe this source
very well.
In the table (your results may not exactly match but should be close):
--------------------------------------------------------------------------- --------------------------------------------------------------------------- mo = phabs[1]( powerlaw[2] ) Model Fit Model Component Parameter Unit Value par par comp 1 1 1 phabs nH 10^22 0.1122 +/- 0.4740E-02 2 2 2 powerlaw PhoIndex 4.015 +/- 0.1184 3 3 2 powerlaw norm 2.0524E-02 +/- 0.5383E-03 --------------------------------------------------------------------------- ---------------------------------------------------------------------------
Recall that the EXOSAT powerlaw fit gave a column density (nH)
of 2.3210
and here we have a column density
1.12
10
. Two orders of magnitude smaller!
How would you account for this inconsistency?
The reduced from this analysis is also closer to 1 than the EXOSAT analysis. This implies that the fit is somewhat better. Are
these signs actual or are they a result of fewer data points (20 vs 57)
that give the illusion of a better fit?
Clearly with EXOSAT's wider energy band we are able to show a spectrum with features that the ROSAT data could not reveal - given the 1keV threshold of the PSPC detector.
Again this is not a good fit and is in the thousands.
renorm < Enter > and plot data to scale down the model.
You must now fit < Enter > the model to the data and continue to fit the data by entering y when prompted. When fitting is done, plot data residuals < Enter > to see the deviation from the curve.
This fit is not as good as the power law fit resulting in a reduced
around 14 and an even smaller null hypothesis
probability. The temperature (in units of keV) from the output in kT
is 0.1550 or 1.8E6 Kelvin. This is much lower than the EXOSAT temperature of 3.6
10
Kelvin.
Also, note the column density (nH) in this output. The rising function on the left which indicates absorbtion and complicates the fit.
The deviation in column density between models is greater with the ROSAT than with EXOSAT implying a better consitency among the EXOSAT fits. This is probably due to more datapoints from the broader energy range in EXOSAT's detector. The column density here should be around 3.4E20 which is lower than that calculated by the power law model by an order of magnitude.
The presence of the rising function on the left indicates absorbtion and complicates the fit.
The results give a better reduced (round 10) and a less
tiny null hypothesis probability, but it seems that the powerlaw fit
was the best one. We can calculate a temperature from here too, and
compare it to the blackbody temperature we calculated earlier. With
an output of 0.3700keV (or something around that value) the
temperature comes out to be 4.3E6 Kelvin. This value agrees at least
to the same order of magnitude, showing that our analysis is
consistent.
This temperature and that extracted from the blackbody analysis are lower than the EXOSAT temperature, but there we got completely inconsistent results.
Again the column density changed. This time it increased slightly to about 6.9E20.
None of these fits were good enough, however to provide confident results.
It would be useful to examine how well our data fits the model spectra without the leftmost points indicating absorbtion. This way the fitting process will be 'interacting' with the data points representing photons produced by the processes inside the source and not by the interstellar medium.
Did your reduced improve from the original powerlaw fit?
What is the column density for this data set?
What about these reduced 's and column densities?
Did the temperature output change and if so did it go up or down? why?
Was the change in temperature as significant as that of the column density?
Type flux < Enter >. You will receive an output showing the
flux of the star in photons/cm/s and in ergs/cm
/s. Once you
know the flux and the distance to the source, you can know its
luminosity.
How did the flux here compare with EXOSAT? Why?