GEddySoft_start.run_pool

GEddySoft_start.run_pool(days_to_process, log_filename)[source]

Execute parallel processing of multiple days using a multiprocessing pool.

This function manages a pool of worker processes to handle eddy covariance data processing for multiple days simultaneously. It includes robust error handling and logging capabilities.

Parameters:
  • days_to_process (list of str) – List of days to process in YYYY_MM_DD format

  • log_filename (str) – Path to the log file for recording processing status and errors

Notes

The function implements several key features: 1. Stdout redirection to prevent cluttered output 2. Exception handling with proper resource cleanup 3. Automatic process pool management 4. Logging of both successful and failed processing

Global Variables

cpuint

Number of CPU cores to use (set in __main__)

inidict

Configuration parameters (set in __main__)

OFfile object

Open log file handle (set in __main__)