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


specadd (specadd-1.15) [xmmsas_20230412_1735-21.0.0]


Algorithm

specadd is a F90 module which does the following

   module specadd

   Read input sets

   Check that they are spectral files

   Create an output multiple spectrum file		

   If (useoldsumset) is true
	
       copy oldsumset in output sumset
	
       create those columns not present in oldsumset
   else

       create all necessary columns
  
   endif

   Insert n (n=numberOfSingleSpectra) new rows in sumset

   For each of the n single spectra in sets

        add  single spectrum to sumset
   
   End

   end module  specadd



XMM-Newton SOC -- 2023-04-16