Skip to content

Conversation

@bhawana11
Copy link
Collaborator

@bhawana11 bhawana11 commented Sep 30, 2025

This is a pull request for issue #341

Expected outcome:
The script lists all the missing schema field names found in the rules_mapping.json in the terminal itself.

Code Changes:
Added a python script in schemas which downloads the schema's from
Umm-c : https://git.earthdata.nasa.gov/projects/EMFD/repos/unified-metadata-model/browse/granule/v1.6.6/umm-g-json-schema.json
Umm-g: https://git.earthdata.nasa.gov/projects/EMFD/repos/unified-metadata-model/browse/collection/v1.18.4/umm-c-json-schema.json
echo-c : https://git.earthdata.nasa.gov/projects/EMFD/repos/echo-schemas/browse/schemas/10.0/Collection.xsd
echo-g: https://git.earthdata.nasa.gov/projects/EMFD/repos/echo-schemas/browse/schemas/10.0/Granule.xsd
dif-10: https://git.earthdata.nasa.gov/projects/EMFD/repos/dif-schemas/browse/10.x/dif_v10.2.xsd
The script then checks every segment in each mapping path and lists all missing schema field names found in rules_mapping.json.

To Reproduce:
Use this command in terminal : python rules_mapping_validation.py

@bhawana11 bhawana11 requested a review from lavanya3k September 30, 2025 15:02
@lavanya3k
Copy link
Collaborator

The above code changes have been tested, and the following results indicate missing or changed metadata elements in each schema. Based on the results, we will make changes to therules_mapping.json.

Schema - dif10 and umm-c
Screenshot 2025-10-01 at 12 59 14 PM

Schema - echo-c and echo-g
Screenshot 2025-10-01 at 12 59 25 PM

@lavanya3k
Copy link
Collaborator

lavanya3k commented Oct 1, 2025

For umm-c schema, the following metadata elements were revised in the wiki. Let me know the changes required.
@fb0023 - Can you comment on what changes are required for echo and dif10

PaleoTemporalCoverage/PaleoEndDate - Does it exists but is not relevant
PaleoTemporalCoverage/PaleoStartDate - Does it exist but is not relevant
Platform/Characteristics/DataType —> Platforms/Characteristics/DataType
Platform/Instrument/Characteristics/DataType → Platforms/Instruments/Characteristics/DataType
Platform/Instrument/ComposedOf/Characteristics/DataType → Platforms/Instruments/Characteristics/DataType
Platform/Instrument/ComposedOf/ShortName → Platforms/Instruments/ShortName
Platform/Instrument/NumberOfInstruments → Platforms/Instruments/NumberOfInstruments
RelatedUrl/GetService/DataType —> RelatedUrls/GetService/DataType SpatialRepresentationInfo/Horizontal_Resolution_Range —> SpatialExtent/HorizontalSpatialDomain/Geometry/BoundingRectangles/WestBoundingCoordinate
SpatialExtent/HorizontalSpatialDomain/Geometry/BoundingRectangles/NorthBoundingCoordinate
SpatialExtent/HorizontalSpatialDomain/Geometry/BoundingRectangles/EastBoundingCoordinate
SpatialExtent/HorizontalSpatialDomain/Geometry/BoundingRectangles/SouthBoundingCoordinate

SpatialRepresentationInfo/Vertical_Resolution_Range --> SpatialExtent/VerticalSpatialDomain/Value

@bhawana11
Copy link
Collaborator Author

These are the output after updating the automation script:

image image image image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants