Skip to content

Commit

Permalink
Added description of the fields in each catalogue
Browse files Browse the repository at this point in the history
  • Loading branch information
vcalderon2009 committed Feb 22, 2018
1 parent 63d42ef commit b3d4f70
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 90 deletions.
38 changes: 26 additions & 12 deletions docs/example_scripts/read_ECO_RESOLVE_catls.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,33 @@ def reading_catls(filename, catl_format='.hdf5'):
>>> mock_pd = reading_catls(filename, format='.hdf5')
>>> mock_pd.head()
M_h M_r cz dec galtype halo_ngal haloid \
0 11.40841 -19.2752 19890.61 1.240539 1 1 31535
1 11.69354 -19.7106 19946.01 1.418415 1 1 31537
2 12.85093 -19.4581 20004.53 0.548292 0 4 31539
3 12.85093 -19.8278 20055.74 0.502586 0 4 31539
4 12.09574 -20.3131 19610.21 1.408745 1 1 31554
x y z vx vy vz \
0 10.225435 24.778214 3.148386 356.112457 -318.894409 366.721832
1 20.945772 14.500367 -0.237940 168.731766 37.558834 447.436951
2 21.335835 14.808488 0.004653 967.204407 -701.556763 -388.055115
3 11.102760 21.782235 2.947002 611.646484 -179.032089 113.388794
4 13.217764 21.214905 2.113904 120.689598 -63.448833 400.766541
logssfr ra groupid M_group g_galtype g_ngal halo_rvir
0 -10.55625 180.318422 0 11.995713 0.0 2.0 0.101174
1 -12.01112 180.735027 1 14.148499 0.0 31.0 0.125917
2 -11.69736 179.630277 2 12.011946 0.0 2.0 0.306085
3 -12.08712 179.650267 2 12.011946 1.0 2.0 0.306085
4 -10.56714 180.094054 3 11.956849 1.0 1.0 0.171519
loghalom cs_flag haloid halo_ngal ... cz_nodist vel_tot \
0 12.170 1 196005 1 ... 2704.599189 602.490355
1 11.079 1 197110 1 ... 2552.681697 479.667489
2 11.339 1 197131 1 ... 2602.377466 1256.285409
3 11.529 1 199056 1 ... 2467.277182 647.318259
4 10.642 1 199118 1 ... 2513.381124 423.326770
vel_tan vel_pec ra_orig groupid M_group g_ngal g_galtype \
0 591.399858 -115.068833 215.025116 0 11.702527 1 1
1 453.617221 155.924074 182.144134 1 11.524787 4 0
2 1192.742240 394.485714 182.213220 1 11.524787 4 0
3 633.928896 130.977416 210.441320 2 11.502205 1 1
4 421.064495 43.706352 205.525386 3 10.899680 1 1
halo_rvir
0 0.184839
1 0.079997
2 0.097636
3 0.113011
4 0.057210
"""
## Checking if file exists
if not os.path.exists(filename):
Expand Down
170 changes: 92 additions & 78 deletions docs/mock_catalogues/mock_catalogues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ Description of the *fields* in the catalogues


Each mock catalogues contains information about the **galaxy**,
**group galaxy**, **host halo**, and more.
**group galaxy**, **host halo**, and more. We will denote
\*dark matter* as *DM*.

.. list-table:: List of Parameters
:widths: 25 60 15
Expand All @@ -139,83 +140,96 @@ Each mock catalogues contains information about the **galaxy**,
- Description
- Units
* - :code:`ra`
- Right Ascension of the galaxy
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
* - :code:``
-
-
- Right Ascension
- degrees
* - :code:`dec`
- Declination
- degrees
* - :code:`cz`
- Velocity of the galaxy (**with redshift-space distortions)
- km/s
* - :code:`M_r`
- r-band absolute magnitude of the galaxy
- magnitudes
* - :code:`haloid`
- Dark matter halo ID, as taking from the simulation
-
* - :code:`loghalom`
- logarithmic value of the DM's mass
- log(Msun/h) where h=1
* - :code:`halo_ngal`
- Total number of galaxies in DM halo. Number of galaxies in the
mock may differ from this value
-
* - :code:`cs_flag`
- Type of galaxy. **Halo central** = 1, **Halo satellite** = 0
-
* - :code:`cz_nodist`
- Velocity of the galaxy (*without* redshift-space distortions)
- km/s
* - :code:`dist_c`
- *Real* distance between halo's central galaxy and the galaxy.
- Mpc/h with h=1
* - :code:`vel_tot`
- Total velu for **peculiar** velocity
- km/s
* - :code:`vel_tan`
- Tangential component of the peculiar velocity
- km/s
* - :code:`morph`
- Galaxy's morphology. 'LT': *Late Type*; 'ET': *Early type*. Used either *goodmorph* (ECO) or *MORPH* (RESOLVE) keys. '-9999' if no matched galaxy
-
* - :code:`logmstar`
- Log value of galaxy's stellar mass. Used either '*rpgoodmstarsnew*' (ECO) or '*MSTARS*' (RESOLVE) keys in the files
- log(Msun)
* - :code:`rmag`
- r-band *apparent* magnitude. Used either 'rpsmoothrestrmagnew' (ECO) or '*SMOOTHRESTRMAG*' (RESOLVE) keys in the files.
- magnitudes
* - :code:`umag`
- u-band *apparent* magnitude. Used either 'rpsmoothrestumagnew' (ECO) or '*SMOOTHRESTUMAG*' (RESOLVE) keys in the files.
- magnitudes
* - :code:`fsmgr`
- Stellar mass produced over last Gyr divided by pre-existing stellar
mass from new model set. Used '*rpmeanssfr*' (ECO) or '*MODELFSMGR*'
(RESOLVE) keys.
- (1/Gyr)
* - :code:`survey_flag`
- Survey name, from which the properties of the **real** matched galaxy
were extracted.
-
* - :code:`u_r`
- Color of the matched galaxy, i.e. (:code:`umag` - :code:`rmag`)
- magnitudes
* - :code:`mhi`
- HI mass in galaxy. Used the *predicted* HI massed (matched to the ECO
file, i.e. :code:`eco_wresa_050815.dat`) and the key '*MHI*' (RESOLVE).
To compute MHI masses using *ECO*, we used the formula
:math:`10^(:code:`MHI` + :code:`logmstar`)`
- Msun
* - :code:`groupid`
- Group ID, to which the galaxy belongs after running *Berlind2006* FoF group finder.
-
* - :code:`g_ngal`
- Number of galaxies in a group of galaxies
-
* - :code:`halo_rvir`
- Virial radius of the DM halo, to which the galaxy belongs.
- Mpc/h with *h* = 1.
* - :code:`M_group`
- Abundance matched mass of the galaxy group. This was calculated by
assuming a monotonic relation between DM halo mass :code:`logM_halo`
and the group *total* luminosity. For RESOLVE-B, we used a modified
version of the *ECO* group luminosity function.
- Msun/h with *h* = 1
* - :code:`g_galtype`
- Type of galaxy. **Group central** = 1, **Group satellite** = 0

.. note::

The relationship between velocities (:code:`cz`'s') is the following:
:math:`(:code:`cz` - :code:`cz_nodist`)^2 + (vel_tan)^2 = (vel_tot)^2`.





Expand Down

0 comments on commit b3d4f70

Please sign in to comment.