homonim.RasterCompare.create_config
- static RasterCompare.create_config(threads: int = 0, max_block_mem: float = 512, downsampling: Resampling = Resampling.average, upsampling: Resampling = Resampling.cubic_spline) Dict
Utility method to create a RasterCompare configuration dictionary whose items can be passed as keyword arguments to
RasterCompare.process(). Without arguments, the default configuration is returned.- Parameters:
threads (int, optional) – Number of image blocks to process concurrently. A maximum of the number of processors on your system is allowed. Increasing this number will increase the memory required for processing. 0 = use all processors.
max_block_mem (float, optional) – Maximum size of an image block in megabytes. Note that the total memory consumed by a thread is proportional to, but larger than this number.
downsampling (rasterio.enums.Resampling, optional) – Resampling method to use when downsampling. See the rasterio docs for available options.
upsampling (rasterio.enums.Resampling, optional) –
Resampling method to use when upsampling. See the rasterio docs for available options.
- Returns:
Configuration dictionary.
- Return type:
dict