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
add uat option to validator script and document in readme #779
Conversation
Thanks a ton @niarenaw for your contribution! Let me test this out against some of our existing test cases and then get to approving / merging 👍 |
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.
Thank you for this contribution @niarenaw - excellent!
Couple suggestions inline but two I wanted to add:
- Did you make the regex fix to allow the
S1B
RTC granules to work? If so could you contribute that to this PR and rename the PR / purpose accordingly? - UAT CMR has less granules than OPS, and I noticed that many times no granules are returned. I think we should add a
sys.exit(1)
right after this line since now this is a common occurrence. Would you consider adding that?
|
||
### Usage Examples | ||
|
||
* Retrieve a list of MGRS Tile Set IDs for the RTC burst processing a given time range on CMR, and filter the results to show only MGRS Tile Sets that had coverage of greater than or equal to 50%. | ||
|
||
``` | ||
$ python dswx_s1_validator.py --start "2023-12-05T01:00:00Z" --end "2023-12-05T03:59:59Z" --db MGRS_tile_collection_v0.2.sqlite --threshold 50 | ||
Querying CMR for time range 2023-12-05T01:00:00Z to 2023-12-05T03:59:59Z. | ||
Querying CMR for time range 2023-12-05T01:00:00 to 2023-12-05T03:59:59. |
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 think we should keep the Z
as that denotes times are expected to be in UTC.
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 get a ValueError, when including Z
: ValueError: Invalid isoformat string: '2023-12-05T01:00:00Z'
@riverma thanks for you suggested changes -- I've added them. |
…d failures - Added default value to timestamp arg - Better logging for failure analysis
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.
Thanks @niarenaw for your help improving this script!
Purpose
Proposed Changes
Testing