Deproject from a set of 2-d annular spectra to the 3-d object properties.
| Copyright: | Smithsonian Astrophysical Observatory (2009) |
|---|---|
| Author: | Tom Aldcroft (aldcroft@head.cfa.harvard.edu) |
Bases: specstack.SpecStack
Deproject from a set of 2-d annular spectra to the 3-d object properties.
The radii parameter must be a list of values that starts with the inner radius of the inner annulus and includes each radius up through the outer radius of the outer annulus. Thus the radii list will be one element longer than the number of annuli.
| Parameters: |
|
|---|
Angular size distance
Find the normalization value for the shell model. Check for multiple or missing norms.
| Parameters: | shell – shell index |
|---|---|
| Return type: | norm value |
Find the value of the first parameter with the given parname. Ignore case when matching.
| Parameters: | parname – parameter name |
|---|---|
| Return type: | parameter value |
Do a fit of the model parameters using the “onion-peeling” method:
- First fit the outside shell model using the outer annulus spectrum
- Freeze the model parameters for the outside shell
- Fit the next inward shell / annulus and freeze those parameters
- Repeat until all datasets have been fit and all shell parameters determined.
- Return model parameters to original thawed/frozen status
| Return type: | None |
|---|
Apply freeze command to specified parameter for each dataset.
| Parameters: | par – parameter specifier in format <model_type>.<par_name> |
|---|---|
| Return type: | None |
Get electron density (cm^-3) for each shell using the standard definition of normalization for Xspec thermal models:
n_e = sqrt(norm * 4*pi * DA^2 * 1e14 * (1+z)^2 / volume * ne_nh_ratio))
norm = model normalization from sherpa fit
DA = angular size distance (cm)
volume = volume (cm^3)
ne_nh_ratio = 1.18
Note that the model components for each volume element (intersection of the annular cylinder a with the spherical shell s) are multiplied by a volume normalization:
vol_norm[s,a] = volume[s,a] / v_sphere
v_sphere = volume of sphere enclosing outer annulus
With this convention the volume used in calculating the electron density is simply v_sphere.
| Return type: | numpy array of densities (cm^-3) corresponding to shells |
|---|
Get array of parameter values for datasets.
| Parameters: |
|
|---|---|
| Return type: | numpy array of parameter value ordered by dataset |
Apply Sherpa ignore command to each dataset.
Load a pha file and add to the datasets for stacked analysis.
| Parameters: |
|
|---|
Return the number of datasets :rtype: int
Apply Sherpa notice command to each dataset.
Print window for each dataset.
| Parameters: |
|
|---|---|
| Return type: | None |
Source redshift
Create a source model for each dataset. A dataset is associated with a specific extraction annulus.
| Parameters: | bkgmodel – string expression defining background model |
|---|---|
| Return type: | None |
Set parameter value for each dataset.
| Parameters: |
|
|---|---|
| Return type: | None |
Create a source model for each dataset. A dataset is associated with a specific extraction annulus.
| Parameters: | srcmodel – string expression defining source model |
|---|---|
| Return type: | None |
Subtract background from each dataset
Apply thaw command to specified parameter for each dataset.
| Parameters: | par – parameter specifier in format <model_type>.<par_name> |
|---|---|
| Return type: | None |