Exemplo n.º 1
0
def uniscreen(specfile, params, alpha=ALPHA, **kwargs):
    logNHu, logNHs, a_u, a_s, p_u, p_s, x_s = params
    nhu = np.power(10.0, logNHu)
    UU = MH.simulate_uniform(specfile, NH=nhu, a0=AMIN, a1=a_u, p=p_u, alpha=alpha, **kwargs)
    nhs = np.power(10.0, logNHs)
    SS = MH.simulate_screen(specfile, xg=x_s, NH=nhs, a0=AMIN, a1=a_s, p=p_s, alpha=alpha, **kwargs)
    return sum_interp(UU, SS)
Exemplo n.º 2
0
def uniscreen( specfile, params, alpha=ALPHA, **kwargs ):
    logNHu, logNHs, a_u, a_s, p_u, p_s, x_s = params
    nhu    = np.power( 10.0, logNHu )
    UU     = MH.simulate_uniform( specfile, NH=nhu, \
        a0=AMIN, a1=a_u, p=p_u, alpha=alpha, **kwargs )
    nhs    = np.power( 10.0, logNHs )
    SS     = MH.simulate_screen( specfile, xg=x_s, NH=nhs, \
        a0=AMIN, a1=a_s, p=p_s, alpha=alpha, **kwargs )
    return sum_interp( UU, SS )
Exemplo n.º 3
0
def uniform_halo(filename, params, alpha=ALPHA, **kwargs):
    logNH, amax, p = params
    return MH.simulate_uniform(filename, NH=np.power(10.0, logNH), a0=AMIN, a1=amax, p=p, alpha=alpha, **kwargs)
Exemplo n.º 4
0
def uniform_halo( filename, params, alpha=ALPHA, **kwargs ):
    logNH, amax, p = params
    return MH.simulate_uniform( filename, \
        NH=np.power(10.0,logNH), a0=AMIN, a1=amax, p=p, alpha=alpha, **kwargs )