preprocess.radiometric_normalization
vhrharmonize.preprocess.radiometric_normalization
¶
Radiometric normalization via the upstream SpectralMatch pipeline API.
radiometric_normalization(shared_input_images, shared_output_image_path, *, method='spectralmatch', shared_temp_dir=None, delete_temp_dir=True, shared_debug_logs=False, shared_cache='auto', shared_custom_nodata_value=None, shared_window_size=1024, shared_image_threads='auto', shared_io_threads='auto', shared_tile_threads='auto', shared_calculation_dtype='float32', shared_output_dtype=None, shared_save_as_cog=False, log_to_console=False, **kwargs)
¶
Run radiometric normalization with SpectralMatch. Args: shared_input_images: Input raster paths for normalization. shared_output_image_path: Output normalized raster path. method: Requested radiometric normalization method. shared_temp_dir: Optional SpectralMatch temp directory. delete_temp_dir: Whether SpectralMatch should delete its temp directory. shared_debug_logs: Whether SpectralMatch should emit debug logs. shared_cache: SpectralMatch cache setting to pass through. shared_custom_nodata_value: Optional custom nodata override. shared_window_size: SpectralMatch shared window size. shared_image_threads: SpectralMatch image thread setting. shared_io_threads: SpectralMatch IO thread setting. shared_tile_threads: SpectralMatch tile thread setting. shared_calculation_dtype: SpectralMatch calculation dtype. shared_output_dtype: Optional SpectralMatch output dtype override. shared_save_as_cog: Whether to save as a COG. log_to_console: Whether to emit console logs. kwargs: Additional SpectralMatch keyword arguments. Returns: Output normalized raster path.