# Path: cora/util/units.py
# G = 6.6742e-11
# 
# Path: cora/core/skysim.py
# def clarray(aps, lmax, zarray, zromb=3, zwidth=None):
# def mkfullsky(corr, nside, alms=False, rng=None):
# def mkconstrained(corr, constraints, nside):


import numpy as np
from cora.util import units
from cora.core import skysim

    Attributes
    ----------
    x_width, y_width : float
        Angular size along each axis (in degrees).
    x_num, y_num : int
        Number of pixels along each angular axis.
    """
    x_width = 5.0
    y_width = 5.0

    x_num = 128
    y_num = 128

    _nside = 128

    @classmethod
    def like_map(cls, mapobj, *args, **kwargs):
        r"""Create a Map2d (or subclassed) object the same shape as a given object."""

        c = cls(*args, **kwargs)
        c.x_width = mapobj.x_width
        c.y_width = mapobj.y_width
        c.x_num = mapobj.x_num
        c.y_num = mapobj.y_num
        c._nside = mapobj._nside

        return c

    def _width_array(self):

# Path: cora/util/units.py
# G = 6.6742e-11
# 
# Path: cora/core/skysim.py
# def clarray(aps, lmax, zarray, zromb=3, zwidth=None):
# def mkfullsky(corr, nside, alms=False, rng=None):
# def mkconstrained(corr, constraints, nside):


# Path: cora/core/maps.py
import numpy as np
from cora.util import units
from cora.core import skysim


    Attributes
    ----------
    x_width, y_width : float
        Angular size along each axis (in degrees).
    x_num, y_num : int
        Number of pixels along each angular axis.
    """
    x_width = 5.0
    y_width = 5.0

    x_num = 128
    y_num = 128

    _nside = 128

    @classmethod
    def like_map(cls, mapobj, *args, **kwargs):
        r"""Create a Map2d (or subclassed) object the same shape as a given object."""

        c = cls(*args, **kwargs)
        c.x_width = mapobj.x_width
        c.y_width = mapobj.y_width
        c.x_num = mapobj.x_num
        c.y_num = mapobj.y_num
        c._nside = mapobj._nside

        return c

    def _width_array(self):

        return np.array([self.x_width, self.y_width], dtype=np.float64) * units.degree