This website provides only the plots of solar X-ray flux integrated over either the GOES XRS-B energy range (1-8 Å or 1.55 to 12.4 keV) or the full XSM energy range (1 - 15 keV), obtained from the XSM spectra. Full spectral data is available in the data archive. The raw (level-1) and calibrated (level-2) XSM data organized into day-wise files are available for download from the PRADAN portal of ISRO Science Data Archive (ISDA) at Indian Space Science Data Center (ISSDC), Bangalore.
To dowload the data, visit https://pradan.issdc.gov.in/ch2/. Users need to register in the website for accessing the data.
mithun@Thinkpad:xsm_analysis$ unzip ch2_xsm_20210908_v1.zip
This will create a directory structure with xsm as top level directory with year, month, day
level sub-directory structure under data as:
xsm/
data/
2021/
09/
08/
raw/
ch2_xsm_20210908_v1_level1.fits
ch2_xsm_20210908_v1_level1.hk
ch2_xsm_20210908_v1_level1.sa
calibrated/
ch2_xsm_20210908_v1_level2.gti
ch2_xsm_20210908_v1_level2.pha
ch2_xsm_20210908_v1_level2.lc
Now, to determine the time ranges for further analysis, examine the standard light curve
available in the downloaded data set using fitsviewer or with python/IDL etc. Another possibility is
to use the interactive plotting tool available on this web site. Convert the UTC time stamps to XSM
Mission Elapse Time (MET) using xsmutc2met tool included in XSMDAS.
We will use the following time range of one minute around the peak of the flare for subseuent analysis.
| Period | Tstart | Tstop |
| Flare | 147893400.0 (17:30:00) | 147893460.0 (17:31:00) |
[mithun@xsmpoc 08]$ xsmgenspec
-------------------------------------------------------------------------
XSMDAS: Data Analysis Software for Chandrayaan-II Solar X-ray Monitor
XSMDAS Version: 2.0
Module : XSMGENSPEC
-------------------------------------------------------------------------
Enter Input Level-1 file [] : raw/ch2_xsm_20210908_v1_level1.fits
Enter Output Spectrum file [] : ch2_xsm_20210908_flare1730-1731_v2.pha
Enter output spectrum type [time-integrated] : time-integrated
Enter start time for extracting spectrum [0] : 147893400.0
Enter stop time for extracting spectrum [0] : 147893460.0
Enter HK file [] : raw/ch2_xsm_20210908_v1_level1.hk
Enter Sun angle file [] : raw/ch2_xsm_20210908_v1_level1.sa
Enter GTI file [] : calibrated/ch2_xsm_20210908_v1_level2.gti
------------------------------------------------------------------------
MESSAGE: Ebounds CALDB file used is:
/data/users/mithun/pipeline/XSM/xsmdas/caldb/CH2xsmebounds20191214v01.fits
MESSAGE: Gain CALDB file used is:
/data/users/mithun/pipeline/XSM/xsmdas/caldb/CH2xsmgain20210401v01.fits
MESSAGE: Deadtcor CALDB file used is:
/data/users/mithun/pipeline/XSM/xsmdas/caldb/CH2xsmdeadtcor20251111v01.fits
MESSAGE: Abscoef CALDB file used is:
/data/users/mithun/pipeline/XSM/xsmdas/caldb/CH2xsmabscoef20200410v01.fits
MESSAGE: Effareapar CALDB file used is:
/data/users/mithun/pipeline/XSM/xsmdas/caldb/CH2xsmeffareapar20261106v03.fits
MESSAGE: Syserror CALDB file used is:
/data/users/mithun/pipeline/XSM/xsmdas/caldb/CH2xsmsyserr20200410v01.fits
MESSAGE: XSMGENSPEC completed successully
MESSAGE: Output file = ch2_xsm_20210908_flare1730-1731_v2.pha
MESSAGE: Output ARF = ch2_xsm_20210908_flare1730-1731_v2.arf
At the end of execution a spectrum file and arf file will be generated.
Before proceeding to detailed spectral analysis, load the spectrum in XSPEC
along with a sample background file provided under $xsmdas/caldb/bkgspec
as the background spectra (either copy the background pha to present working directory or
give full path) using appropriate XSPEC commands as below:
XSPEC12>da 1:1 ch2_xsm_20210908_flare1730-1731_v2.pha
1 spectrum in use
Spectral Data File: ch2_xsm_20210908_flare1730-1731_v2.pha Spectrum 1
Net count rate (cts/s) for Spectrum:1 1.126e+04 +/- 6.482e+01
Assigned to Data Group 1 and Plot Group 1
Noticed Channels: 1-512
Telescope: CH-2_ORBITER Instrument: CH2_XSM Channel Type: PI
Exposure Time: 56.71 sec
Using fit statistic: chi
Using Response (RMF) File
/data/users/mithun/pipeline/XSM/xsmdas/caldb/CH2xsmresponse20200423v01.rmf for Source 1
Using Auxiliary Response (ARF) File ch2_xsm_20210908_flare1730-1731_v2.arf
XSPEC12>back 1:1 /data/users/mithun/pipeline/XSM/xsmdas/caldb/bkgspec/ch2_xsm_20191128_bkg.pha
Net count rate (cts/s) for Spectrum:1 1.126e+04 +/- 6.482e+01 (100.0 % total)
Plot the spectra after ignoring the data below 1 keV and above 8 keV using ignore, plot, and setplot commands in XSPEC (see XSPEC manual). We are ignoring the spectrum above 8 keV as there are no significant counts detected. If spectral fitting is done using cstat or other statistics which considers Poisson statistics, spectra in the energy range of 1 -- 15 keV may be used in fitting.
Figure above shows the resulting plot. The black data points denote the flare spectrum and the stars denote the background spectra. It can be seen that the background is negligble in this case comapred to the source spectrum at all energy ranges, so it may be ignored. However, for analysis of fainter flare or quiet period spectra, background may become important above certain energy. In such cases, it is recommended to restrict the fitting to energy range where the source spectrum dominates background.
To fit the spectrum, we shall use isothermal models based on CHIANTI database that are developed as local models in XSPEC, named chspec. XSM spectra at the peak of these flares require a two temperature model (see Mithun et al., 2022 for more details). So, we shall use chisoth+chisoth as the spectral model where the temperatures and emission measures (norm) of both components are left as free parameters.Abundances of Mg, Si, S, Ar, Ca, and Fe are left as free parameters in fitting, but abundances of both temperature components are tied together. The fitted spectrum is shown in the figure below for reference.
| Version | Release Date | Notes |
| 1.1 | 10 Dec 2020 | First public release |
| 1.2 | 28 Jun 2021 | Included python script for computing flux over a user provided energy range; CALDB version used are written in output spectra/resp/lc headers. |
| 1.5 | 21 Nov 2025 | Incorporated proper deadtime correction model, the exposures of generated spectrum are corrected with the deadtime model. Generates response with Beryllium filter for large flare. Recent version of cfitsio library included with the software for compatibility with latest Mac OS versions.Bug fixes for latest apple gcc compilers are included. |
| 2.0 | 06 Nov 2026 | Updated calibration to make use of low energy spectrum from 1 keV onward for spectral fitting. |
| Version | Release Date | Notes |
| 20201210 | 10 Dec 2020 | First public release |
| 20210628 | 28 Jun 2021 | Added new gain file for observations from June 2020 with new LLD setting and updated effective area parameters for N-M season |
| 20251111 | 11 Nov 2025 | Includes a new lookup table for deadtime correction, compatible with XSMDAS V1.5 |
| 20261106 | 06 Nov 2026 | Includes updated effective area parameters and response files with increased be window thickness, compatible with XSMDAS V2.0. Spectral fitting from 1 keV possible. |