NASA-IMPACT / pyQuARC

The pyQuARC tool reads and evaluates metadata records with a focus on the consistency and robustness of the metadata. pyQuARC flags opportunities to improve or add to contextual metadata information in order to help the user connect to relevant data products. pyQuARC also ensures that information common to both the data product and the file-level metadata are consistent and compatible. pyQuARC frees up human evaluators to make more sophisticated assessments such as whether an abstract accurately describes the data and provides the correct contextual information. The base pyQuARC package assesses descriptive metadata used to catalog Earth observation data products and files. As open source software, pyQuARC can be adapted and customized by data providers to allow for quality checks that evolve with their needs, including checking metadata not covered in base package.
Apache License 2.0
19 stars 0 forks source link

Validate datetime against granules #279

Closed binni979 closed 2 months ago

binni979 commented 3 months ago

This is the pull request to solve this issue.

Overview: In the pyQuarc, while running the collection, it showed the warning message like this: "The collection beginning date time 1983-07-01T00:00:00.000000Z is not consistent with the first granule's beginning date time 1983-07-01T00:00:00.000Z. Recommend updating the beginning date time to match the granule extent."

Changes made: Modified the code to check and validate datetime to meet the same level of precision, now no warning shows up like the above. Tested on this 'C2068391958-LARC_ASDC' (umm-c) collection to make sure the if the warning shows up.

xhagrg commented 2 months ago

Small comment. Other than that, looks good.