raster.group_tiffs_by_crs()

Group GeoTIFFs by CRS.

Usage

Source

raster.group_tiffs_by_crs(src_tiffs)

Parameters

src_tiffs: Sequence[str | Path | UPath]
GeoTIFF paths.

Returns

dict[str, list[UPath]]
Paths keyed by UTM<zone> or EPSG<code>.

Raises

ValueError

If src_tiffs is empty.

TypeError

If a file has no CRS.

FileNotFoundError
If any source file does not exist.