Skip to content

Commit

Permalink
Merge pull request #166 from desihub/lss_eda
Browse files Browse the repository at this point in the history
Lss EDR datamodel release
  • Loading branch information
weaverba137 committed May 23, 2023
2 parents 1616e3e + 9a2f49e commit 832e348
Show file tree
Hide file tree
Showing 40 changed files with 1,920 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
========================================
Clustering LSS catalogs for data
========================================

:Summary: For each target type, LSS catalogs for the data, ready to be used for clustering measurements, are provided.
:Naming Convention: ``{TARGET}_{PHOTSYS}_clustering.dat.fits``, where ``{TARGET}`` is the target: ``QSO``, ``ELG``, ``ELGnotqso``, ``ELG_HIP``, ``ELG_HIPnotqso``, ``LRG``, ``LRG_main``,
for dark or ``BGS_ANY``, ``BGS_BRIGHT`` for bright. ``{PHOTSYS}`` is the photometric region ``N`` or ``S``.
:Regex: ``[a-zA-Z_]+_[NS]_clustering.dat.fits``
:File Type: FITS, 8 MB


Contents
========

====== ======= ======== ===================
Number EXTNAME Type Contents
====== ======= ======== ===================
HDU0_ IMAGE Empty
HDU1_ LSS BINTABLE Catalog data
====== ======= ======== ===================


FITS Header Units
=================

HDU0
----

This HDU has no non-standard required keywords.

Empty HDU.

HDU1
----

EXTNAME = LSS

*LSS catalogs for clustering measurements*

Required Header Keywords
~~~~~~~~~~~~~~~~~~~~~~~~

.. collapse:: Required Header Keywords Table

.. rst-class:: keywords

====== ============= ==== =======================
KEY Example Value Type Comment
====== ============= ==== =======================
NAXIS1 123 int width of table in bytes
NAXIS2 71051 int number of rows in table
DESIDR edr str DESI Data Release
====== ============= ==== =======================

Required Data Table Columns
~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. rst-class:: columns

================== ======== ========== =====================================================================================================================================
Name Type Units Description
================== ======== ========== =====================================================================================================================================
RA float64 deg Target Right Ascension
DEC float64 deg Target declination
TARGETID int64 Unique DESI target ID
NTILE int64 Number of tiles target was available on
TILES char[*] TILEIDs of those tile, in string form separated by '-'
Z float64 Redshift measured by Redrock
COMP_TILE float64 Assignment completeness for all targets of this type with the same value for TILES
ROSETTE_NUMBER int32 Rosette number ID [0-19]
ROSETTE_R float64 deg Radius from the center of the rosette to the target
FRACZ_TILELOCID float64 The fraction of targets of this type at this TILELOCID that received an observation (after forcing each target to a unique TILELOCID)
BITWEIGHTS int64[2] A size of two 64 bit masks that encodes which of the alternative assignment histories that the target was assigned in
PROB_OBS float64 The number alternative assignment histories that the target was assigned in divided by 128
WEIGHT_ZFAIL float64 Should be all 1 at this point for main survey
WEIGHT float64 The combination of all weights to use
FLUX_G_DERED [1]_ float32 nanomaggy Flux in the g-band after correcting for Galactic extinction (AB system)
FLUX_R_DERED [1]_ float32 nanomaggy Flux in the r-band after correcting for Galactic extinction (AB system)
FLUX_Z_DERED [1]_ float32 nanomaggy Flux in the z-band after correcting for Galactic extinction (AB system)
FLUX_W1_DERED [1]_ float32 nanomaggy Flux in the WISE W1-band after correcting for Galactic extinction (AB system)
FLUX_W2_DERED [1]_ float32 nanomaggy Flux in the WISE W2-band after correcting for Galactic extinction (AB system)
REST_GMR_0P1 [1]_ float64 Rest-frame g-r colour at redshift=0.1
KCORR_R0P1 [1]_ float64 r-band k-correction at redshift=0.1
KCORR_G0P1 [1]_ float64 g-band k-correction at redshift=0.1
KCORR_R0P0 [1]_ float64 r-band k-correction at redshift=0.0
KCORR_G0P0 [1]_ float64 g-band k-correction at redshift=0.0
REST_GMR_0P0 [1]_ float64 Rest-frame g-r colour at redshift=0.0
EQ_ALL_0P0 [1]_ float64 e-correction at redshift=0.0
EQ_ALL_0P1 [1]_ float64 e-correction at redshift=0.1
ABSMAG_R [1]_ float64 Absolute magnitude in the r-band after k-correction
NZ float64 h^3 Mpc^-3 The comoving number density of the tracer at the given redshift, assuming complete sample
WEIGHT_FKP float64 1/(1+NZ*P0), with P0 different for each tracer
================== ======== ========== =====================================================================================================================================

.. [1] Only present in BGS samples
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
==================================================
Clustering LSS catalogs for randoms
==================================================

:Summary: For each target type, LSS catalogs for the randoms, ready to be used for clustering measurements, are provided.
:Naming Convention: ``{TARGET}_{PHOTSYS}_{RANN}_clustering.ran.fits``, where ``{TARGET}`` is the target type: ``QSO``, ``ELG``, ``ELGnotqso``, ``ELG_HIP``, ``ELG_HIPnotqso``, ``LRG``, ``LRG_main``,
for dark or ``BGS_ANY``, ``BGS_BRIGHT`` for bright. ``{PHOTSYS}`` is the photometric region ``N`` or ``S`` and ``{RANN}`` is the number for the random file (18 total, numbered 0 through 17). Each are random with respect to each other.
:Regex: ``[a-zA-Z_]+\_[NS]_[0-9]+\_clustering.ran.fits``
:File Type: FITS, 193 MB

