-
Notifications
You must be signed in to change notification settings - Fork 3
Collection date times not matching with granules errors #299
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
|
Description of the bug: Including the above code changes, the collection datetime matched the granule datetime. But the datetime format did not have 'T' and 'Z'; this is the recommended datetime format (major bug). In this update, we tested that the collection datetime match with the beginning datetime or ending datetime and the datetime format reads 'YYYY-MM-DDTHH:MM:SSSZ' ** Code updates: ** The changes were made in Reproduce the bug: |
|
Please address before pushing PR to the Dev/Master branch: "Note: The collection beginning date time 'COLLECTION DATETIME' is not consistent with the beginning date time in the metadata for the first granule in Earthdata Search 'GRANULE DATETIME'. Recommend updating the beginning date time to match the granule extent." |
|
@fb0023 i updated this to address your comment - can you please test it out and see all is good? i'll merge this once i get the confirmation |
|
@slesaad, the message is not updated in the Ideally, for this example, we need the output message to show this: Error: The collection beginning date time '2000-01-01T00:00:00.000Z' is not consistent with the beginning date time in the metadata for the first granule in Earthdata Search '2019-04-29 00:00:00.000Z'. Recommend updating the beginning date time to match the granule extent. |
|
My thoughts on why the error and message are not working. Currently, the code change is made in the def validate_datetime_against_granules in the |
@lavanya3k if you look at the |
|
Testing: Tested the collection for datetime difference > 24 hours and < 24 hours. Example: Used the .native file of C1000000022-CDDIS from Earthdata search. Then, edited the datetime for the beginning and ending datetime. |
|
@lavanya3k can you help replace this with the real collection and granule ids that exist Filepath: def setup_method(self):
self.concept_ids = {
"collection": {
"real": "C1339230297-GES_DISC",
"dummy": "C123456-LPDAAC_ECS",
},
"granule": {
"real": "G1370895082-GES_DISC",
"dummy": "G1000000002-CMR_PROV",
},
"invalid": "asdfasdf",
} |



This is a pull request to solve this issue.
Overview:
At the collection level, pyQuARC was not flagging temporal extents that did not match with the granules.
Example
UMM-C Record: C2066317191-LARC
Changes made:
Added "Z" at the end of date_formates which follows standard ISO 8601 formatting rules with the 'Z' indicating UTC time.
Expected behavior:
pyQuARC is showing the error for the Beginning and Ending Date Times if it does not match with granules.