environmentaltools.spatiotemporal.raster.post_treatment

environmentaltools.spatiotemporal.raster.post_treatment(info)[source]

Perform post-treatment preprocessing for spatiotemporal raster analysis.

This function performs preprocessing steps after input validation, including temporal difference analysis, level data processing, and refinement band creation. It prepares the data structures needed for the main analysis workflow.

Parameters:

info (dict) – Configuration dictionary containing project parameters, file paths, and processing settings. Must include: - datacube_filenames: List of NetCDF file paths - level_filenames: List of CSV file paths with threshold levels - project.variables: List of variable names to process - project.no_sims: Number of simulations to process - refinement_size: Grid refinement parameter

Returns:

Updated configuration dictionary with additional preprocessing results: - band_levels: Array with [min_value, max_value] across all simulations - band: Refinement band for spatial processing - coords: Dictionary with refined grid coordinates X and Y

Return type:

dict

Notes

The function performs the following preprocessing steps: 1. Temporal difference analysis on elevation data 2. Calculation of absolute min/max values across all simulations 3. Creation of refinement bands for spatial processing 4. Generation of refined grid coordinates for interpolation

The temporal difference analysis provides statistics on how much the elevation data changes between consecutive time steps across all simulations.