Quick Start example


As an example, a catalog is available in $LEPHAREDIR/test/

This catalog (hdfn lanzetta.in) is the HDF-North from Fernandez-Soto et al.

(1999, ApJ 513) and includes the flux and errors for 1067 sources with HST photometry and NIR.

The default configuration file (in $LEPHAREDIR/config/zphot.para) is ready to be used for this example.

Below are all the steps up to the output photo-z catalog:


1.  go to test directory
     % cd $LEPHAREDIR/test

2.  create the star library :

     % $LEPHAREDIR/source/sedtolib -t S -c ../config/zphot.para

3.  create the QSO library :
     % $LEPHAREDIR/source/sedtolib -t Q -c ../config/zphot.para

  1. 4. create the galaxy library :

     % $LEPHAREDIR/source/sedtolib -t G -c ../config/zphot.para

     check the GALAXY models used with :

     % more $LEPHAREWORK/lib bin/LIB CWW.doc


5.  create the filter set :
  % $LEPHAREDIR/source/filter -c ../config/zphot.para

6.  compute star magnitudes :

  % $LEPHAREDIR/source/mag star -c ../config/zphot.para

7.  compute QSO magnitudes and do not allow extinction for these SEDs (-EB_V=0):

    % $LEPHAREDIR/source/mag gal -t Q -c ../config/zphot.para -EB V 0.

  1. 8. compute galaxy magnitudes and apply extinction for models between 4

      to 8 with E(B-V) values read from the configuration file. Create an

      ASCII file (CWW HDF.dat) to check the color tracks with redshift :

    % $LEPHAREDIR/source/mag gal -t G -c ../config/zphot.para
         -MOD EXTINC 4,8 -LIB ASCII YES

9.  run the photo-z code on the input catalog. :

     % $LEPHAREDIR/source/zphota -c ../config/zphot.para

     It creates the output file zphot.out with the output parameters selected

     in ../config/zphot output.para