Ejemplo n.º 1
0
    def get_templates(self):
        """
        Returns a 3D array ([ntemp][nmap][npix]) corresponding to the contaminant templates passed when initializing this field.

        :return: 3D array of HEALPix maps
        """
        temp = np.zeros([self.fl.ntemp, self.fl.nmaps, self.fl.npix])
        for itemp in range(self.fl.ntemp):
            for imap in range(self.fl.nmaps):
                temp[itemp, imap, :] = lib.get_temp(self.fl, itemp, imap,
                                                    int(self.fl.npix))
        else:
            tmps = temp
        return tmps
Ejemplo n.º 2
0
    def get_templates(self):
        """
        Returns a 3D array ([ntemp][nmap][npix]) corresponding to the \
        contaminant templates passed when initializing this field.

        :return: 3D array of maps
        """
        if self.lite:
            raise ValueError("Input maps unavailable for lightweight fields")
        temp = np.zeros([self.fl.ntemp, self.fl.nmaps, self.fl.npix])
        for itemp in range(self.fl.ntemp):
            for imap in range(self.fl.nmaps):
                temp[itemp, imap, :] = lib.get_temp(self.fl, itemp, imap,
                                                    int(self.fl.npix))
        else:
            tmps = temp
        return tmps