PointSpatialModel¶
-
class
gammapy.modeling.models.
PointSpatialModel
(lon_0, lat_0, frame='icrs')[source]¶ Bases:
gammapy.modeling.models.SpatialModel
Point Source.
\[\phi(lon, lat) = \delta{(lon - lon_0, lat - lat_0)}\]Parameters: - lon_0, lat_0 :
Angle
Center position
- frame : {“icrs”, “galactic”}
Center position coordinate frame
Attributes Summary
evaluation_radius
Evaluation radius ( Angle
).frame
lat_0
lon_0
parameters
Parameters ( Parameters
)position
Spatial model center position tag
Methods Summary
__call__
(self, lon, lat)Call evaluate method copy
(self)A deep copy. create
(tag, \*args, \*\*kwargs)Create a model instance. evaluate_geom
(self, geom)Evaluate model on Geom
.from_dict
(data)to_dict
(self)Attributes Documentation
-
frame
¶
-
lat_0
¶
-
lon_0
¶
-
parameters
¶ Parameters (
Parameters
)
-
position
¶ Spatial model center position
-
tag
= 'PointSpatialModel'¶
Methods Documentation
-
__call__
(self, lon, lat)¶ Call evaluate method
-
copy
(self)¶ A deep copy.
-
static
create
(tag, *args, **kwargs)¶ Create a model instance.
Examples
>>> from gammapy.modeling import Model >>> spectral_model = Model.create("PowerLaw2SpectralModel", amplitude="1e-10 cm-2 s-1", index=3) >>> type(spectral_model) gammapy.modeling.models.spectral.PowerLaw2SpectralModel
-
classmethod
from_dict
(data)¶
-
to_dict
(self)¶
- lon_0, lat_0 :