reVX.handlers.layered_h5.check_geotiff
- check_geotiff(h5, geotiff, chunks=(128, 128), transform_atol=0.01)[source]
Compare GeoTIFF with exclusion layer and raise errors if mismatch.
- Parameters:
h5 (
LayeredH5
) –LayeredH5
instance containing shape, profile, and template_file attributes.geotiff (str) – Path to GeoTIFF file.
chunks (tuple) – Chunk size of exclusions in GeoTIFF,
transform_atol (float) – Absolute tolerance parameter when comparing GeoTIFF transform data.
- Returns:
profile (dict) – GeoTIFF profile (attributes).
values (ndarray) – GeoTIFF data.
- Raises:
ProfileCheckError – If shape, profile, or transform don;t match between HDF5 and GeoTIFF file.