lfkit.utils.units#
Unit conversion utilities used across LFKit.
This module provides small, self-contained helpers for converting between astronomical and cosmological unit systems commonly needed in luminosity function and correction calculations.
Currently supported conversions include:
Megaparsec to kilometers.
Gigayear to seconds.
Hubble constant from km/s/Mpc to 1/Gyr.
These helpers are intentionally lightweight and avoid external dependencies. They are designed for internal use by cosmology and correction modules.
Functions
|
Convert a Hubble constant from km/s/Mpc to 1/Gyr. |
|
Return the number of kilometers in one megaparsec. |
|
Converts AB magnitudes to maggies (linear flux units). |
|
Converts magnitude uncertainties to inverse variance in maggies. |
|
Convert maggies to magnitudes with a safety floor. |
|
Return the number of seconds in one gigayear. |