XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


rgsspecplot (rgsspecplot-2.23) [xmmsas_20190531_1155-18.0.0]


Algorithm

   subroutine rgsspecplot


     For each spectrum

        Get observation details from KEYWORDS
        Get source details from KEYWORDS

        Get a handle on CHANNELS, COUNTS/RATE and GROUPING columns

        if (group) then group CHANNELS 
 
        if (rebin) then rebin to a minimum counts/bin, specified by the user

        Plot spectrum
        Plot chip boundaries
        Plot source dependent energy and wavelength scales using RGSLIB call lambda2beta (if spectrum provided in radians):   

          betaCor = lambda2Beta(wavelength, order, offaxis(1))

    end loop

   end subroutine  rgsspecplot



XMM-Newton SOC/SSC -- 2019-06-02