GaussianBand2D

class gammapy.background.GaussianBand2D(table, spline_kwargs={'s': 0, 'k': 1})[source]

Bases: object

Gaussian band model.

This 2-dimensional model is Gaussian in y for a given x, and the Gaussian parameters can vary in x.

One application of this model is the diffuse emission along the Galactic plane, i.e. x = GLON and y = GLAT.

Parameters:

table : Table

Table of Gaussian parameters. x, amplitude, mean, stddev.

spline_kwargs : dict

Keyword arguments passed to UnivariateSpline

Methods Summary

evaluate(x, y) Evaluate model at a given position (x, y) position.
parvals(x) Interpolated parameter values at a given x.
y_model(x) Create model at a given x position.

Methods Documentation

evaluate(x, y)[source]

Evaluate model at a given position (x, y) position.

parvals(x)[source]

Interpolated parameter values at a given x.

y_model(x)[source]

Create model at a given x position.