Add getArgusImagery function for FRF tower orthophoto retrieval#20
Merged
Conversation
Implements issue #18 - adds functions to retrieve Argus imagery from the coastalimaging.erdc.dren.mil server: - getArgusImagery(): Synchronous retrieval of Argus orthophotos - Supports image types: timex, var, snap, brightest, darkest - Rounds time to nearest 30-minute interval - Returns dict with image array, time, epochtime, and metadata - threadGetArgusImagery(): Non-blocking background download version - Returns filename immediately while download proceeds in background Closes #18 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Owner
Author
Additional changes in this updateThis PR now also includes: New utility function
New example script
Testpython examples/test_wave_and_imagery.py |
- Add findArgusImagery() wrapper function that searches for nearest available imagery when exact time is not available - Supports two search modes: - method=0: Nearest in TIME (bidirectional search) - method=1: Nearest in HISTORY (backward only, for operational use) - Fix image type names: 'brightest'->'bright', 'darkest'->'dark' - Add search_window_hours parameter (default 24h) - Returns time_requested and time_offset_minutes in result dict - Update test_wave_and_imagery.py to use new wrapper Closes #18 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update valid_types in test to match actual server naming: - 'brightest' -> 'bright' - 'darkest' -> 'dark' Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
getArgusImagery()function to retrieve Argus orthophoto imagery from the FRF coastal imaging server (coastalimaging.erdc.dren.mil)threadGetArgusImagery()for non-blocking background downloadstimex,var,snap,brightest,darkestTest plan
pytest tests/test_getDataFRF.py -v -m "not slow")Closes #18
🤖 Generated with Claude Code