1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2026 Vallés Puig, Ramon
//! # Photometric filter passbands
//!
//! ## Scientific scope
//!
//! Synthetic photometry — the conversion of a stellar or extragalactic
//! spectral energy distribution into broad-band magnitudes — requires
//! the spectral response curve `S(λ)` of each filter in the photometric
//! system. For the Johnson–Cousins UBVRI system, the de-facto modern
//! reference is Bessell (1990), recommended by Bessell & Murphy (2012)
//! as the canonical realisation of the historical Johnson–Cousins
//! definitions. Each sub-module of this module bundles a curated
//! transmission curve for one such system, distributed as a
//! lazily-initialised, statically-cached
//! [`SampledSpectrum`](crate::spectra::SampledSpectrum) constant.
//!
//! Validity ranges are bounded by the wavelength interval of the
//! published table; outside that interval the throughput is taken as
//! zero (the conventional assumption for a compactly supported filter).
//!
//! ## Technical scope
//!
//! - [`Throughput`] — `qtty::Unit` marker for dimensionless filter
//! throughput in `[0, 1]`. Distinct from
//! `crate::atmosphere::Transmittance` so the two concepts
//! remain typewise distinguishable.
//! - [`johnson_b`] / [`johnson_v`] — convenience accessors returning
//! the Bessell (1990) Johnson *B* and *V* curves (aliases for
//! [`bessell1990::b`] / [`bessell1990::v`]).
//! - [`bessell1990`] — bundled UBVRI dataset.
//!
//! ## References
//!
//! - Bessell, M. S. (1990). "UBVRI Passbands". *Publications of the
//! Astronomical Society of the Pacific* **102**, 1181.
//! doi:10.1086/132749.
//! - Bessell, M. S., & Murphy, S. (2012). "Spectrophotometric Libraries,
//! Revised Photonic Passbands, and Zero Points for UBVRI, Hipparcos,
//! and Tycho Photometry". *Publications of the Astronomical Society
//! of the Pacific* **124**, 140. doi:10.1086/664083.
use crateNanometer;
use crateUnit;
use crateSampledSpectrum;
/// Convenience accessor for the Johnson **B** passband.
///
/// Returns the Bessell (1990) realization of the Johnson *B* filter,
/// which is the de-facto modern standard reference for synthetic
/// Johnson–Cousins photometry (see Bessell & Murphy 2012,
/// *PASP* **124**, 140, who recommend the Bessell 1990 UBVRI curves as
/// the canonical "Johnson–Cousins" realization). λ_eff ≈ 438 nm
/// (Vega-weighted) or ≈ 441 nm (flat-spectrum centroid).
///
/// This is an alias for [`bessell1990::b`] provided so consumers can
/// write `passbands::johnson_b()` without knowing which dataset
/// implements the curve.
/// Convenience accessor for the Johnson **V** passband.
///
/// Returns the Bessell (1990) realization of the Johnson *V* filter,
/// the de-facto modern standard reference for synthetic Johnson–Cousins
/// photometry (Bessell & Murphy 2012, *PASP* **124**, 140).
/// λ_eff ≈ 545 nm (Vega-weighted) or ≈ 551 nm (flat-spectrum centroid).
///
/// This is an alias for [`bessell1990::v`] provided so consumers can
/// write `passbands::johnson_v()` without knowing which dataset
/// implements the curve.
/// Dimensionless unit marker for filter throughput values ∈ [0, 1].
///
/// `RATIO = 1.0`; canonical SI dimension is dimensionless.
;