Shell2D¶
-
class
sherpa.astro.models.
Shell2D
(name='shell2d')[source] [edit on github]¶ Bases:
sherpa.models.model.RegriddableModel2D
A homogenous spherical 3D shell projected onto 2D.
-
xpos
¶ The center of the shell on the x0 axis.
-
ypos
¶ The center of the shell on the x1 axis.
-
ampl
¶ The amplitude.
-
r0
¶ The line-of-sight distance.
-
width
¶ The width of the shell.
See also
Notes
The functional form of the model for points is:
f(x0,x1) = ampl * r(x0,x1) = 0 otherwise r(x0,x1) = ?
For grids, the x0lo,x1lo values are used in the above equation.
It is not correct for very large shells on the sky.
This model was provided by Christoph Deil.
Attributes Summary
thawedparhardmaxes
thawedparhardmins
thawedparmaxes
thawedparmins
thawedpars
Methods Summary
apply
(outer, *otherargs, **otherkwargs)calc
(p, x, y, *args, **kwargs)Homogeneously emitting spherical shell, projected along the z-direction (this is not 100% correct for very large shells on the sky). get_center
()guess
(dep, *args, **kwargs)Set an initial guess for the parameter values. regrid
(*arrays)reset
()set_center
(*args, **kwargs)startup
(cache)Called before a model may be evaluated multiple times. teardown
()Called after a model may be evaluated multiple times. Attributes Documentation
-
thawedparhardmaxes
¶
-
thawedparhardmins
¶
-
thawedparmaxes
¶
-
thawedparmins
¶
-
thawedpars
¶
Methods Documentation
-
apply
(outer, *otherargs, **otherkwargs) [edit on github]¶
-
calc
(p, x, y, *args, **kwargs)[source] [edit on github]¶ Homogeneously emitting spherical shell, projected along the z-direction (this is not 100% correct for very large shells on the sky).
-
get_center
() [edit on github]¶
-
guess
(dep, *args, **kwargs) [edit on github]¶ Set an initial guess for the parameter values.
Attempt to set the parameter values, and ranges, for the model to match the data values. This is intended as a rough guess, so it is expected that the model is only evaluated a small number of times, if at all.
-
regrid
(*arrays) [edit on github]¶
-
reset
() [edit on github]¶
-
set_center
(*args, **kwargs) [edit on github]¶
-
startup
(cache) [edit on github]¶ Called before a model may be evaluated multiple times.
See also
-
teardown
() [edit on github]¶ Called after a model may be evaluated multiple times.
See also
setup()
-