ADCS.helpers.animations.godot.assets.stars module

Star table for the viewer from the Yale Bright Star Catalogue (BSC5).

Output columns (little-endian float32, one row per star), see COLUMNS: unit direction (ICRS/J2000, epoch 2000.0), V magnitude, B-V, linear sRGB colour normalised to a maximum of 1, illuminance at the observer [lux], and proper motion [mas/yr].

ADCS.helpers.animations.godot.assets.stars.bv_to_temperature(b_v)[source]

Effective temperature [K] from B-V (Ballesteros 2012, EPL 97, 34008).

Parameters:

b_v (ndarray)

Return type:

ndarray

ADCS.helpers.animations.godot.assets.stars.magnitude_to_lux(vmag)[source]

Illuminance at the observer [lux] of a star of visual magnitude V.

Parameters:

vmag (ndarray)

Return type:

ndarray

ADCS.helpers.animations.godot.assets.stars.parse_bsc5(path)[source]

Parse the CDS V/50 catalog (plain or gzip), fixed-width per its ReadMe.

Entries without a J2000 position (deleted or non-stellar objects) are skipped; a missing B-V becomes NaN.

Returns:

{"hr", "ra_rad", "dec_rad", "vmag", "b_v", "pm_ra_mas", "pm_dec_mas"}.

Parameters:

path (Path)

Return type:

Dict[str, ndarray]

ADCS.helpers.animations.godot.assets.stars.star_table(cat)[source]

Rows of COLUMNS as float32, brightest first.

Parameters:

cat (Dict[str, ndarray])

Return type:

ndarray

ADCS.helpers.animations.godot.assets.stars.temperature_to_linear_srgb(temp_k)[source]

Chromaticity of a blackbody as linear sRGB, scaled so the largest channel is 1.

Planck spectrum integrated against the CIE 1931 colour matching functions. Real stellar spectra deviate from blackbodies; this is the usual approximation for rendering.

Parameters:

temp_k (ndarray)

Return type:

ndarray