Skip to content

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.

flight_dir property

flight_dir: Path

stem property

stem: str

img property

img: Path

hdr property

hdr: Path

parquet property

parquet: Path

qa_png property

qa_png: Path

qa_pdf property

qa_pdf: Path

qa_json property

qa_json: Path

Audience: advanced.

FlightlinePaths dataclass

FlightlinePaths(base_folder: Path, flight_id: str)

Centralised path helper ensuring per-flightline isolation.

flight_dir property

flight_dir: Path

h5 property

h5: Path

envi_img property

envi_img: Path

envi_hdr property

envi_hdr: Path

envi_parquet property

envi_parquet: Path

corrected_img property

corrected_img: Path

corrected_hdr property

corrected_hdr: Path

corrected_json property

corrected_json: Path

corrected_parquet property

corrected_parquet: Path

brdf_model property

brdf_model: Path

qa_png property

qa_png: Path

qa_pdf property

qa_pdf: Path

qa_json property

qa_json: Path

qa_metrics_parquet property

qa_metrics_parquet: Path

merged_parquet property

merged_parquet: Path

sensor_products property

sensor_products: Dict[str, SensorProductPaths]

sensor_product

sensor_product(sensor_name: str) -> SensorProductPaths

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: _brdf_model.json

If a legacy file like 'NIWO_brdf_model.json' exists, rename it. Returns the normalized Path (or None if nothing found).