Paths¶
Module: spectralbridge.paths.
Direct-module reference; consult the linked workflow for processing context.
API glossary ยท Workflow / scientific context
Signatures and documentation below are collected from the current source. Advanced objects are not newly declared stable by inclusion here.
Audience: advanced.
SensorProductPaths
dataclass
¶
SensorProductPaths(base_folder: Path, flight_id: str, sensor_suffix: str)
Convenience wrapper for per-sensor ENVI/Parquet/QA artefacts.
Audience: advanced.
FlightlinePaths
dataclass
¶
FlightlinePaths(base_folder: Path, flight_id: str)
Centralised path helper ensuring per-flightline isolation.
Audience: advanced.
scene_prefix_from_dir ¶
scene_prefix_from_dir(flightline_dir: Path) -> str
Recover a scene prefix from a raw ENVI image, HDF5 filename or, as a last fallback, the directory name.
Audience: advanced.
site_from_prefix ¶
site_from_prefix(prefix: str) -> str | None
Extract a NEON site code from a matching canonical scene prefix, otherwise return None.
Audience: advanced.
normalize_brdf_model_path ¶
normalize_brdf_model_path(flightline_dir: Path) -> Path | None
Ensure the BRDF model JSON in flightline_dir matches the scene prefix:
If a legacy file like 'NIWO_brdf_model.json' exists, rename it. Returns the normalized Path (or None if nothing found).