BOSS Spectrum Models¶
Module: astra.models.boss
BossVisitSpectrum¶
An optical BOSS spectrum from a specFull file. A BOSS “visit” is defined as all exposures of a source taken on the same MJD. The wavelengths are in vacuum and shifted to the Solar system barycentric rest frame (not the source rest frame).
There is no BOSS equivalent of apStar in the upstream BOSS pipeline – the BOSS DRP does not stack spectra across multiple nights. Astra fills this gap with the BossCombinedSpectrum model (see MWM Models).
Key Fields¶
Field |
Type |
Description |
|---|---|---|
|
ForeignKeyField |
Unique spectrum identifier |
|
ForeignKeyField |
Foreign key to the |
|
TextField |
Data release |
|
TextField |
BOSS reduction pipeline version |
|
IntegerField |
Field identifier |
|
IntegerField |
Modified Julian Date of observation |
|
BigIntegerField |
SDSS catalog identifier |
|
TextField |
Telescope used (e.g., |
|
TextField |
BOSS specFull basename |
Spectral data:
Field |
Type |
Description |
|---|---|---|
|
PixelArray |
Wavelength array (vacuum, barycentric frame); derived from |
|
PixelArray |
Flux array |
|
PixelArray |
Inverse variance array |
|
PixelArray |
Wavelength resolution array |
|
PixelArray |
Per-pixel quality flags (from |
Observing conditions:
Field |
Type |
Description |
|---|---|---|
|
FloatField |
Signal-to-noise ratio |
|
IntegerField |
Number of exposures |
|
FloatField |
Total exposure time (seconds) |
|
FloatField |
Seeing (arcseconds) |
|
FloatField |
Airmass |
|
FloatField |
Air temperature |
|
FloatField |
Humidity |
Radial velocity (XCSAO):
Field |
Type |
Description |
|---|---|---|
|
FloatField |
Radial velocity from XCSAO (km/s) |
|
FloatField |
RV uncertainty from XCSAO (km/s) |
|
FloatField |
Effective temperature from XCSAO |
|
FloatField |
Surface gravity from XCSAO |
|
FloatField |
Metallicity from XCSAO |
|
FloatField |
Cross-correlation R-value |
Warning flags:
Field |
Type |
Description |
|---|---|---|
|
BitField |
BOSS DRP warning flags |
|
bit 0 |
Sky fiber |
|
bit 1 |
Too little wavelength coverage |
|
bit 2 |
Chi-squared too close to second best |
|
bit 7 |
Fiber unplugged or damaged |
|
bit 9 |
No data for this fiber |
|
BitField |
Flags for provenance of ugriz photometry |
Methods and Properties¶
path (property)¶
Returns the file path to the specFull FITS file. The path template depends on the run2d version.
visit = BossVisitSpectrum.get_by_id(1)
print(visit.path)
e_flux (property)¶
Returns the flux uncertainty array, computed as ivar**-0.5.
field_group (property)¶
Returns the field group string (e.g., "015XXX" for fieldid 15234), used in the file path.
pad_fieldid (property)¶
Returns the zero-padded field ID string. Padding rules depend on the run2d version.
isplate (property)¶
Returns "p" for plate-era run2d versions (v6_0_1 through v6_0_4), or "" otherwise. Used in path construction.