Ensemble Photo-z

These stages compute ensemble redshift histograms n(z) for bins

class txpipe.photoz_stack.TXPhotozSourceStack(*args: Any, **kwargs: Any)[source]

Naively stack source photo-z PDFs in bins

This parent class does only the source bins.

get_metadata()[source]

Load the z column and the number of bins

Returns:

  • z (array) – Redshift column for photo-z PDFs

  • nbin – Number of different redshift bins to split into.

run()[source]

Run the analysis for this stage.

  • Get metadata and allocate space for output

  • Set up iterators to loop through tomography and PDF input files

  • Accumulate the PDFs for each object in each bin

  • Divide by the counts to get the stacked PDF

class txpipe.photoz_stack.TXPhotozLensStack(*args: Any, **kwargs: Any)[source]

Naively stack lens photo-z PDFs in bins

This parent class does only the source bins.

get_metadata()[source]

Load the z column and the number of bins

Returns:

  • z (array) – Redshift column for photo-z PDFs

  • nbin – Number of different redshift bins to split into.

run()[source]

Run the analysis for this stage.

  • Get metadata and allocate space for output

  • Set up iterators to loop through tomography and PDF input files

  • Accumulate the PDFs for each object in each bin

  • Divide by the counts to get the stacked PDF

class txpipe.photoz_stack.TXSourceTrueNumberDensity(*args: Any, **kwargs: Any)[source]

Make an ideal true source n(z) using true redshifts

Fake an n(z) by histogramming the true redshift values for each object. Uses the same method as its parent but loads the data differently and uses the truth redshift as a delta function PDF

get_metadata()[source]

Load the z column and the number of bins

Returns:

  • z (array) – Redshift column for photo-z PDFs

  • nbin – Number of different redshift bins to split into.

class txpipe.photoz_stack.TXLensTrueNumberDensity(*args: Any, **kwargs: Any)[source]

Make an ideal true lens n(z) using true redshifts

This inherits from two parent classes, which can be confusing.

get_metadata()[source]

Load the z column and the number of bins

Returns:

  • z (array) – Redshift column for photo-z PDFs

  • nbin – Number of different redshift bins to split into.