Photometry

class starkit.base.operations.imager.Photometry(filter_set, mag_type='vega', grid_wavelength=None)[source]

Bases: ImagerInstrumentOperation

Magnitudes of a spectrum in a set of filters.

The flux is taken to be f_lambda in erg/(s cm2 Angstrom) at the observer.

Parameters:
filter_setstr, starkit.filters.Filter, or a list of them

filters; strings are SVO filter IDs (see starkit.filters.as_filters)

mag_typestr

‘vega’ (the default) or ‘ab’

grid_wavelengthastropy.units.Quantity or array, optional

wavelengths of every spectrum the operation will receive, such as those of a grid; the filter curves are then interpolated onto them once instead of at every evaluation. Numbers are taken as Angstrom.

Attributes Summary

inputs

outputs

Methods Summary

evaluate(wavelength, flux)

Evaluate the model on some input variables.

filter_responses(wavelength)

Energy-weighted response of each filter on the given wavelengths, as an array of shape (number of filters, number of wavelengths).

from_grid(grid, **kwargs)

magnitudes(wavelength, flux, response)

Attributes Documentation

inputs = ('wavelength', 'flux')
outputs = ('photometry',)

Methods Documentation

evaluate(wavelength, flux)[source]

Evaluate the model on some input variables.

filter_responses(wavelength)[source]

Energy-weighted response of each filter on the given wavelengths, as an array of shape (number of filters, number of wavelengths).

classmethod from_grid(grid, **kwargs)[source]
magnitudes(wavelength, flux, response)[source]