We shall start with a simple example based on very old data, an EXOSAT observation of GX301-2. First we read in the data : {{{ XSPEC version: 12.5.1 Build Date/Time: Mon Aug 3 13:17:56 2009 XSPEC12>data file1.pha 1 spectrum in use Spectral Data File: file1.pha Spectrum 1 Net count rate (cts/s) for Spectrum:1 3.586e+01 +/- 2.466e-01 (50.6 % total) Assigned to Data Group 1 and Plot Group 1 Noticed Channels: 1-64 Telescope: EXOSAT Instrument: ME Channel Type: PHA Exposure Time: 2100 sec Using Background File back1.pha Background Exposure Time: 3320 sec Using Response (RMF) File resp1.rsp for Source }}} This dataset has associated background and response files which have been read in automatically because their names are given in file1.pha by the BACKFILE and RESPFILE keywords. If these keywords were not set, we could load the associated files using : {{{ XSPEC12>back back1.pha Net count rate (cts/s) for Spectrum:1 3.586e+01 +/- 2.466e-01 (50.6 % total) XSPEC12>resp resp1.rsp Response successfully loaded. }}} Generally the best first step is to look at the spectrum : {{{ XSPEC12>cpd /xs XSPEC12>plot data XSPEC12>setp energy XSPEC12>plot }}} The first command sets the plotting device to the X-window server. The third command switches the x-axis from channels to energy. If you want it in wavelength then use {{{setp wave}}}. Note that the plot command remembers the option from its last invocation.[[BR]] attachment:basicplot.gif This instrument had very little effective response at the ends of the range so we next remove some channels from consideration : {{{ XSPEC12>ignore 1-3 45-** 3 channels (1,3) ignored in spectrum # 1 20 channels (45,64) ignored in spectrum # 1 }}} Note that internally XSPEC always assumes that the first channel is number 1 (not 0). The ignore command can also be used to ignore channels over a specific energy range by giving the arguments as decimals : {{{ XSPEC12>ig 0.-1.5 14.5-** 3 channels (1-3) ignored in spectrum # 1 20 channels (45-64) ignored in spectrum # 1 }}}