This package provides Python interface to kcorrect C library by M. Blanton et al. and described here:
see:
for obtaining kcorrect and how to install it.
This wrapper uses kcorrect version 4.2.
This version requires Python 2.7+ and NumPy 1.7+
the usual:
python setup.py build
and (may need root privileges) :
python setup.py install
should build the package and install _kcorret.so and kcorrect/ into the standard site-packages directory.
Note: the environmental variables KCORRECT_DIR and LD_LIBRARY_PATH should be set and point to the location where the kcorrect package is installed, eg:
export KCORRECT_DIR=/usr/local/kcorrect
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$KCORRECT_DIR/lib
you can test the package by running:
python test.py
this will procude two files coeffs.dat and *reconstructed_maggies.dat".
The following functions are currently available for this version:
o
load_templates
oload_filters
ofit_coeffs_from_file
ofit_coeffs
oreconstruct_maggies
oreconstruct_maggies_from_files
ofit_photoz
ofit_photoz_from_file
osolar_magnitudes
oproject_filters
ofit_nonneg
Public Domain