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

DIF 10: Issue with Bounding Coordinate Latitude/Longitude Logic Check #137

Closed spa0002 closed 2 years ago

spa0002 commented 3 years ago

Describe the bug The Project Date Logic Check for /DIF/Spatial_Coverage/Geometry/Bounding_Rectangle/Easternmost_Longitude (and other Bounding_Rectangle fields) is not working.

To Reproduce Steps to reproduce the behavior:

  1. In the fake dif10 metadata file, add coordinates that where values are not in the range of (-180 to 180) for longitude and (-90 to 90) for latitude. Also, can add coordinates where southernmost value is larger than the northernmost value and the westernmost value is larger than the easternmost value. (ex: ` 95
    <Northernmost_Latitude>-95</Northernmost_Latitude>
    <Westernmost_Longitude>185</Westernmost_Longitude>
    <Easternmost_Longitude>-185</Easternmost_Longitude>

    `

  2. Run python main.py --fake FAKE --format dif10

Expected behavior It should output an error for /DIF/Spatial_Coverage/Geometry/Bounding_Rectangle/Easternmost_Longitude (and other Bounding_Rectangle fields) since the coordinate values are not in the range of (-180 to 180) for longitude and (-90 to 90) for latitude

Outputs N/A

Additional context N/A