Skip to content

add l2c_sequential_processing.py - #13

Merged
agrouaze merged 3 commits into
mainfrom
sequential-script
Jun 8, 2026
Merged

add l2c_sequential_processing.py#13
agrouaze merged 3 commits into
mainfrom
sequential-script

Conversation

@agrouaze

@agrouaze agrouaze commented Jun 8, 2026

Copy link
Copy Markdown
Member

add a script to process a bunch of SAFE files with

procl2c-sequential -h
usage: procl2c-sequential [-h] --listing-safe LISTING_SAFE --config CONFIG [--mode {1to1,unique,many,lasso}] [--ww3-file WW3_FILE] [--ww3-dir WW3_DIR] --output-dir OUTPUT_DIR [--verbose] [--overwrite] [--dry-run]

Batch process multiple SAFE directories using l2c_processor

options:
  -h, --help            show this help message and exit
  --listing-safe LISTING_SAFE
                        Path to text file containing SAFE directory paths (one per line)
  --config CONFIG       Path to YAML config file with thresholds and directories
  --mode {1to1,unique,many,lasso}
                        Matching mode (default: lasso)
  --ww3-file WW3_FILE   Direct path to WW3 file or directory (legacy mode)
  --ww3-dir WW3_DIR     Root directory for automatic WW3 discovery (replaces --ww3-file)
  --output-dir OUTPUT_DIR
                        Base directory to save output files
  --verbose             Enable verbose logging
  --overwrite           Overwrite existing output files
  --dry-run             Only list what would be processed without actually running the processor

Examples:
  # Using explicit WW3 file/directory
  procl2c-sequential --listing-safe safes.txt --config config.yml --mode lasso --output-dir ./output --ww3-file /path/to/ww3

  # Using automatic WW3 discovery from root directory
  procl2c-sequential --listing-safe safes.txt --config config.yml --mode lasso --output-dir ./output --ww3-dir /scale/project/wave/WW3/PROJECT/IRI/IRI_15KM_01/

  # Dry run to check what would be processed
  procl2c-sequential --listing-safe safes.txt --config config.yml --mode lasso --output-dir ./output --ww3-dir /path/to/ww3 --dry-run

  # With verbose output and overwrite
  procl2c-sequential --listing-safe safes.txt --config config.yml --mode lasso --ww3-dir /path/to/ww3/root --overwrite --verbose

@agrouaze agrouaze added the enhancement New feature or request label Jun 8, 2026
@agrouaze agrouaze self-assigned this Jun 8, 2026
@agrouaze
agrouaze merged commit 50c89a5 into main Jun 8, 2026
12 checks passed
@agrouaze
agrouaze deleted the sequential-script branch June 8, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant