environmentaltools.spatiotemporal.raster.analysis

environmentaltools.spatiotemporal.raster.analysis(info=None)[source]

Execute the complete spatiotemporal raster analysis workflow.

This is the main analysis function that orchestrates the entire spatiotemporal raster processing pipeline. It loads configuration, validates inputs, processes each simulation and index combination, and generates binary matrices for spatial analysis.

Parameters:

info (dict) – Configuration dictionary containing project parameters, input/output paths, and analysis settings.

Returns:

Updated configuration dictionary with processed results and metadata.

Return type:

dict

Notes

The analysis workflow includes: 1. Configuration loading and validation 2. Input data verification and preprocessing 3. Binary matrix generation for each simulation and index 4. NetCDF output file creation 5. Progress logging and error handling

The function processes multiple simulations and analysis indices as specified in the configuration, creating separate output files for each combination.

Examples

>>> from pathlib import Path
>>> config_file = Path("config/coastal_analysis.json")
>>> results = analysis(config_file)
>>> print(f"Processed {len(results['datacube_filenames'])} simulations")