本文整理匯總了Python中qubic.QubicAcquisition.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python QubicAcquisition.__init__方法的具體用法?Python QubicAcquisition.__init__怎麽用?Python QubicAcquisition.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類qubic.QubicAcquisition
的用法示例。
在下文中一共展示了QubicAcquisition.__init__方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from qubic import QubicAcquisition [as 別名]
# 或者: from qubic.QubicAcquisition import __init__ [as 別名]
def __init__(self, instrument, sampling, scene=None, block=None,
calibration=None, detector_nep=4.7e-17, detector_fknee=0,
detector_fslope=1, detector_ncorr=10, detector_ngrids=1,
detector_tau=0.01, filter_relative_bandwidth=0.25,
polarizer=True, primary_beam=None, secondary_beam=None,
synthbeam_dtype=np.float32, synthbeam_fraction=0.99,
absolute=False, kind='IQU', nside=256, max_nbytes=None,
nprocs_instrument=None, nprocs_sampling=None, comm=None):
"""
acq = MultiQubicAcquisition(band, sampling,
[scene=|absolute=, kind=, nside=],
nprocs_instrument=, nprocs_sampling=, comm=)
acq = MultiQubicAcquisition(instrument, sampling,
[scene=|absolute=, kind=, nside=],
nprocs_instrument=, nprocs_sampling=, comm=)
Parameters
----------
band : int
The module nominal frequency, in GHz.
scene : QubicScene, optional
The discretized observed scene (the sky).
block : tuple of slices, optional
Partition of the samplings.
absolute : boolean, optional
If true, the scene pixel values include the CMB background and
the fluctuations in units of Kelvin, otherwise it only represent
the fluctuations, in microKelvin.
kind : 'I', 'QU' or 'IQU', optional
The sky kind: 'I' for intensity-only, 'QU' for Q and U maps,
and 'IQU' for intensity plus QU maps.
nside : int, optional
The Healpix scene's nside.
instrument : QubicInstrument, optional
The QubicInstrument instance.
calibration : QubicCalibration, optional
The calibration tree.
detector_fknee : array-like, optional
The detector 1/f knee frequency in Hertz.
detector_fslope : array-like, optional
The detector 1/f slope index.
detector_ncorr : int, optional
The detector 1/f correlation length.
detector_nep : array-like, optional
The detector NEP [W/sqrt(Hz)].
detector_ngrids : 1 or 2, optional
Number of detector grids.
detector_tau : array-like, optional
The detector time constants in seconds.
filter_relative_bandwidth : float, optional
The filter relative bandwidth delta_nu/nu.
polarizer : boolean, optional
If true, the polarizer grid is present in the optics setup.
primary_beam : function f(theta [rad], phi [rad]), optional
The primary beam transmission function.
secondary_beam : function f(theta [rad], phi [rad]), optional
The secondary beam transmission function.
synthbeam_dtype : dtype, optional
The data type for the synthetic beams (default: float32).
It is the dtype used to store the values of the pointing matrix.
synthbeam_fraction: float, optional
The fraction of significant peaks retained for the computation
of the synthetic beam.
max_nbytes : int or None, optional
Maximum number of bytes to be allocated for the acquisition's
operator.
nprocs_instrument : int, optional
For a given sampling slice, number of procs dedicated to
the instrument.
nprocs_sampling : int, optional
For a given detector slice, number of procs dedicated to
the sampling.
comm : mpi4py.MPI.Comm, optional
The acquisition's MPI communicator. Note that it is transformed
into a 2d cartesian communicator before being stored as the
'comm' attribute. The following relationship must hold:
comm.size = nprocs_instrument * nprocs_sampling
"""
QubicAcquisition.__init__(
self, instrument=instrument, sampling=sampling, scene=scene,
block=block, calibration=calibration, detector_nep=detector_nep,
detector_fknee=detector_fknee, detector_fslope=detector_fslope,
detector_ncorr=detector_ncorr, detector_ngrids=detector_ngrids,
detector_tau=detector_tau,
filter_relative_bandwidth=filter_relative_bandwidth,
polarizer=polarizer, primary_beam=primary_beam,
secondary_beam=secondary_beam, synthbeam_dtype=synthbeam_dtype,
synthbeam_fraction=synthbeam_fraction, absolute=absolute,
kind=kind, nside=nside, max_nbytes=max_nbytes,
nprocs_instrument=nprocs_instrument,
nprocs_sampling=nprocs_sampling, comm=comm)