mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
updated examples
This commit is contained in:
parent
ad3e5d1577
commit
4494fcdd2f
2 changed files with 108 additions and 242 deletions
|
@ -19,18 +19,10 @@
|
|||
#+
|
||||
#!/usr/bin/env python
|
||||
|
||||
# does analysis in real space assuming LCDM cosmology
|
||||
|
||||
import os
|
||||
import numpy as np
|
||||
from void_python_tools.backend.classes import *
|
||||
|
||||
# does full void analysis. Also generates 2d/1d stacked plots and hubble diagram
|
||||
|
||||
# to combine multiple samples:
|
||||
# For example, combining dim from 0.0-0.1 and bright from 0.1-0.2:
|
||||
# 1) add dim+bright to sampleList - "+" is required to detect combo!
|
||||
|
||||
# if True, will scan log files for last known completed state and run from there
|
||||
continueRun = False
|
||||
|
||||
|
@ -38,213 +30,75 @@ continueRun = False
|
|||
# 1 : extract redshift slices from data
|
||||
# 2 : void extraction using zobov
|
||||
# 3 : removal of small voids and voids near the edge
|
||||
# 4 : void stacking and combining
|
||||
# 5 : 1-d and 2-d profile generation
|
||||
# 6 : fitting and plotting stacked voids
|
||||
# 7 : determination of error bars (if requested)
|
||||
# 8 : hubble diagram generation
|
||||
# 9 : liklihood determination
|
||||
startCatalogStage = 1
|
||||
endCatalogStage = 1
|
||||
endCatalogStage = 3
|
||||
|
||||
catalogName = "lcdm"
|
||||
# a global name to give
|
||||
#catalogName = "lcdm"
|
||||
|
||||
# where main data files are present/will go
|
||||
workDir = os.getenv("HOME")+"/workspace/Voids/sdss_dr7LCDM/"
|
||||
|
||||
# directory for input data files
|
||||
inputDataDir = os.getenv("HOME")+"/workspace/Voids/catalogs/nyuvagc/"
|
||||
|
||||
# void catalog output directory
|
||||
workDir = os.getenv("HOME")+"/workspace/Voids/sdss_dr7LCDM/"
|
||||
|
||||
# output directory for log files
|
||||
logDir = os.getenv("PWD")+"/../logs/sdss_dr7LCDM"
|
||||
|
||||
# output directory for figures
|
||||
figDir = os.getenv("PWD")+"/../figs/sdss_dr7LCDM"
|
||||
|
||||
# you need to set these manually: point to ZOBOV and C_TOOLS in VIDE directory
|
||||
ZOBOV_PATH = os.getenv("PWD")+"/../zobov/"
|
||||
CTOOLS_PATH = os.getenv("PWD")+"/../c_tools/"
|
||||
|
||||
freshStack = True # "no" to continue building onto existing stacked voids
|
||||
# if true, convert to comoving space using LCDM cosmology
|
||||
useComoving = True
|
||||
|
||||
errorBars = "CALCULATED" # "ESTIMATED" for error bars from multiple null tests
|
||||
#errorBars = "ESTIMATED" # "ESTIMATED" for error bars from multiple null tests
|
||||
# "CALCULATED" to use fitting procedure
|
||||
numIncoherentRuns = 100
|
||||
|
||||
ranSeed = 101010
|
||||
|
||||
useComoving = True # if true, convert to real space using LCDM cosmology
|
||||
|
||||
# try different portions of data. available options: "all, central, edge"
|
||||
dataPortions = ["central", "all"]
|
||||
|
||||
numZobovDivisions = 2
|
||||
# optimization: maximum number of parallel threads to use
|
||||
numZobovThreads = 2
|
||||
|
||||
# optimization: number of subdivisions of the box
|
||||
numZobovDivisions = 2
|
||||
|
||||
# don't change this
|
||||
dataSampleList = []
|
||||
|
||||
# define your volume-limited samples
|
||||
newSample = Sample(
|
||||
# path to galaxy file is inputDataDir+dataFile
|
||||
dataFile = "filename.dat"
|
||||
|
||||
newSample = Sample(fullName = "lss.dr72dim1.dat",
|
||||
# full name for this sample
|
||||
fullName = "lss.dr72dim1.dat",
|
||||
|
||||
# a convenient nickname
|
||||
nickName = "dim1",
|
||||
|
||||
# don't change this
|
||||
dataType = "observation",
|
||||
|
||||
# HEALpix mask file
|
||||
maskFile = inputDataDir+"/healpix/rast_window_512.fits",
|
||||
selFunFile = inputDataDir+"/czselfunc.all.dr72dim1.dat",
|
||||
|
||||
# max and min redshifts of galaxies in your sample
|
||||
zBoundary = (0.0, 0.05),
|
||||
|
||||
# max and min redshifts where you want to find voids
|
||||
zRange = (0.0, 0.05),
|
||||
|
||||
# TODO
|
||||
skyFraction = 0.19,
|
||||
minVoidRadius = 3.479,
|
||||
fakeDensity = 0.01,
|
||||
volumeLimited = True,
|
||||
includeInHubble = False,
|
||||
partOfCombo = True,
|
||||
isCombo = False,
|
||||
comboList= None)
|
||||
newSample.addStack(0.0, 0.1, 8, 12, False, True)
|
||||
newSample.addStack(0.0, 0.1, 12, 16, False, True)
|
||||
newSample.addStack(0.0, 0.1, 16, 20, False, True)
|
||||
newSample.addStack(0.0, 0.1, 20, 28, False, True)
|
||||
dataSampleList.append(newSample)
|
||||
|
||||
newSample = Sample(fullName = "lss.dr72dim2.dat",
|
||||
nickName = "dim2",
|
||||
dataType = "observation",
|
||||
maskFile = inputDataDir+"/healpix/rast_window_512.fits",
|
||||
selFunFile = inputDataDir+"/czselfunc.all.dr72dim2.dat",
|
||||
zBoundary = (0.0, 0.1),
|
||||
zRange = (0.05, 0.1),
|
||||
skyFraction = 0.19,
|
||||
minVoidRadius = 4.723,
|
||||
fakeDensity = 0.01,
|
||||
volumeLimited = True,
|
||||
includeInHubble = False,
|
||||
partOfCombo = True,
|
||||
isCombo = False,
|
||||
comboList= None)
|
||||
newSample.addStack(0.0, 0.1, 8, 12, False, True)
|
||||
newSample.addStack(0.0, 0.1, 12, 16, False, True)
|
||||
newSample.addStack(0.0, 0.1, 16, 20, False, True)
|
||||
newSample.addStack(0.0, 0.1, 20, 28, False, True)
|
||||
dataSampleList.append(newSample)
|
||||
|
||||
newSample = Sample(fullName = "lss.dr72dim1+dim2.dat",
|
||||
nickName = "dim1+dim2",
|
||||
dataType = "observation",
|
||||
maskFile = inputDataDir+"/healpix/rast_window_512.fits",
|
||||
selFunFile = inputDataDir+"/czselfunc.all.dr72dim.dat",
|
||||
zBoundary = (0.0, 0.1),
|
||||
zRange = (0.0, 0.1),
|
||||
skyFraction = 0.19,
|
||||
minVoidRadius = 4.723,
|
||||
fakeDensity = 0.01,
|
||||
profileBinSize = "auto",
|
||||
volumeLimited = True,
|
||||
includeInHubble = True,
|
||||
partOfCombo = False,
|
||||
isCombo = True,
|
||||
comboList= ("lss.dr72dim1.dat", "lss.dr72dim2.dat"))
|
||||
newSample.addStack(0.0, 0.1, 8, 12, True, False)
|
||||
newSample.addStack(0.0, 0.1, 12, 16, True, False)
|
||||
newSample.addStack(0.0, 0.1, 16, 20, True, False)
|
||||
newSample.addStack(0.0, 0.1, 20, 28, True, False)
|
||||
dataSampleList.append(newSample)
|
||||
|
||||
|
||||
newSample = Sample(fullName = "lss.dr72bright1.dat",
|
||||
nickName = "bright1",
|
||||
dataType = "observation",
|
||||
maskFile = inputDataDir+"/healpix/rast_window_512.fits",
|
||||
selFunFile = inputDataDir+"/czselfunc.all.dr72bright1.dat",
|
||||
zBoundary = (0.0, 0.15),
|
||||
zRange = (0.1, 0.15),
|
||||
skyFraction = 0.19,
|
||||
minVoidRadius = 6.763,
|
||||
fakeDensity = 0.01,
|
||||
volumeLimited = True,
|
||||
includeInHubble = False,
|
||||
partOfCombo = True,
|
||||
isCombo = False,
|
||||
comboList= None)
|
||||
newSample.addStack(0.1, 0.2, 13, 20, False, True)
|
||||
newSample.addStack(0.1, 0.2, 20, 28, False, True)
|
||||
newSample.addStack(0.1, 0.2, 28, 36, False, True)
|
||||
newSample.addStack(0.1, 0.2, 36, 44, False, True)
|
||||
dataSampleList.append(newSample)
|
||||
|
||||
newSample = Sample(fullName = "lss.dr72bright2.dat",
|
||||
nickName = "bright2",
|
||||
dataType = "observation",
|
||||
maskFile = inputDataDir+"/healpix/rast_window_512.fits",
|
||||
selFunFile = inputDataDir+"/czselfunc.all.dr72bright2.dat",
|
||||
zBoundary = (0.0, 0.2),
|
||||
zRange = (0.15, 0.2),
|
||||
skyFraction = 0.19,
|
||||
minVoidRadius = 10.844,
|
||||
fakeDensity = 0.001,
|
||||
volumeLimited = True,
|
||||
includeInHubble = False,
|
||||
partOfCombo = True,
|
||||
isCombo = False,
|
||||
comboList= None)
|
||||
newSample.addStack(0.1, 0.2, 13, 20, False, True)
|
||||
newSample.addStack(0.1, 0.2, 20, 28, False, True)
|
||||
newSample.addStack(0.1, 0.2, 28, 36, False, True)
|
||||
newSample.addStack(0.1, 0.2, 36, 44, False, True)
|
||||
dataSampleList.append(newSample)
|
||||
|
||||
newSample = Sample(fullName = "lss.dr72bright1+bright2.dat",
|
||||
nickName = "bright1+bright2",
|
||||
dataType = "observation",
|
||||
maskFile = inputDataDir+"/healpix/rast_window_512.fits",
|
||||
zBoundary = (0.0, 0.2),
|
||||
zRange = (0.1, 0.2),
|
||||
skyFraction = 0.19,
|
||||
# leave this at -1 for mean particle separation, or
|
||||
# specify your own in Mpc/h
|
||||
minVoidRadius = -1,
|
||||
fakeDensity = -1,
|
||||
profileBinSize = "auto",
|
||||
volumeLimited = True,
|
||||
includeInHubble = True,
|
||||
partOfCombo = False,
|
||||
isCombo = True,
|
||||
comboList= ("lss.dr72bright1.dat", "lss.dr72bright2.dat"))
|
||||
newSample.addStack(0.1, 0.2, 13, 20, True, False)
|
||||
newSample.addStack(0.1, 0.2, 20, 28, True, False)
|
||||
newSample.addStack(0.1, 0.2, 28, 36, True, False)
|
||||
newSample.addStack(0.1, 0.2, 36, 44, True, False)
|
||||
|
||||
# density of mock particles in cubic Mpc/h
|
||||
fakeDensity = 0.01,
|
||||
|
||||
)
|
||||
dataSampleList.append(newSample)
|
||||
|
||||
newSample = Sample(fullName = "lss.dr72lrgdim.dat",
|
||||
nickName = "lrgdim",
|
||||
dataType = "observation",
|
||||
maskFile = inputDataDir+"/healpix/rast_window_512.fits",
|
||||
selFunFile = inputDataDir+"/czselfunc.all.dr72lrgdim.dat",
|
||||
zBoundary = (0.16, 0.36),
|
||||
zRange = (0.16, 0.36),
|
||||
skyFraction = 0.19,
|
||||
minVoidRadius = 24,
|
||||
fakeDensity = 0.001,
|
||||
profileBinSize = 2, # KEEP
|
||||
volumeLimited = True,
|
||||
includeInHubble = True,
|
||||
partOfCombo = False,
|
||||
isCombo = False,
|
||||
comboList= None)
|
||||
newSample.addStack(0.16, 0.36, 54, 70, True, False, zMinPlot=0.2)
|
||||
newSample.addStack(0.16, 0.36, 70, 106, True, False, zMinPlot=0.2)
|
||||
dataSampleList.append(newSample)
|
||||
|
||||
newSample = Sample(fullName = "lss.dr72lrgbright.dat",
|
||||
nickName = "lrgbright",
|
||||
dataType = "observation",
|
||||
maskFile = inputDataDir+"/healpix/rast_window_512.fits",
|
||||
selFunFile = inputDataDir+"/czselfunc.all.dr72lrgbright.dat",
|
||||
zBoundary = (0.36, 0.44),
|
||||
zRange = (0.36, 0.44),
|
||||
skyFraction = 0.19,
|
||||
minVoidRadius = 38,
|
||||
fakeDensity = 0.001,
|
||||
profileBinSize = "auto",
|
||||
volumeLimited = True,
|
||||
includeInHubble = False,
|
||||
partOfCombo = False,
|
||||
isCombo = False,
|
||||
comboList= None)
|
||||
newSample.addStack(0.36, 0.44, 76, 92, False, False)
|
||||
newSample.addStack(0.36, 0.44, 92, 108, False, False)
|
||||
dataSampleList.append(newSample)
|
||||
|
||||
|
||||
# repeat the above block for any other samples
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue