예제 #1
0
def cross_cl(lbins, r1, r2=None, w=None):
    """ returns the auto- or cross-spectra of either rfft or tebfft objects. this is a convenience wrapper around tebfft2cl and rcfft2cl. """
    if r2 is None:
        r2 = r1
    assert (r1.compatible(r2))

    if maps.is_tebfft(r1):
        return tebfft2cl(lbins, r1, r2, t=t)
    elif maps.is_rfft(r1):
        return rcfft2cl(lbins, r1, r2, t=t)
    elif maps.is_cfft(r1):
        return rcfft2cl(lbins, r1, r2, t=t)
    else:
        assert (0)
예제 #2
0
def cross_cl( lbins, r1, r2=None, w=None ):
    """ returns the auto- or cross-spectra of either rfft or tebfft objects. this is a convenience wrapper around tebfft2cl and rcfft2cl. """
    if r2 is None:
        r2 = r1
    assert( r1.compatible( r2 ) )

    if maps.is_tebfft(r1):
        return tebfft2cl(lbins, r1, r2, t=t)
    elif maps.is_rfft(r1):
        return rcfft2cl(lbins, r1, r2, t=t)
    elif maps.is_cfft(r1):
        return rcfft2cl(lbins, r1, r2, t=t)
    else:
        assert(0)