Selection

These stages deal with selection objects and assigning them to tomographic bins.

  • TXSourceSelectorBase - Base stage for source selection using S/N, size, and flag cuts and tomography

  • TXSourceSelectorMetacal - Source selection and tomography for metacal catalogs

  • TXSourceSelectorMetadetect - Source selection and tomography for metadetect catalogs

  • TXSourceSelectorLensfit - Source selection and tomography for lensfit catalogs

  • TXSourceSelectorSimple - Source selection and tomography for mock catalogs that do not

  • TXSourceSelectorHSC - Source selection and tomography for HSC catalogs

  • TXBaseLensSelector - Base class for lens object selection, using the BOSS Target Selection.

  • TXTruthLensSelector - Select lens objects based on true redshifts and BOSS criteria

  • TXMeanLensSelector - Select lens objects based on mean redshifts and BOSS criteria

  • TXModeLensSelector - Select lens objects based on best-fit redshifts and BOSS criteria

  • TXRandomForestLensSelector - Stage TXRandomForestLensSelector

class txpipe.lens_selector.TXBaseLensSelector(args, comm=None, aliases=None)[source]

Base class for lens object selection, using the BOSS Target Selection.

Subclasses of this pipeline stage select objects to be used as the lens sample for the galaxy clustering and shear-position calibrations.

The cut used here is simplistic and should be replaced.

Inputs: None

Outputs:

  • lens_tomography_catalog_unweighted: TomographyCatalog

Parallel: Yes - MPI

Configuration
  • verbose: (bool) Default=False.
  • chunk_rows: (int) Default=10000.
  • lens_zbin_edges: (list) Default=[].
  • cperp_cut: (float) Default=0.2.
  • r_cpar_cut: (float) Default=13.5.
  • r_lo_cut: (float) Default=16.0.
  • r_hi_cut: (float) Default=19.6.
  • i_lo_cut: (float) Default=17.5.
  • i_hi_cut: (float) Default=19.9.
  • r_i_cut: (float) Default=2.0.
  • random_seed: (int) Default=42.
  • selection_type: (str) Default=boss.
  • maglim_band: (str) Default=i.
  • maglim_limit: (float) Default=24.1.
  • extra_cols: (list) Default=[''].
class txpipe.lens_selector.TXTruthLensSelector(args, comm=None, aliases=None)[source]

Select lens objects based on true redshifts and BOSS criteria

This is useful for testing with idealised lens bins.

Inputs:

  • photometry_catalog: PhotometryCatalog

Outputs:

  • lens_tomography_catalog_unweighted: TomographyCatalog

Parallel: Yes - MPI

Configuration
  • verbose: (bool) Default=False.
  • chunk_rows: (int) Default=10000.
  • lens_zbin_edges: (list) Default=[].
  • cperp_cut: (float) Default=0.2.
  • r_cpar_cut: (float) Default=13.5.
  • r_lo_cut: (float) Default=16.0.
  • r_hi_cut: (float) Default=19.6.
  • i_lo_cut: (float) Default=17.5.
  • i_hi_cut: (float) Default=19.9.
  • r_i_cut: (float) Default=2.0.
  • random_seed: (int) Default=42.
  • selection_type: (str) Default=boss.
  • maglim_band: (str) Default=i.
  • maglim_limit: (float) Default=24.1.
  • extra_cols: (list) Default=[''].
class txpipe.lens_selector.TXMeanLensSelector(args, comm=None, aliases=None)[source]

Select lens objects based on mean redshifts and BOSS criteria

This requires PDFs to have been estimated earlier.

Inputs:

  • photometry_catalog: PhotometryCatalog

  • lens_photoz_pdfs: HDFFile

Outputs:

  • lens_tomography_catalog_unweighted: TomographyCatalog

Parallel: Yes - MPI

Configuration
  • verbose: (bool) Default=False.
  • chunk_rows: (int) Default=10000.
  • lens_zbin_edges: (list) Default=[].
  • cperp_cut: (float) Default=0.2.
  • r_cpar_cut: (float) Default=13.5.
  • r_lo_cut: (float) Default=16.0.
  • r_hi_cut: (float) Default=19.6.
  • i_lo_cut: (float) Default=17.5.
  • i_hi_cut: (float) Default=19.9.
  • r_i_cut: (float) Default=2.0.
  • random_seed: (int) Default=42.
  • selection_type: (str) Default=boss.
  • maglim_band: (str) Default=i.
  • maglim_limit: (float) Default=24.1.
  • extra_cols: (list) Default=[''].
class txpipe.lens_selector.TXModeLensSelector(args, comm=None, aliases=None)[source]

Select lens objects based on best-fit redshifts and BOSS criteria

This requires PDFs to have been estimated earlier.

Inputs:

  • photometry_catalog: PhotometryCatalog

  • lens_photoz_pdfs: HDFFile

Outputs:

  • lens_tomography_catalog_unweighted: TomographyCatalog

Parallel: Yes - MPI

Configuration
  • verbose: (bool) Default=False.
  • chunk_rows: (int) Default=10000.
  • lens_zbin_edges: (list) Default=[].
  • cperp_cut: (float) Default=0.2.
  • r_cpar_cut: (float) Default=13.5.
  • r_lo_cut: (float) Default=16.0.
  • r_hi_cut: (float) Default=19.6.
  • i_lo_cut: (float) Default=17.5.
  • i_hi_cut: (float) Default=19.9.
  • r_i_cut: (float) Default=2.0.
  • random_seed: (int) Default=42.
  • selection_type: (str) Default=boss.
  • maglim_band: (str) Default=i.
  • maglim_limit: (float) Default=24.1.
  • extra_cols: (list) Default=[''].
class txpipe.lens_selector.TXRandomForestLensSelector(args, comm=None, aliases=None)[source]

Stage TXRandomForestLensSelector

Inputs:

  • photometry_catalog: PhotometryCatalog

  • calibration_table: TextFile

Outputs:

  • lens_tomography_catalog_unweighted: TomographyCatalog

Parallel: Yes - MPI

Configuration
  • verbose: (bool) Default=False.
  • chunk_rows: (int) Default=10000.
  • lens_zbin_edges: (list) Default=[].
  • cperp_cut: (float) Default=0.2.
  • r_cpar_cut: (float) Default=13.5.
  • r_lo_cut: (float) Default=16.0.
  • r_hi_cut: (float) Default=19.6.
  • i_lo_cut: (float) Default=17.5.
  • i_hi_cut: (float) Default=19.9.
  • r_i_cut: (float) Default=2.0.
  • random_seed: (int) Default=42.
  • selection_type: (str) Default=boss.
  • maglim_band: (str) Default=i.
  • maglim_limit: (float) Default=24.1.
  • extra_cols: (list) Default=[''].
  • bands: (str) Default=ugrizy.