当前位置: 首页>>代码示例>>Python>>正文


Python QubicAcquisition.__init__方法代码示例

本文整理汇总了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)
开发者ID:fincardona,项目名称:QUBIC_thesis,代码行数:94,代码来源:MultiQubicAcquisition.py


注:本文中的qubic.QubicAcquisition.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。