empyrean.WeightingLayer

class WeightingLayer(kind=WeightingLayerKind.OBSERVATORY_RULE, obs_code='', sigma=(1.0, 1.0), start_epoch_mjd_tdb=None, end_epoch_mjd_tdb=None, scale=1.0, max_gap_days=0.5)[source]

Bases: object

One element of the weighting pipeline. Tagged-union shape — the active fields depend on kind.

Mirrors scott::weighting::WeightingLayer.

Methods

__init__([kind, obs_code, sigma, ...])

Attributes

end_epoch_mjd_tdb

End of applicable time range (MJD TDB).

kind

max_gap_days

Max gap (days) between observations to count as the same night (NightlyDeweighting only).

obs_code

MPC observatory code (e.g. "F51").

scale

Scale factor on the final weight.

sigma

1σ (RA·cos(δ), Dec) in arcseconds.

start_epoch_mjd_tdb

Start of applicable time range (MJD TDB).

Parameters:
kind: WeightingLayerKind = 'observatory_rule'
obs_code: str = ''

MPC observatory code (e.g. "F51").

sigma: tuple[float, float] = (1.0, 1.0)

1σ (RA·cos(δ), Dec) in arcseconds.

start_epoch_mjd_tdb: float | None = None

Start of applicable time range (MJD TDB). None = unbounded.

end_epoch_mjd_tdb: float | None = None

End of applicable time range (MJD TDB). None = unbounded.

scale: float = 1.0

Scale factor on the final weight.

max_gap_days: float = 0.5

Max gap (days) between observations to count as the same night (NightlyDeweighting only).