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.
Some of the metadata in CMR could be behind Earthdata Login, and pyQuARC won't have access to download and validate it in that case.
Thus, there needs to be a way to validate those metadata if the user is authorized.
Details
This issue involves addition of support for headers/token in pyQuARC so it can pass it through in the request to the CMR API.
The task will probably involve the following:
pass token as a param to pyQuARC.ARC.validate()
if token is provided, set TOKEN environment variable
read token using os.environ.get("TOKEN")
if exists, using it anywhere you need to make a cmr request
Acceptance Criteria
[x] pyQuARC can validate a record that's behind earthdata login
Motivation
Some of the metadata in CMR could be behind Earthdata Login, and pyQuARC won't have access to download and validate it in that case. Thus, there needs to be a way to validate those metadata if the user is authorized.
Details
This issue involves addition of support for headers/token in pyQuARC so it can pass it through in the request to the CMR API. The task will probably involve the following:
pyQuARC.ARC.validate()
os.environ.get("TOKEN")
Acceptance Criteria