Using V2
Quick start
A summary checklist for installing and running V2.
Clone the GitHub repository
Run:
python setup.py installSee Installation for installation options.
Navigate to
VAST/example_scripts/
and modifyDR7_config.ini
if appropriate. Fields to edit might include:
Input catalog and Survey name
Output directory
redshift and/or magnitude limits
Minimum void radius
etc.
Run
vsquared.py
from theVAST/example_scripts/
directory on your machine or using a cluster:python vsquared.py -c DR7_config.iniNote
Include the
-v
option to produce the output required for VoidRender.
The output files will be located in the directory specified by the Output directory.
[survey_name]_galviz.dat
[survey_name]_galzones.dat
[survey_name]_triangles.dat
[survey_name]_zobovoids.dat
[survey_name]_zonevoids.dat
See Output for a detailed description of each of these files.
Example configuration file
Included in the V2 repository
(VAST/example_scripts/
) are a finite selection of example configuration
files:
DR7_config.ini
contains the settings to run V2 on the SDSS DR7 main galaxy sample. A volume-limited version of this galaxy catalog is provided with the package (VAST/example_scripts/vollim_dr7_cbp_102709.fits
).
See Configuration File Options for details on the configuration file options.
Finding voids
Script
The easiest way to use V2 is to use the
vsquared.py
script, located in VAST/example_scripts/
. For usage
information, run:
python vsquared.py --help
In a Python Shell
Finding voids can also be done in a Python shell, using the
vast.vsquared.zobov.Zobov
class and its methods:
Create a
Zobov
object using the desired configuration file and additional input parameters:newZobov = Zobov("DR7_config.ini")
See Zobov.__init__ for details on the initialization method’s arguments.
Apply a void-pruning method to the voids found:
newZobov.sortVoids()
See Zobov.sortVoids for details on this method’s arguments.
Save the results to disk (these methods take no additional arguments):
newZobov.saveVoids() newZobov.saveZones() newZobov.preViz() #if intending to visualize results
Configuration File Options
Using V2 requires a configuration file with the following options:
Key |
Section |
Data type |
Unit |
Comment |
---|---|---|---|---|
|
Paths |
string |
Path to the input data catalog |
|
|
Paths |
string |
Survey identifier to use in output file names |
|
|
Paths |
string |
Path to the directory where output files will be saved |
|
|
Cosmology |
float |
(km/s)/Mpc |
Hubble constant of the desired cosmology |
|
Cosmology |
float |
Dimensionless matter density parameter of the desired cosmology |
|
|
Settings |
float |
The redshift above which void-finding will be applied |
|
|
Settings |
float |
The redshift below which void-finding will be applied |
|
|
Settings |
float |
The minimum magnitude for a galaxy to be used for void-finding |
|
|
Settings |
float |
Mpc/h |
The minimum radius for a void candidate to be considered a true void |
|
Settings |
integer |
The NSIDE parameter used in the HEALPix pixelization of the survey mask; must be a power of 2 |
|
|
Settings |
float |
The step size used to create a comoving-distance-to-redshift lookup table |
Input
As V2 is designed to identify voids in a galaxy distribution, it requires a galaxy catalog (or similar) on which to run.
This input data file is specified by the Input Catalog
field in the sample
DR7_config.ini
configuration file.
File format
Currently supported formats for the input data file include:
.fits
Data columns
Column name |
Data type |
Unit |
Comment |
---|---|---|---|
ra |
float |
degrees |
Right ascension |
dec |
float |
degrees |
Declination |
redshift |
float |
Redshift |
Column name |
Data type |
Unit |
Comment |
---|---|---|---|
rabsmag |
float |
Absolute magnitude. Only used if |
Output
Each void found by V2 is a set of Voronoi cells. The files that list the identified voids are:
[survey_name]_galzones.dat
– Identifies the zone to which each galaxy belongs.
[survey_name]_zonevoids.dat
– Identifies the void to which each zone belongs.
[survey_name]_zobovoids.dat
– Identifies the coordinates, effective radius, and ellipticity of each void.
Each of these files is described in more detail below.
Additional files that are produced during the process (which may or may not be useful to the user post-void-finding) include
[survey_name]_triangles.dat
– Identifies the vertices, normal vector, and void membership of each triangle making up a void boundary
[survey_name]_galviz.dat
– Identifies the voids to which each galaxy and its nearest neighbor belong
Column name |
Data type |
Comment |
---|---|---|
gal |
integer |
Unique galaxy identifier |
zone |
integer |
Unique identifier of the galaxy’s containing zone |
depth |
integer |
Number of adjacent voronoi cells between the galaxy’s cell and the edge of its zone |
edge |
integer |
1 if the galaxy’s voronoi cell extends outside the survey mask, 0 otherwise |
out |
integer |
1 if the galaxy is located outside the survey mask, 0 otherwise |
Column name |
Data type |
Comment |
---|---|---|
zone |
integer |
Unique zone identifier |
void0 |
integer |
Unique identifier of the zone’s smallest containing void; -1 if zone is not part of a void |
void1 |
integer |
Unique identifier of the zone’s largest containing void; -1 if zone is not part of a void |
Column name |
Data type |
Unit |
Comment |
---|---|---|---|
x |
float |
Mpc/h |
x-coordinate of the weighted center of the void |
y |
float |
Mpc/h |
y-coordinate of the weighted center of the void |
z |
float |
Mpc/h |
z-coordinate of the weighted center of the void |
redshift |
float |
redshift of the weighted center of the void |
|
ra |
float |
degrees |
right ascension of the weighted center of the void |
dec |
float |
degrees |
declination of the weighted center of the void |
radius |
float |
Mpc/h |
effective radius of the void |
x1 |
float |
normalized x-component of the void’s first ellipsoid axis |
|
y1 |
float |
normalized y-component of the void’s first ellipsoid axis |
|
z1 |
float |
normalized z-component of the void’s first ellipsoid axis |
|
x2 |
float |
normalized x-component of the void’s second ellipsoid axis |
|
y2 |
float |
normalized y-component of the void’s second ellipsoid axis |
|
z2 |
float |
normalized z-component of the void’s second ellipsoid axis |
|
x3 |
float |
normalized x-component of the void’s third ellipsoid axis |
|
y3 |
float |
normalized y-component of the void’s third ellipsoid axis |
|
z3 |
float |
normalized z-component of the void’s third ellipsoid axis |
Column name |
Data type |
Unit |
Comment |
---|---|---|---|
void_id |
integer |
Unique identifier of the triangle’s containing void |
|
n_x |
float |
normalized x-component of the triangle’s normal vector |
|
n_y |
float |
normalized y-component of the triangle’s normal vector |
|
n_z |
float |
normalized z-component of the triangle’s normal vector |
|
p1_x |
float |
Mpc/h |
x-coordinate of the triangle’s first vertex |
p1_y |
float |
Mpc/h |
y-coordinate of the triangle’s first vertex |
p1_z |
float |
Mpc/h |
z-coordinate of the triangle’s first vertex |
p2_x |
float |
Mpc/h |
x-coordinate of the triangle’s second vertex |
p2_y |
float |
Mpc/h |
y-coordinate of the triangle’s second vertex |
p2_z |
float |
Mpc/h |
z-coordinate of the triangle’s second vertex |
p3_x |
float |
Mpc/h |
x-coordinate of the triangle’s third vertex |
p3_y |
float |
Mpc/h |
y-coordinate of the triangle’s third vertex |
p3_z |
float |
Mpc/h |
z-coordinate of the triangle’s third vertex |
Column name |
Data type |
Comment |
---|---|---|
gid |
integer |
Unique galaxy identifier |
g2v |
integer |
Unique identifier of the galaxy’s containing void |
g2v2 |
integer |
Unique identifier of the containing void of the galaxy’s nearest neighbor |
Using the output
Is my object in a void?
Because voids found by V2 are formed
from zones, which are unions of objects’ voronoi cells, each object’s void
membership is easily determined from the output. The _galzones.dat
output
file (see Output) contains each object’s zone membership, and the
_zonevoids.dat
output file contains each zone’s void membership. If the
values in the void0
and void1
columns of a zone are -1
, the zone
does not belong to any void, and any objects contained within that zone are not
in a void.