phitter.calc.phot_adj_calc#

Module Contents#

Functions#

apply_distance_modulus

Modeled observables are calculated at a distance of 10 pc. Adds distance modulus to modeled fluxes in observables object.

apply_extinction

Modeled observables are calculated without extinction. Add extinction / reddening to modeled fluxes in observables object.

apply_mag_shift_filt

Modeled observables are calculated without any uncertainties in zeropoint. This function allows adding a shift to account for errors in zeropoint mags.

Data#

API#

phitter.calc.phot_adj_calc.red_law_funcs_ks = None#
phitter.calc.phot_adj_calc.apply_distance_modulus(bin_observables, target_dist)#

Modeled observables are calculated at a distance of 10 pc. Adds distance modulus to modeled fluxes in observables object.

bin_observablesobservables

observables object containing photometry to which to apply distance modulus.

target_distAstropy Quantity, length unit

Distance to modeled binary.

observables

observables object, where photometry has distance modulus added.

phitter.calc.phot_adj_calc.apply_extinction(bin_observables, isoc_Ks_ext, ref_filt, target_ref_filt_ext, isoc_red_law='NL18', ext_alpha=None)#

Modeled observables are calculated without extinction. Add extinction / reddening to modeled fluxes in observables object.

bin_observablesobservables

observables object containing photometry to which to apply extinction.

isoc_Ks_extfloat

Extinction, in Ks band, for the isochrone object used to generate stellar parameters.

ref_filtfilter

filter object, corresponding to the reference filter / passband from which all other extinctions are calculated.

target_ref_filt_extfloat

Extinction in the ref_filt, A_{ref_filt}, from which extinction in other filters is calculated using a power law extinction law.

ext_alphafloat or None, default=None

If specified, the power law slope for an extinction law from which the extinction at filters other than the ref_filt are calculated usin the extinction in the ref_filt (target_ref_filt_ext). If none, the extinction in other filters is just applied using the extinction implied by the isochrone object’s Ks-band extinction.

observables

observables object, where photometry has reddening from extinction.

phitter.calc.phot_adj_calc.apply_mag_shift_filt(bin_observables, filt, mag_shift)#

Modeled observables are calculated without any uncertainties in zeropoint. This function allows adding a shift to account for errors in zeropoint mags.

bin_observablesobservables

observables object containing photometry to which to apply mag shift.

filtfilter

filter object, for whose photometric observations the mag shift will be applied.

mag_shiftfloat

The shift in mags to apply to photometric observations of filt filter. Positive values indicate a fainter shift, while negative values indicate a brighter shift.

observables

observables object, where photometry has mag shift in filt added.