sbm.ScanFields.generate_noise#
- ScanFields.generate_noise(spin_n_basis: list, spin_m_basis: list, seed=None) ndarray [source]#
Generate observed noise map with the noise PDF. Before using this method, you should generate the noise PDF by
ScanFields.generate_noise_pdf()
method. :param spin_n_basis: list of spin_n to create the covariance matrix :type spin_n_basis: list :param spin_m_basis: list of spin_m to create the covariance matrix :type spin_m_basis: list :param seed: seed for the random number generator :type seed: int- Returns:
noise map
- Return type:
noise (np.ndarray [3, npix])