How can I get channel edges in keV?
Use the routine hsi_get_e_edges to retrieve the channel boundaries in keV for a specific time. Either retrieve the offset and gain for all 27 a2d’s by setting the coeff_only keyword, or retrieve the edges in keV for a particular a2d_index by using the a2d_index keyword. Set the twod keyword to get an array (ndet x 2 x 8192) of low/high values instead of (8193 x ndet) edges. For example, to get the channel edges for detector 3, front segment on April 21, 2002, type: edges_kev = hsi_get_e_edges(gain_generation=1000, gain_time_wanted=’21-apr-02′, a2d_index=2, /twod) This returns edges_kev as a vector dimensioned (1,2,8192).