gammapy/maps/hpx.py
def to_ud_graded(self, order):
        """Upgrade or downgrade the resolution to the given order.

        This method does not preserve the geometry footprint.

        Returns
        -------
        geom : `~HpxGeom`
            A HEALPix geometry object.
        """
        if np.any(self.order < 0):
            raise ValueError("Upgrade and degrade only implemented for standard maps")

        axes = copy.deepcopy(self.axes)
        return self.__class__(
            2 ** order, self.nest, frame=self.frame, region=self.region, axes=axes
        )
Upgrade or downgrade the resolution to the given order.

        This method does not preserve the geometry footprint.

        Returns
        -------
        geom : `~HpxGeom`
            A HEALPix geometry object.
        
Upgrade or downgrade the resolution to the given order.
This method does not preserve the geometry footprint.

Returns

geom : `~HpxGeom`
A HEALPix geometry object.
Upgrade or downgrade the resolution to the given order . This method does not preserve the geometry footprint . Returns geom : ` ~HpxGeom ` A HEALPix geometry object .
def to_ud_graded(self, order):
        if np.any(self.order < 0):
            raise ValueError("Upgrade and degrade only implemented for standard maps")
        axes = copy.deepcopy(self.axes)
        return self.__class__(
            2 ** order, self.nest, frame=self.frame, region=self.region, axes=axes
        )
def to_ud_graded ( self , order ) : if np . any ( self . order < 0 ) : raise ValueError ( "Upgrade and degrade only implemented for standard maps" ) axes = copy . deepcopy ( self . axes ) return self . __class__ ( 2 ** order , self . nest , frame = self . frame , region = self . region , axes = axes )
Upgrade or downgrade the resolution to the given order.
Upgrade or downgrade the resolution to the given order .
"""Upgrade or downgrade the resolution to the given order.

        This method does not preserve the geometry footprint.

        Returns
        -------
        geom : `~HpxGeom`
            A HEALPix geometry object.
        """
self
order