Repository navigation
v0.5.0
Per-pzone reference grid, plus two silent-correctness fixes in the corrections pipeline.
Added
- Per-pzone reference grid: build_reference_grid() / get_reference_grid() persist one grid per pzone as a 1-bit GeoTIFF at /reference_raster/_grid.tif, built from the AOI plus a resolution or adopted from a pair's EW raster.
- build_reference_dem() writes a cropped, regridded DEM where Pzone.get_dem() already reads, so the corrections stop re-warping it per pair.
- load_moving_areas() / get_moving_areas() store outlines in the project at /vector/_moving-areas.gpkg, in the session CRS.
- New geomulticorr/utils/_grid.py: grid_key, grids_match, describe_grid, regrid_to_ref, write_binary_raster. Grid comparison is metadata-only and never forces a raster read.
Fixed
- DEM grid alignment was checked by shape alone. A DEM with a matching shape but a different origin or CRS was used as-is, producing a wrong topographic correction with no error and no warning. All sites now compare (shape, transform, crs); a matching-shape mismatch logs a WARNING naming both grids, so affected pairs can be re-run.
- Moving-area polygons were rasterized with no CRS handling. Polygons in another CRS landed outside the grid, so the stable mask came back all-True and the corrections were fitted on moving terrain. Every StableAreaMask() call was affected.
- XML metadata tag patterns rejected tags carrying attributes, so <SENSING_TIME metadataLevel=...> failed on every real Sentinel-2 MTD_TL.xml and band-scoped scenes were dropped from map_georasters_bank output.
- The DEM-dependent corrections declare _REQUIRED_KWARGS = ('dem',), so a missing dem= is caught upfront rather than deep in the per-pair loop.