Contents
========

====== ======= ======== ===================
Number EXTNAME Type Contents
====== ======= ======== ===================
HDU0_ IMAGE Empty
HDU1_ LSS BINTABLE Catalog data
====== ======= ======== ===================


FITS Header Units
=================

HDU0
----

This HDU has no non-standard required keywords.

Empty HDU.

HDU1
----

EXTNAME = LSS

*Random catalog for clustering statistics*

Required Header Keywords
~~~~~~~~~~~~~~~~~~~~~~~~

.. collapse:: Required Header Keywords Table

.. rst-class:: keywords

====== ============= ==== =======================
KEY Example Value Type Comment
====== ============= ==== =======================
NAXIS1 115 int width of table in bytes
NAXIS2 1763774 int number of rows in table
DESIDR edr str DESI Data Release
====== ============= ==== =======================

Required Data Table Columns
~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. rst-class:: columns

================== ======== ========== =====================================================================================================================================
Name Type Units Description
================== ======== ========== =====================================================================================================================================
RA float64 deg Target Right Ascension
DEC float64 deg Target declination
TARGETID int64 Unique DESI target ID
NTILE int64 Number of tiles target was available on
TILES char[*] TILEIDs of those tile, in string form separated by '-'
Z float64 Redshift measured by Redrock
COMP_TILE float64 Assignment completeness for all targets of this type with the same value for TILES
ROSETTE_NUMBER int32 Rosette number ID [0-19]
ROSETTE_R float64 deg Radius from the center of the rosette to the target
WEIGHT float64 The combination of all weights to use
FLUX_G_DERED [1]_ float32 nanomaggy Flux in the g-band after correcting for Galactic extinction (AB system)
FLUX_R_DERED [1]_ float32 nanomaggy Flux in the r-band after correcting for Galactic extinction (AB system)
FLUX_Z_DERED [1]_ float32 nanomaggy Flux in the z-band after correcting for Galactic extinction (AB system)
FLUX_W1_DERED [1]_ float32 nanomaggy Flux in the WISE W1-band after correcting for Galactic extinction (AB system)
FLUX_W2_DERED [1]_ float32 nanomaggy Flux in the WISE W2-band after correcting for Galactic extinction (AB system)
REST_GMR_0P1 [1]_ float64 Rest-frame g-r colour at redshift=0.1
KCORR_R0P1 [1]_ float64 r-band k-correction at redshift=0.1
KCORR_G0P1 [1]_ float64 g-band k-correction at redshift=0.1
KCORR_R0P0 [1]_ float64 r-band k-correction at redshift=0.0
KCORR_G0P0 [1]_ float64 g-band k-correction at redshift=0.0
REST_GMR_0P0 [1]_ float64 Rest-frame g-r colour at redshift=0.0
EQ_ALL_0P0 [1]_ float64 e-correction at redshift=0.0
EQ_ALL_0P1 [1]_ float64 e-correction at redshift=0.1
ABSMAG_R [1]_ float64 Absolute magnitude in the r-band after k-correction
NZ float64 h^3 Mpc^-3 The comoving number density of the tracer at the given redshift, assuming complete sample
WEIGHT_FKP float64 1/(1+NZ*P0), with P0 different for each tracer
================== ======== ========== =====================================================================================================================================

.. [1] Only present in BGS samples
24 changes: 24 additions & 0 deletions doc/DESI_ROOT/vac/RELEASE/lss/VERSION/LSScats/clustering/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.. _clustering:

==========
clustering
==========

``clustering`` contains LSS catalogs, separated by target types (:ref:`see here for references<lsscats>`), that have been prepared to be used directly to obtain clustering statistics. It includes both data for randoms (separated into 18 files given ``{RANN}``).

Descriptions on how to use these to obtain clustering measurements are fully given in `EDR. DESI Collaboration (in prep.)`_ and in `Lasker et al (in prep.)`_. Any cuts applied to the data catalogs should be equally applied to the random catalogs.

Any number of the random catalogs, ``{RANN}`` can be used (with the impact only on statistical precision). Large-scale clustering measurements can be accurately obtained via the columns :py:attr:`RA`, :py:attr:`DEC`, :py:attr:`Z`, :py:attr:`WEIGHT`.

For small-scales, pairwise inverse-probability (PIP) weights can be obtained via the BITWEIGHTS column and we further recommend angular up-weighting (as in `Mohammad et al. (2020)`_). If using PIP weights, the :py:attr:`WEIGHT` column should still be used for the random counts (but not used for the data counts).

.. _EDR. DESI Collaboration (in prep.): https://ui.adsabs.harvard.edu/public-libraries/XCj7bW-vSMaNZVV0C0QyGA
.. _Lasker et al (in prep.): https://ui.adsabs.harvard.edu/public-libraries/XCj7bW-vSMaNZVV0C0QyGA
.. _Mohammad et al. (2020): https://academic.oup.com/mnras/article/498/1/128/5891251

.. toctree::
:maxdepth: 1

TARGET_PHOTSYS_RANN_clustering.ran.fits : Use for clustering measurements (randoms) <clustering_ran>
TARGET_PHOTSYS_clustering.dat.fits : Use for clustering measurements (data) <clustering_dat>

0 comments on commit 832e348

Please sign in to comment.