Skip to content

Sparse Representation of Photometric Redshift PDFs

License

Notifications You must be signed in to change notification settings

lcdm-uiuc/SparsePz

 
 

Repository files navigation

##SparsePz

###Sparse Representation of Photometric Redshift PDFs

This package will soon implemented as part as the MLZ package repository. This is the standalone version. The full documentation of MLZ is located here

For more information and a implementation of this technique, check this paper

Requirements:

  • scipy
  • matplotlib
  • numpy
  • pyfits (to store output file) >= 3.3
  • mpi4py (optional for parallel running)

To run:

python example_sparse.py

To check the results:

python read_sparse.py

The format of the original PDF file is given in a numpy array but can eb easily change and corresponds to a 2D array where each row is the PDF and the very last row are the redshift positions.

About

Sparse Representation of Photometric Redshift PDFs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 82.4%
  • Python 17.6%