Exports Geo Utils¶
Module: spectralbridge.exports.geo_utils.
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.
GeoContext
dataclass
¶
GeoContext(crs_epsg: Optional[int], a: float, e: float, c: float, f: float)
Store EPSG and affine pixel geometry needed for export-coordinate columns.
Audience: advanced.
load_geo_from_hdr ¶
load_geo_from_hdr(hdr_path: Path) -> Optional[GeoContext]
Extract pixel size, origin and an inferred EPSG code from an existing ENVI header; return None without map information.
Audience: advanced.
add_lonlat_inplace ¶
add_lonlat_inplace(df, geo: Optional[GeoContext])
Fill x,y from row/col + affine if needed; then lon,lat from x,y + CRS.
Audience: advanced.
write_parquet_with_lonlat ¶
write_parquet_with_lonlat(df_long, out_parquet: Path, hdr_path: Optional[Path])
Write a dataframe to parquet after enriching lon/lat from an ENVI header.