add l2c_sequential_processing.py - #13
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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