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


omthlcplot (omthlcplot-1.6.2) [xmmsas_20230412_1735-21.0.0]


Algorithm

   Subroutine omthlcplot

 
     Recover parameters (File names, Device type, Binning factor, Plots
                                                      per page, Ouput file)

     Read source time series FITS file : 
        Get dataset and table.
        Check important keyword consistency (notably TSTART and TIMEDEL).
        Call an error if necessary.

     Recover all light curves included in the table 
     Net source rates are recorded in an array of dimensions: number of
                                          bins * number of light curves.

     Open plot : create view surface in specified device format (check
                                                            its validity).

     For each light curve :
        Generate labels to add to the plots, so that all the relevant
                     header information is displayed on the plots page.
        Increase binsize if necessary to limit the number of points to 500.
        Rebin rate data by binsize and generate error columns, where
        the error is the the square root of the RATES values.  The
                    errors and the time are also subsequently rebinned.

        Create labelled plot pages separated into the number of
          panels specified by the user, in which time is graduated on 
          X-axis (see Comments), and count rates on Y-axis (in counts/sec).

     Release memory.

     Close plot.

   End subroutine  omthlcplot



XMM-Newton SOC -- 2023-04-16