API Reference
Custom stages for the LBG pipelines are defined in the lbg_stages package.
Each stage is a ceci PipelineStage subclass; configuration keys are set in
the pipeline config YAML.
Note that many of our stages are not defined here but are instead imported from TXPipe and RAIL.
lbg_stages.FlagshipReducer
Bases: RailStage
Load Flagship simulation pixel files and reduce to a standard catalog.
Wraps FlagshipReducer from rail_projects to convert raw per-pixel
parquet files (flux columns, Flagship coordinate convention) into a reduced
catalog with AB magnitudes and standard ra/dec.
The output is a single parquet file suitable for downstream RAIL
degradation stages.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_dir
|
str
|
Directory containing Flagship pixel parquet files (wNIR).
Default: |
required |
pixels
|
list of int
|
HEALPix pixel IDs to load.
Default: |
required |
file_pattern
|
str
|
Filename template; |
required |
cuts
|
dict
|
Column cuts forwarded to the underlying |
required |
Source code in lbg_stages/flagship_reducer.py
run()
Read pixel files and write the reduced catalog to the output path.