MapCoords

class gammapy.maps.MapCoords(data, coordsys='CEL')[source]

Bases: object

Represents a sequence of n-dimensional map coordinates.

Contains coordinates for 2 spatial dimensions and an arbitrary number of additional non-spatial dimensions.

Parameters:

data : tuple of ndarray

Tuple of coordinate values.

Attributes Summary

lat
lon
ndim
shape
size

Methods Summary

create(data, **kwargs)
from_lonlat(lon, lat, *args, **kwargs) Create from vectors of longitude and latitude in degrees.
from_skydir(skydir, *args, **kwargs) Create from vector of SkyCoord.
from_tuple(coords, **kwargs) Create from tuple of coordinate vectors.

Attributes Documentation

lat
lon
ndim
shape
size

Methods Documentation

classmethod create(data, **kwargs)[source]
classmethod from_lonlat(lon, lat, *args, **kwargs)[source]

Create from vectors of longitude and latitude in degrees.

classmethod from_skydir(skydir, *args, **kwargs)[source]

Create from vector of SkyCoord.

classmethod from_tuple(coords, **kwargs)[source]

Create from tuple of coordinate vectors.