-
Notifications
You must be signed in to change notification settings - Fork 2
Add ETAD processing to NCI Pipeline #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
caitlinadams
commented
Apr 2, 2025
- Add functions for finding and downloading ETAD files from CDSE
- Update CLI to work with --etad-dir option (ETAD is not used if this option is not provided)
- Update to CLI to take all options through
…d include a dry-run argument
| corrected_scene_dir = uncorrected_scene.parent / "etad_corrected" | ||
|
|
||
| if not (etad.is_dir() and etad.suffix == ".SAFE"): | ||
| logging.info("Atte") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checking "Atte"means something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, nope, clearly left my keyboard halfway through. Will work out a sensible message!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol nah I like Atte!!
sar_pipeline/preparation/etad.py
Outdated
| raise ValueError(f"No ETAD products found. Scene start date: {scene_start}") | ||
| elif len(search_results) > 1: | ||
| raise ValueError( | ||
| f"{len(search_results)} ETAD products found, which is too many. Review files: {[result['Name'] for result in search_results]}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, but could explicitly state that 1 is expected rather than too many
| """ | ||
|
|
||
| # Validate that input scene and etad are .SAFE directiories | ||
| if not (scene.is_dir() and scene.suffix == ".SAFE"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there reason for not doing this on the users behalf?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to keep the function simple and limited in scope. I handle the unzipping as part of the application (i.e. pyrosar_geocode).
|
Looks good as is! Address comments if you think needed otherwise go ahead for merge |
Add ETAD processing to NCI Pipeline