Calculate the k correction
calc_kcorr(z, obslo, obshi; [restlo, resthi, id, bkg_id] );
The calc_kcorr command calculates the k correction for a
spectral model, redshift, and energy range for a source or
background dataset. The energy range is taken to be obslo
<= energy < obshi .
-
z - the redshift can be a scalar or a 1-D array; the return
value matches that of z. If it is an array, the k
correction is evaluated for each redshift in the array.
-
obslo - observed-frame lower energy limit (keV)
-
obshi - observed-frame upper energy limit (keV)
-
restlo - rest-frame lower energy limit (keV); default=obslo
-
resthi - rest-frame upper energy energy (keV); default=obshi
-
id - the id of the dataset to use; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
-
bkg_id - the id of the background, if calculating the kcorr
for the background; default is the first background
associated with the id
sherpa> calc_kcorr(0.5, 0.5, 2);
Calculate the k correction for a redshift of 0.5 over the
energy range 05:2 keV.
sherpa> calc_kcorr(0.5, 0.5, 2, 2, 10; bkg_id=2);
Calculate the k correction for the background dataset
bkg_id=2 for a redshift of 0.5 over the energy range 05:2
keV with rest-frame energy limits of 2:10 keV.
- py.sherpa
-
get_staterror,
get_syserror
- sl.sherpa
-
calc_data_sum,
calc_data_sum2d,
calc_ftest,
calc_mlr,
calc_model_sum2d,
calc_source_sum2d,
clean,
contour,
contour_data,
contour_ratio,
copy_data,
dataspace1d,
dataspace2d,
delete_data,
get_axes,
get_bkg_plot,
get_counts,
get_data,
get_data_plot,
get_default_id,
get_dep,
get_dims,
get_error,
get_filter,
get_rate,
get_ratio,
get_resid,
get_specresp,
get_staterror,
get_syserror,
group,
histogram1d,
histogram2d,
image_data,
list_data_ids,
list_response_ids,
load_ascii,
load_data,
plot_data,
rebin,
set_data,
ungroup,
unpack_ascii,
unpack_data
|