Closed ayshih closed 6 years ago
@ayshih, the background function has been working great for me; sorry I didn't realize this PR hadn't been merged yet. Just so I can use the function in the laziest possible way, can you adjust it so that it returns the energy array as well if one is not input? Thanks.
@LinErinG I think I made the change as you requested
@ayshih This works great for my purposes but I suggest you edit the header to make it clear that energy_arr can be either an input or an output.
I've finally updated this PR for the CSR, which removes the extra factor of 2 that I threw in at the last minute for the Step-1 proposal. I also addressed @LinErinG's suggestion. Review and merge!
Ok by me
Added a function (only on the IDL side) to obtain the estimate of instrument background (in units of counts/s/keV) for the entire instrument (i.e., both telescopes). The optional keyword
in_hpd
provides a convenient scaling of the background to only the HPD (assuming uniform background) for the purposes of point sources.