PiecewiseNormSpatialModel#
- class gammapy.modeling.models.PiecewiseNormSpatialModel[source]#
Bases:
SpatialModel
Piecewise spatial correction with a free normalization at each fixed nodes.
For more information see Piecewise norm spatial model.
- Parameters:
- coord
gammapy.maps.MapCoord
Flat coordinates list at which the model values are given (nodes).
- norms
ndarray
or list ofgammapy.modeling.Parameter
Array with the initial norms of the model at energies
energy
. Normalisation parameters are created for each value. Default is one at each node.- interp{“lin”, “log”}
Interpolation scaling. Default is “lin”.
- coord
Attributes Summary
Energy nodes.
Norm values.
Methods Summary
evaluate
(lon, lat[, energy])Evaluate the model at given coordinates.
evaluate_geom
(geom)Evaluate model on
Geom
.from_dict
(data)Create model from dictionary.
from_parameters
(parameters, **kwargs)Create model from parameters.
to_dict
([full_output])Create dictionary for YAML serilisation.
Attributes Documentation
- coords#
Energy nodes.
- default_parameters = <gammapy.modeling.parameter.Parameters object>#
- is_energy_dependent#
- norms#
Norm values.
- tag = ['PiecewiseNormSpatialModel', 'piecewise-norm']#
Methods Documentation
- classmethod __new__(*args, **kwargs)#