@classmethod
def from_domain(cls, domain, array=None, parameters=None, log_level=30):
    """Create Nansat object from input Domain [and array with data]

        Parameters
        ----------
        domain : Domain
            Defines spatial reference system and geographical extent.
        array : numpy NDarray
            Data for the first band. Shape must correspond to shape of <domain>
        parameters : dict
            Metadata for the first band. May contain 'name', 'wkv' and other keys.
        log_level : int
            Level of logging.

        """
    n = cls.__new__(cls)
    n._init_from_domain(domain, array, parameters, log_level)
    return n
