<p>This can be done in a number of ways. There is a &quot;theoretical&quot; approach, where the transmission and reflection characteristics of all the components are measured in the lab and put together to get an overall, wavelength-dependent efficiency. This isn't used much apart from in system design.</p>
<p>An on-site method is to measure the spectra of <a href="https://www.eso.org/sci/observing/tools/standards/spectra.html" rel="nofollow noreferrer">spectrophotometric standard stars</a>, using a very wide slit, so that all the light is captured. These standard stars have measured fluxes as a function of wavelength that can then be used to calibrate the response of the spectrometer. A correction must also be made for atmospheric extinction, that might involve observing standards at the same elevation as the target, or at a range of elevations to actually assess the extinction. The history of how spectrophotometric standards were established is long and complicated.</p>
<p>Standard software packages take the spectrum of the standard star to obtain a response function that can be applied to other spectra. Algorithmically, the observed spectrum is rebinned into intervals that match a table of calibrated standard star fluxes in the same intervals. The standard star calibration data is divided by the rebinned spectrum, taking account of the ratio of exposure times and any estimate of relative extinction, to get the conversion in flux per binned count. Any observed spectrum can be multiplied by (an interpolated and possibly smoothed version) of this to put a flux scale on an observed spectrum. A good description is included in the help file for the old IRAF package <a href="https://astro.uni-bonn.de/%7Esysstw/lfa_html/iraf/noao.onedspec.sensfunc.html" rel="nofollow noreferrer">sensfunc</a>.</p>
<p>It is rarely the case that spectra have an accurate absolute flux calibration. Usually, stars are observed using slits or fibers to improve spectral resolution or improve wavelength calibration. In such circumstances, a variable amount of light actually enters the spectrograph, associated with turbulence in the atmosphere (not a problem for HST/JWST) and prevents accurate absolute flux calibration.</p>
<p>Sometimes all you want to do is remove the shape of the wavelength response. This can also be done by observing the spectrophotometric standard stars, even if the absolute flux level is uncertain. The absolute flux level could then be established if you have broad-band photometry of the source at a similar wavelength range (providing the source isn't variable).</p>

CC BY-SA 4.0
2022-10-31T12:39:57.867Z
I would argue that it's fairly common (not "rarely the case") to have "on-site" spectrophotometric calibration, at least if observing conditions (e.g. "clear" or ideally "photometric") permit. The point is to observe the spectrophotometric standard star with the same instrument and observing setup (e.g., slit width, air mass, etc.) as used for the target observation. This is routinely done as part of the standard calibrations for modern spectrographs on large telescopes.
Peter Erwin
CC BY-SA 4.0
2022-10-31T12:43:00.543Z
@PeterErwin Absolute flux calibration is rarely attempted because seeing is variable and if it is attempted then nobody would believe it even at the 10% level unless observing with a slit much larger than the seeing. It is also impossibe to do properly for fiber spectroscopy, which comprises of at least half the observing time on spectrographs and the vast majority of spectra taken.
ProfRob
CC BY-SA 4.0
2022-10-31T12:45:47.580Z
@PeterErwin a more common procedure if you need fluxed spectra but also need to observe through a slit or fiber is to correct for the wavelength response - as I described - and then use the known photometry of the star to put that onto an absolute flux scale (providing the object is not photometrically variable).
ProfRob
CC BY-SA 4.0
2022-10-31T12:48:16.067Z
@PeterErwin but that still doesn;t work very well for fibers which have differing charcteristics ldepending on how they are bent and are badly affected by atmospheric dispersion.
ProfRob
CC BY-SA 4.0
2022-10-31T12:52:42.513Z
If you want *really* accurate absolute calibration, sure. But that doesn't stop, e.g., SDSS from producing spectrophotometrically calibrated spectra from their fiber-based observations, even if they have to warn you about the uncertainties.
Peter Erwin
CC BY-SA 4.0
2022-10-31T12:54:48.863Z
And every time I retrieve a Phase 3 reduced IFU datacube for VLT-MUSE, it's been spectrophotometrically calibrated by standard star observations. Again, it may not be terribly accurate, but it's a standard part of ESO's calibration plan.
Peter Erwin
CC BY-SA 4.0
2022-11-01T00:39:47.630Z
Thank you very much! I think that this -almost- answers the topic question. But I would like to know _how_ to actually _do_ the calibration using the spectrophotometric standard stars. I mean: should I _divide_ the raw profile by the calibrated profile (as you do with a "flat-field" when taking CCD images)? Please excuse me if I'm answering a very technical question: in that case, please point me to the adequate bibliography.
Luis López
CC BY-SA 4.0
2022-11-01T07:24:54.787Z
@LuisLópez see significant edit.
ProfRob
CC BY-SA 4.0
2022-10-30T10:44:16.543Z
2022-11-01T07:24:29.807Z
2022-11-01T07:24:29.807Z
ProfRob
<p>Discussion on <a href="https://astronomy.stackexchange.com/q/50907/7982">Strange bump in solar spectrum taken with home-made spectrograph</a> made me wonder: How do astronomers calibrate the intensity scale of their spectrometers? I mean, how to take in consideration the characteristics of the particular apparatus (diffraction grating, etc.) employed in obtaining a stellar spectrum, in order to get the correct intensities of the various wavelengths recorded with it?</p>
<p>I think you get me right, but just to be more clear: maybe a certain diffraction grating lets &quot;pass&quot; more yellow that green or red light, so the raw spectrum shows a &quot;bump&quot; in the yellow region in relation with their neighbors colors. So, to get the correct spectrum, one should &quot;attenuate&quot; somehow that yellow part.</p>

CC BY-SA 4.0
2022-10-30T03:43:48.690Z
Generally I assume it would be with the emission of a well known substance, like hydrogen. That’s only a guess though
Topcode
CC BY-SA 4.0
2022-10-30T13:25:50.813Z
@Topcode what's the emission "intensity" of hydrogen?
uhoh
CC BY-SA 4.0
2022-10-30T16:23:16.417Z
@uhoh don’t know, but I assume someone has figured out what a given amount of hydrogen with a given energy will produce.
Topcode
CC BY-SA 4.0
2022-10-31T02:50:39.300Z
@Topcode what about all the pixels (i.e. most of them!) between the hydrogen lines where there's no emission? How will their intensity response be calibrated? A broadband and spectrally smooth thermal source like a blackbody radiator is much better for this than an emission spectrum from atomic transitions.  The line source is more applicable to spectral calibration but there are still nonlinearities that cause trouble between the sparsely distributed peaks of a single electron atom's transitions.
uhoh
<observational-astronomy><amateur-observing><spectroscopy><photometry>
How do astronomers calibrate the intensity scale of their spectrometers?
Luis López
# How do astronomers calibrate the intensity scale of their spectrometers?

(Asked by: username_0 on 2022-10-30)

Discussion on [Strange bump in solar spectrum taken with home-made spectrograph](https://astronomy.stackexchange.com/q/50907/7982) made me wonder: How do astronomers calibrate the intensity scale of their spectrometers? I mean, how to take in consideration the characteristics of the particular apparatus (diffraction grating, etc.) employed in obtaining a stellar spectrum, in order to get the correct intensities of the various wavelengths recorded with it?

I think you get me right, but just to be more clear: maybe a certain diffraction grating lets "pass" more yellow that green or red light, so the raw spectrum shows a "bump" in the yellow region in relation with their neighbors colors. So, to get the correct spectrum, one should "attenuate" somehow that yellow part.

**Tags:** observational-astronomy, amateur-observing, spectroscopy, photometry

> **Comments:**
> **username_1**: Generally I assume it would be with the emission of a well known substance, like hydrogen. That’s only a guess though  
> **username_2**: @username_1 what's the emission "intensity" of hydrogen?  
> **username_1**: @username_2 don’t know, but I assume someone has figured out what a given amount of hydrogen with a given energy will produce.  
> **username_2**: @username_1 what about all the pixels (i.e. most of them!) between the hydrogen lines where there's no emission? How will their intensity response be calibrated? A broadband and spectrally smooth thermal source like a blackbody radiator is much better for this than an emission spectrum from atomic transitions.  The line source is more applicable to spectral calibration but there are still nonlinearities that cause trouble between the sparsely distributed peaks of a single electron atom's transitions.  

---

## 1 answers

### Answer by username_3 on 2022-10-30. Score: 10 | Accepted answer

This can be done in a number of ways. There is a "theoretical" approach, where the transmission and reflection characteristics of all the components are measured in the lab and put together to get an overall, wavelength-dependent efficiency. This isn't used much apart from in system design.

An on-site method is to measure the spectra of [spectrophotometric standard stars](https://www.eso.org/sci/observing/tools/standards/spectra.html), using a very wide slit, so that all the light is captured. These standard stars have measured fluxes as a function of wavelength that can then be used to calibrate the response of the spectrometer. A correction must also be made for atmospheric extinction, that might involve observing standards at the same elevation as the target, or at a range of elevations to actually assess the extinction. The history of how spectrophotometric standards were established is long and complicated.

Standard software packages take the spectrum of the standard star to obtain a response function that can be applied to other spectra. Algorithmically, the observed spectrum is rebinned into intervals that match a table of calibrated standard star fluxes in the same intervals. The standard star calibration data is divided by the rebinned spectrum, taking account of the ratio of exposure times and any estimate of relative extinction, to get the conversion in flux per binned count. Any observed spectrum can be multiplied by (an interpolated and possibly smoothed version) of this to put a flux scale on an observed spectrum. A good description is included in the help file for the old IRAF package [sensfunc](https://astro.uni-bonn.de/%7Esysstw/lfa_html/iraf/noao.onedspec.sensfunc.html).

It is rarely the case that spectra have an accurate absolute flux calibration. Usually, stars are observed using slits or fibers to improve spectral resolution or improve wavelength calibration. In such circumstances, a variable amount of light actually enters the spectrograph, associated with turbulence in the atmosphere (not a problem for HST/JWST) and prevents accurate absolute flux calibration.

Sometimes all you want to do is remove the shape of the wavelength response. This can also be done by observing the spectrophotometric standard stars, even if the absolute flux level is uncertain. The absolute flux level could then be established if you have broad-band photometry of the source at a similar wavelength range (providing the source isn't variable).

> **Comments:**
> **username_4**: I would argue that it's fairly common (not "rarely the case") to have "on-site" spectrophotometric calibration, at least if observing conditions (e.g. "clear" or ideally "photometric") permit. The point is to observe the spectrophotometric standard star with the same instrument and observing setup (e.g., slit width, air mass, etc.) as used for the target observation. This is routinely done as part of the standard calibrations for modern spectrographs on large telescopes.  
> **username_3**: @PeterErwin Absolute flux calibration is rarely attempted because seeing is variable and if it is attempted then nobody would believe it even at the 10% level unless observing with a slit much larger than the seeing. It is also impossibe to do properly for fiber spectroscopy, which comprises of at least half the observing time on spectrographs and the vast majority of spectra taken.  
> **username_3**: @PeterErwin a more common procedure if you need fluxed spectra but also need to observe through a slit or fiber is to correct for the wavelength response - as I described - and then use the known photometry of the star to put that onto an absolute flux scale (providing the object is not photometrically variable).  
> **username_3**: @PeterErwin but that still doesn;t work very well for fibers which have differing charcteristics ldepending on how they are bent and are badly affected by atmospheric dispersion.  
> **username_4**: If you want *really* accurate absolute calibration, sure. But that doesn't stop, e.g., SDSS from producing spectrophotometrically calibrated spectra from their fiber-based observations, even if they have to warn you about the uncertainties.  
> **username_4**: And every time I retrieve a Phase 3 reduced IFU datacube for VLT-MUSE, it's been spectrophotometrically calibrated by standard star observations. Again, it may not be terribly accurate, but it's a standard part of ESO's calibration plan.  
> **username_0**: Thank you very much! I think that this -almost- answers the topic question. But I would like to know _how_ to actually _do_ the calibration using the spectrophotometric standard stars. I mean: should I _divide_ the raw profile by the calibrated profile (as you do with a "flat-field" when taking CCD images)? Please excuse me if I'm answering a very technical question: in that case, please point me to the adequate bibliography.  
> **username_3**: @LuisLópez see significant edit.  

---

