sbm.ScanFields#
- class sbm.ScanFields[source]#
Class to store the scan fields data of detectors
- ss#
scanning strategy parameters
- Type:
dict
- hitmap#
hitmap of the detector
- Type:
np.ndarray
- h#
cross-link (orientation function) of the detector
- Type:
np.ndarray
- spins_n#
array of spin_n numbers
- Type:
np.ndarray
- spins_m#
array of spin_m number
- Type:
np.ndarray
- compled_fields#
coupled fields between scan fields and signal fields
- Type:
np.ndarray
- use_hwp#
whether the observation uses HWP or not
- Type:
bool
- nside#
nside of the map
- Type:
int
- npix#
number of pixels in the map
- Type:
int
- mdim#
dimension of the liner system to do the map-making
- Type:
int
- ndet#
number of detectors
- Type:
int
- duration#
duration [s] of the observation
- Type:
float
- sampling_rate#
sampling rate [Hz] of the observation
- Type:
float
- channel#
name of the channel
- Type:
str
- net_detector_ukrts#
net detector noise level [uKrts] of the detector
- Type:
float
- net_channel_ukrts#
net channel noise level [uKrts] of the detectors
- Type:
float
- noise_pdf#
probability density function of the noise per sky pixel
- Type:
np.ndarray
- covmat_inv#
inverse of the covariance matrix of the stokes parameters
- Type:
np.ndarray
- xlink_threshold#
threshold value to decide whether stokes parameter estimation is
- Type:
float
- performed or not in the map-making. The sky pixel with the cross-link value larger than this
- threshold is ignored in the map-making. Default is 1.0 i.e. all the sky pixels stokes paramters are estimated.
Methods
__init__
()create_covmat
(spin_n_basis, spin_m_basis)Get the covariance matrix of the detector in mdim`x`mdim matrix form
generate_noise
(spin_n_basis, spin_m_basis[, ...])Generate observed noise map with the noise PDF.
generate_noise_pdf
([imo, net_ukrts, ...])Generate probability density function (PDF) of the noise.
get_xlink
(spin_n, spin_m)Get the cross-link of the detector for a given spin number
initialize
(mdim)Initialize the scan fields data
load_channel
(channel[, detector_list, base_path])Load the scan fields data of a channel from the directory containing the HDF5 files
load_det
(det_name[, base_path])Load the scan fields data of a detector from a HDF5 file
load_full_FPU
(channel_list[, base_path, ...])Load the scan fields data of all the channels in the FPU from the directory containing the HDF5 files
load_hdf5
(file_path)Load the scan fields data of a detector from a HDF5 file
map_make
(signal_fields[, only_iqu, show_eq])Get the output map by solving the linear equation \(Ax=b\) This operation gives us an equivalent result of the simple binning map-making approach.
t2b
()Transform Top detector cross-link to Bottom detector cross-link It assume top and bottom detector make a orthogonal pair.