nirwals.physics.spectrum
Functions for generating the source and sky background spectra.
normalize(spectrum, magnitude)
Normalize a source spectrum to have given Johnson J magnitude.
The waveset property must be defined for the given source spectrum.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
spectrum |
SourceSpectrum
|
The source spectrum to normalize. |
required |
magnitude |
float
|
The magnitude the normalized spectrum should have. |
required |
Returns:
| Type | Description |
|---|---|
SourceSpectrum
|
The normalized spectrum. |
Source code in nirwals/physics/spectrum.py
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 | |
sky_spectrum()
Return the sky background.
The background is assumed to include any atmospheric extinction already, i.e, it is the flux received at the telescope.
Returns:
| Type | Description |
|---|---|
SourceSpectrum
|
The sky background, as received at the telescope. |
Source code in nirwals/physics/spectrum.py
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |
source_spectrum(configuration)
Return the source spectrum for a given configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
configuration |
Configuration
|
The configuration. |
required |
Returns:
| Type | Description |
|---|---|
SourceSpectrum
|
The source spectrum. |
Source code in nirwals/physics/spectrum.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | |