The sherpa.astro.utils module

Utility routines for the astronomy code.

Changed in version 4.17.0: The resp_init routine has been removed.

Functions

apply_pileup

arf_fold

calc_data_sum(data[, lo, hi])

Sum up the data values over a pass band.

calc_data_sum2d(data[, reg])

Sum up the data values of a 2D data set.

calc_energy_flux(data, src[, lo, hi])

Integrate the source model over a pass band.

calc_kcorr(data, model, z, obslo, obshi[, ...])

Calculate the K correction for a model.

calc_model_sum(data, model[, lo, hi])

Sum up the fitted model over a pass band.

calc_model_sum2d(data, model[, reg])

Sum up the fitted model for a 2D data set.

calc_photon_flux(data, src[, lo, hi])

Integrate the source model over a pass band.

calc_source_sum(data, src[, lo, hi])

Sum up the source model over a pass band.

compile_energy_grid(arglist)

Combine several grids (energy, channel, wavelength) into one.

do_group

Group the array using OGIP standards.

eqwidth(data, model, combo[, lo, hi])

expand_grouped_mask

Expand a mask array to match the ungrouped data.

filter_resp

get_xspec_norm(y, mdl)

Guess model normalization (XSPEC).

get_xspec_position(y, x[, xhi])

Estimate a position for an XSPEC model.

is_in

rmf_fold

shrink_effarea