lephare.filter_extinc
Classes
The specific arguments to the Filter class are |
Functions
|
Calculate the extinction values for a set of filters |
Module Contents
- class FiltExt(config_file=None, config_keymap=None, **kwargs)[source]
Bases:
lephare.runner.RunnerThe specific arguments to the Filter class are
- verbose
increase onscreen verbosity
- FILTER_FILE
Path to filter file on which to compute extinction, output of the filter execution, to be found in $LEPHAREWORK/filt
- EXT_CURVE
Extinction law to use, to be searched in $LEPHAREDIR/ext if relative
- GAL_CURVE
Extinction curve in the galaxy, to be searched in $LEPHAREDIR/ext if relative
- OUTPUT
Output file name
- calculate_extinction_values(filters, atmec, galec, verbose=False)[source]
Calculate the extinction values for a set of filters
- Parameters:
filters (str) – The file containing the lephare compiled filter list
atmec (str) – Extinction law to use, to be searched in $LEPHAREDIR/ext if relative
galec (str) – Extinction curve in the galaxy, to be searched in $LEPHAREDIR/ext if relative
verbose (bool) – Increase onscreen verbosity
- Returns:
all_filters (list of lephare.GalMag) – The list of filter objects
aint (np.array) – Atmospheric extinction in each filter (mag/airmass)
albdav (np.array) – Galactic extinction in each filter A(lbd)/Av
albd (np.array) – Galactic extinction in each filter A(lbd)/E(B-V)