make_header

gammapy.image.make_header(nxpix=100, nypix=100, binsz=0.1, xref=0, yref=0, proj='CAR', coordsys='GAL', xrefpix=None, yrefpix=None)[source]

Generate a FITS header from scratch.

Uses the same parameter names as the Fermi tool gtbin.

If no reference pixel position is given it is assumed ot be at the center of the image.

Parameters:

nxpix : int, optional

Number of pixels in x axis. Default is 100.

nypix : int, optional

Number of pixels in y axis. Default is 100.

binsz : float, optional

Bin size for x and y axes in units of degrees. Default is 0.1.

xref : float, optional

Coordinate system value at reference pixel for x axis. Default is 0.

yref : float, optional

Coordinate system value at reference pixel for y axis. Default is 0.

proj : string, optional

Projection type. Default is ‘CAR’ (cartesian).

coordsys : {‘CEL’, ‘GAL’}, optional

Coordinate system. Default is ‘GAL’ (Galactic).

xrefpix : float, optional

Coordinate system reference pixel for x axis. Default is None.

yrefpix: float, optional

Coordinate system reference pixel for y axis. Default is None.

Returns:

header : Header

Header