GEddySoft_start

Main entry point for running GEddySoft eddy covariance processing software.

This module serves as the primary entry point for GEddySoft, handling:

  1. Configuration loading from INI files

  2. Input file discovery and mapping

  3. Processing mode selection: - Single-process mode for testing/debugging - Multi-process mode for production runs (one process per day)

  4. Execution monitoring and logging

  5. Error handling and automatic retry for failed days

The module implements a robust parallel processing strategy with: - Automatic CPU core detection - stdout redirection for clean logging - Progress tracking and reporting - Automatic retry of failed processing days

Typical usage:

python GEddySoft_start.py

Author

B. Heinesch University of Liege, Gembloux Agro-Bio Tech

Functions

run_pool

Execute parallel processing of multiple days using a multiprocessing 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__)