femic.pipeline.tsa
TSA-level constants and helpers.
Functions
|
Apply selected+alias stratum mapping and return matched-column name. |
|
Assign absolute AU ids from scsi_au lookup map. |
|
Assign SI-level labels within each matched stratum from configured quantile bands. |
|
Assign stratum_matched values by TSA using AU-table strata as targets. |
|
Assign THLB area and THLB binary flag using legacy TSA-specific rules. |
|
Assign per-row raw THLB values by masking a THLB raster. |
|
Build null-diagnostics summary used when AU assignment yields no rows. |
|
Summarize residual unmapped AU rows after the imputation pass. |
|
Build per-stratum summary table used by legacy TSA orchestration. |
|
Build best-match aliases from non-selected lexmatch strata to selected strata. |
|
Emit legacy warning lines for missing AU mapping diagnostics. |
|
Lookup base AU id for a TSA/stratum/SI combination. |
|
Compute mean THLB raster value for one geometry with legacy error fallback. |
|
Return canonical TSA code token used across legacy stage tables. |
|
Resolve per-stratum SI quantile bands. |
|
Return a TSA-filtered slice that is robust to index dtype drift. |
|
Return top-N missing AU mapping combinations for diagnostics. |
|
Return configured target number of strata for a TSA code. |
|
Raise when any post-imputation AFLB rows still lack AU assignment. |
|
Raise with null diagnostics when AU assignment produces no mapped rows. |