Initial import

This commit is contained in:
Guilhem Lavaux 2023-05-29 10:41:03 +02:00
commit 56a50eead3
820 changed files with 192077 additions and 0 deletions

View file

76
scripts/quasar/Quasar.ini Normal file
View file

@ -0,0 +1,76 @@
[system]
console_output=logares.txt
VERBOSE_LEVEL = 2
N0 = 64
N1 = 64
N2 = 64
L0 = 15000
L1 = 15000
L2 = 15000
corner0=-7500
corner1=-7500
corner2=-7500
NUM_MODES=30
N_MC=1000
# If true, data is discarded, meta data is kept and used to generate mock realizations
# of the data, assuming some cosmological power spectrum as determined from the [cosmo]
# section
test_mode=true
# If true, the initial power spectrum of the chain is set to the cosmological one
seed_cpower=true
# Indicate which samplers should be blocked for testing purposes
messenger_signal_blocked=false
power_sampler_a_blocked=false
power_sampler_b_blocked=false
bias_sampler_blocked=false
[run]
NCAT = 2
[cosmology]
omega_r = 0
omega_k = 0
omega_m = 0.30
omega_b = 0.045
omega_q = 0.70
w = -1
wprime = 0
n_s = 1
sigma8 = 0.80
h100 = 0.65
beta = 0.51
z0 = 0
[catalog_1]
datafile = QUASAR.txt
maskdata = one.fits
radial_selection = file
radial_file = quasar_selection.txt
refbias = true
nmean=20000
bias=3
[catalog_0]
datafile=QUASAR.txt
maskdata=one.fits
radial_selection = schechter
refbias=true
nmean=1000
bias=1
schechter_alpha=-0.94
schechter_mstar=-23.28
schechter_sampling_rate = 1000
schechter_dmax = 6000
galaxy_bright_apparent_magnitude_cut = 5
galaxy_faint_apparent_magnitude_cut = 20.5
galaxy_bright_absolute_magnitude_cut = -27
galaxy_faint_absolute_magnitude_cut = -20

View file

@ -0,0 +1,51 @@
50 1500
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
6.673907226393414107e-06
1.734337076802830175e-04
1.647804654638367495e-04
1.592090793589784543e-04
1.565669552298505868e-04
1.624398458001042786e-04
1.725257855230777424e-04
1.980533338931222802e-04
2.237396632301090775e-04
2.070433955770229232e-04
2.047457554473321780e-04
1.978205375085790956e-04
1.885770893536208503e-04
1.928008703640204360e-04
2.063115299378451631e-04
2.026780570325601523e-04
2.098433958446920163e-04
2.224598655709381317e-04
2.010470068082567186e-04
1.883110442296301919e-04
1.741405501226736617e-04
1.512519934395997138e-04
1.359556689075110006e-04
1.174436351257825535e-04
1.011449443557470632e-04
1.003995284387548706e-05
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00

View file

@ -0,0 +1,44 @@
#+
# ARES/HADES/BORG Package -- ./scripts/quasar/gen_selection_qso.py
# Copyright (C) 2014-2020 Guilhem Lavaux <guilhem.lavaux@iap.fr>
# Copyright (C) 2009-2020 Jens Jasche <jens.jasche@fysik.su.se>
#
# Additional contributions from:
# Guilhem Lavaux <guilhem.lavaux@iap.fr> (2023)
#
#+
import cosmolopy as cpy
import numpy as np
import pyfits as pf
cosmo={'omega_M_0':0.30,'omega_lambda_0':0.70,'omega_k_0':0,'h':0.65,'sigma8':0.80}
f = pf.open("DR12Q.fits")
c = f[1].data
Z = c['Z_PIPE']
d = cpy.distance.comoving_distance(Z, **cosmo) * cosmo['h']
Dmax = 8000
Nb = 100
delta = 0.5*Dmax/Nb
d = d[d>100]
H,b = np.histogram(d, range=(0-delta,Dmax-delta),bins=Nb)
b0 = 0.5*(b[1:] + b[0:b.size-1])
H = H.astype(np.float64) / (b[1:]**3 - b[0:b.size-1]**3)
b0max = Dmax
H /= H.max()
with open("quasar_selection.txt", mode="wt") as f:
f.write("%d %lg\n" % (H.size, b0max))
for r in H:
f.write("%lg\n" % r)

BIN
scripts/quasar/one.fits Normal file

Binary file not shown.

View file

@ -0,0 +1,231 @@
230 9200
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
4.464256056972410467e-07
4.920217452309941548e-07
5.825344815425159915e-07
7.008903535579486308e-07
1.077480445647259972e-06
1.526666626082827528e-06
1.818815122479636500e-06
2.018677949544820690e-06
2.005543949398441098e-06
1.925904845383709055e-06
1.828709639491850945e-06
1.756264149072702208e-06
1.588094063832900675e-06
1.405091172847078112e-06
1.339373166135644391e-06
1.226769448563412834e-06
1.092605119806316037e-06
1.002979573645545923e-06
8.829936736012149635e-07
7.663851835305657866e-07
6.891610749489451356e-07
6.515506267990144133e-07
6.075563991776231622e-07
5.980036671071462753e-07
5.777078931125058108e-07
5.677421646413206615e-07
5.484818119363407165e-07
4.898276062850167770e-07
4.723789439670749620e-07
4.302917765212324781e-07
3.675181531518500531e-07
3.180582666704701342e-07
2.208067257960157904e-07
1.428135441397378421e-07
1.115902311634798465e-07
1.068686393453370296e-07
1.235690453454264588e-07
1.293630566075979715e-07
1.220736219495483258e-07
1.084159012912398193e-07
8.875775927054741121e-08
6.470422805962073154e-08
5.475890130818397029e-08
4.462003253544039184e-08
3.528368369328123565e-08
2.228615668601604571e-08
2.125720618622087093e-08
1.814268244042811866e-08
1.354162258586397821e-08
1.162502853211510599e-08
1.077068164570427032e-08
1.003672815208152326e-08
1.011299662590278025e-08
1.038258223880551272e-08
7.838559543718416206e-09
5.067693751139185135e-09
4.913061835489195437e-09
4.761724140949369054e-09
3.044973918760326512e-09
2.279897290627057168e-09
1.802771197349926254e-09
1.514691673929204962e-09
2.290036414881933966e-09
2.176864824857619630e-09
2.324373912131133400e-09
1.957712349281418461e-09
2.609091315565912616e-09
2.663247445337106263e-09
1.646086301218361054e-09
1.953537352499027030e-09
2.576171919222921799e-09
2.548094030641825980e-09
1.575295429427995549e-10
8.570712026510770418e-10
7.708001628315344194e-10
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0.000000000000000000e+00
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0