Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I write a SPEX FITS file with energy bins defined on channel boundaries?

0
Posted

How can I write a SPEX FITS file with energy bins defined on channel boundaries?

0

Normally, when creating count spectrum for RHESSI you bin the data into standard energy bins, or arbitrary bins of your choosing. In the binning process, counts which are found in channels in the PHA are placed into their corresponding energy bin. If counts appear in channels that lie in two bins, they are pro-rated into the energy bins. You can avoid this pro-rating by using native energy bins, i.e. channel boundaries. One way to select native bins is to set sp_chan_binning=1 (or select the channel binning option in the GUI) instead of setting sp_energy_binning in the spectrum object. However this is essentially an engineering mode without any of the corrections needed to create FITS files for use in SPEX or OSPEX. To write a FITS file with native binning, use the native_energy method as follows: obj -> native_energy, seg_index, this_energy_range=[e1,e2] where seg_index can be any single detector segment index from 0-17 and e1,e2 are in keV with e1

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.