<p>The electromagnetic spectrum is a continuous distribution of frequencies/wavelengths. <a href="https://en.wikipedia.org/wiki/Photometry_(optics)" rel="nofollow noreferrer">Photometry</a> is the science of light as perceived by the human eye, so it is very relevant for observing astronomical objects with telescopes, etc... In astrophotometry, one cuts the electromagnetic spectrum into bins, called &quot;<a href="https://en.wikipedia.org/wiki/Photometry_(astronomy)#Magnitudes_and_colour_indices" rel="nofollow noreferrer">magnitudes</a>.&quot; The specific ranges of frequency/wavelength covered by each bin, i.e. by each magnitude, depends on the specific instrument being considered, so it can be confusing trying to compare between different instruments. There do exist some known transformations between certain sets of magnitudes that can be found online. Some photometric frameworks work better than others for certain astrophysical settings.</p>
<p>In (modern) photometric devices, some kind of light harvesting device is utilized to capture the incident light (for example, a <a href="https://www.astro.princeton.edu/PBOOK/camera/camera.htm" rel="nofollow noreferrer">CCD</a> system absorbs the light and converts the energy to a digital signal, but that's a great oversimplification of the amazing physics involved).</p>
<blockquote>
<p>Redshift measurements from photometric data can be determined using template-fitting (Cosmos website, SDSS photo-z).</p>
</blockquote>
<p>The templates are basically just a model for how the spectra of a given astromonical object is expected to look from known spectroscopic measurements of such a type of object. The templates are used to try to deduce information about the object as a function of the observed magnitudes.</p>
<blockquote>
<p>What does it mean to fit a template to determine redshift? What is the template of?</p>
</blockquote>
<p>The templates are generally composed from spectroscopic data, so that the deductions made from the templates can be reasonably reliable (see below for more details). Complicated code pipelines are developed for handling such calculations.</p>
<p>From the <a href="https://www.sdss.org/dr13/algorithms/photo-z/" rel="nofollow noreferrer">SDSS website</a> about template fitting of photo-z measurements, just as an example: &quot;After the photometric redshift of each galaxy is determined, template fitting is used to estimate the galaxy’s k-correction, distance modulus, absolute magnitudes, rest frame colors, and spectral type.&quot;</p>
<p>So, as state above, they make the photometric measurements, and then have to have a model (using the template) to deduce source parameters. They specifically use the empirically derived spectral templates of <a href="https://ui.adsabs.harvard.edu/abs/2012MNRAS.420.1217D/abstract" rel="nofollow noreferrer">Dobos <span class="math-container">$et~al.$</span></a>, wherein section 1.3 they state:</p>
<blockquote>
<p>One of the keys to the success of template-based photometric red-
shift estimators is the good set of spectral templates used to fit the
broad-band spectral energy distributions of observed galaxies. Spec-
tral templates from models are often used, but they can miss some
important features of real spectra. Also, models have to be highly
consistent with the observations in terms of integrated colours. As
an alternative to models, individual empirical spectra are used, but
it is not easy to get a high S/N set of spectra that represents all types
of galaxies. Our composites can provide a high S/N, reliable and
representative template set for photo-z applications</p>
</blockquote>
<p>An alternative method to template fitting is using machine learning algorithms to learn the relationship between the photometric magnitudes (which are observed/measured) and the photometric redshift estimate: you train the ML algorithm on a set of photometric magnitudes as &quot;inputs&quot; with a corresponding set of known spectroscopic &quot;outputs&quot; so it learns the relationship (which is highly nonlinear, multivariate, and nontrivial) between the photometric magnitudes and the spectroscopic redshift. Then you give the trained ML algorithm a new dataset of photometric measurements to output a photometric redshift estimate. The competitiveness of such ML algorithms has greatly improved over recent decades, and now many groups use some kind of mixture of template fitting and ML approaches.</p>
<p>Either approach, the template catalogues or the ML algorithms, involve using known spectroscopic spectra or redshifts to deduce photometric information from photometric magnitudes.</p>

CC BY-SA 4.0
2021-07-21T15:07:50.807Z
2021-07-21T16:25:00.400Z
2021-07-21T16:25:00.400Z
Daddy Kropotkin
<p>Redshift measurements from photometric data can be determined using template-fitting (<a href="https://cosmos.astro.caltech.edu/page/photoz" rel="nofollow noreferrer">Cosmos website</a>, <a href="https://www.sdss.org/dr13/algorithms/photo-z/" rel="nofollow noreferrer">SDSS photo-z</a>).</p>
<p>What does it mean to fit a template to determine redshift? What is the template of?</p>

<distances><redshift><photometry>
Photometry templates -- what are the templates of?
Jim421616
# Photometry templates -- what are the templates of?

(Asked by: username_0 on 2021-07-20)

Redshift measurements from photometric data can be determined using template-fitting ([Cosmos website](https://cosmos.astro.caltech.edu/page/photoz), [SDSS photo-z](https://www.sdss.org/dr13/algorithms/photo-z/)).

What does it mean to fit a template to determine redshift? What is the template of?

**Tags:** distances, redshift, photometry


---

## 1 answers

### Answer by username_1 on 2021-07-21. Score: 1 | Accepted answer

The electromagnetic spectrum is a continuous distribution of frequencies/wavelengths. [Photometry](https://en.wikipedia.org/wiki/Photometry_(optics)) is the science of light as perceived by the human eye, so it is very relevant for observing astronomical objects with telescopes, etc... In astrophotometry, one cuts the electromagnetic spectrum into bins, called "[magnitudes](https://en.wikipedia.org/wiki/Photometry_(astronomy)#Magnitudes_and_colour_indices)." The specific ranges of frequency/wavelength covered by each bin, i.e. by each magnitude, depends on the specific instrument being considered, so it can be confusing trying to compare between different instruments. There do exist some known transformations between certain sets of magnitudes that can be found online. Some photometric frameworks work better than others for certain astrophysical settings.

In (modern) photometric devices, some kind of light harvesting device is utilized to capture the incident light (for example, a [CCD](https://www.astro.princeton.edu/PBOOK/camera/camera.htm) system absorbs the light and converts the energy to a digital signal, but that's a great oversimplification of the amazing physics involved).

> Redshift measurements from photometric data can be determined using template-fitting (Cosmos website, SDSS photo-z).

The templates are basically just a model for how the spectra of a given astromonical object is expected to look from known spectroscopic measurements of such a type of object. The templates are used to try to deduce information about the object as a function of the observed magnitudes.

> What does it mean to fit a template to determine redshift? What is the template of?

The templates are generally composed from spectroscopic data, so that the deductions made from the templates can be reasonably reliable (see below for more details). Complicated code pipelines are developed for handling such calculations.

From the [SDSS website](https://www.sdss.org/dr13/algorithms/photo-z/) about template fitting of photo-z measurements, just as an example: "After the photometric redshift of each galaxy is determined, template fitting is used to estimate the galaxy’s k-correction, distance modulus, absolute magnitudes, rest frame colors, and spectral type."

So, as state above, they make the photometric measurements, and then have to have a model (using the template) to deduce source parameters. They specifically use the empirically derived spectral templates of [Dobos $et~al.$](https://ui.adsabs.harvard.edu/abs/2012MNRAS.420.1217D/abstract), wherein section 1.3 they state:

> One of the keys to the success of template-based photometric red-
> shift estimators is the good set of spectral templates used to fit the
> broad-band spectral energy distributions of observed galaxies. Spec-
> tral templates from models are often used, but they can miss some
> important features of real spectra. Also, models have to be highly
> consistent with the observations in terms of integrated colours. As
> an alternative to models, individual empirical spectra are used, but
> it is not easy to get a high S/N set of spectra that represents all types
> of galaxies. Our composites can provide a high S/N, reliable and
> representative template set for photo-z applications

An alternative method to template fitting is using machine learning algorithms to learn the relationship between the photometric magnitudes (which are observed/measured) and the photometric redshift estimate: you train the ML algorithm on a set of photometric magnitudes as "inputs" with a corresponding set of known spectroscopic "outputs" so it learns the relationship (which is highly nonlinear, multivariate, and nontrivial) between the photometric magnitudes and the spectroscopic redshift. Then you give the trained ML algorithm a new dataset of photometric measurements to output a photometric redshift estimate. The competitiveness of such ML algorithms has greatly improved over recent decades, and now many groups use some kind of mixture of template fitting and ML approaches.

Either approach, the template catalogues or the ML algorithms, involve using known spectroscopic spectra or redshifts to deduce photometric information from photometric magnitudes.


---

