parsotat / BatAnalysis

A python HEASOFT wrapper for processing Swift-BAT data.
MIT License
28 stars 11 forks source link

Performing BAT analyis in a energy range say 14 to 50 KeV. #16

Open ChitranshiBakshi opened 7 months ago

ChitranshiBakshi commented 7 months ago

Hi @parsotat Could this code be modified for the interested energy range? Thank you in advance.

parsotat commented 7 months ago

Hi @ChitranshiBakshi, the energy bins for the survey data cannot be changed from what they have been predetermined to be: 14-20, 20-24, 24-35, 35-50, 50-75, 75-100, 100-150, 150-195 keV. Fortunately, the BatSurvey contains data such as the source rate for each of these energy bins, as a result, you can produce energy integrated rates, etc from 14-50 keV by adding up the energy bins of interest to you appropriately.

On an individual BatSurvey object you can call the .get_count_rate() method with energy_index=[0,1,2,3].

For large sets of BatSurvey objects, the concatenate_data function takes care of this when you pass in energy_range=[14, 50].

You can also plot this energy range of interest for long term light curves by using the plot_survey_lc function and pass in energy_range=[14, 50] to the function.