Skip to content

A simple script written to validate the symmetric difference in content between two ESGF STAC endpoints.

Notifications You must be signed in to change notification settings

esgf2-us/esgf-validate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ESGF-Validate

A simple script written to validate the symmetric difference in content between two STAC endpoints. This can be run with:

poetry run python src/validate.py

By default (as a test) we are verifying the first 100 entries of https://api.stac.esgf-west.org/ but this can be changed with commandline options.

usage: validate.py [-h] [-e ENDPOINTS ENDPOINTS] [-l LIMIT]

options:
  -h, --help            show this help message and exit
  -e ENDPOINTS ENDPOINTS, --endpoints ENDPOINTS ENDPOINTS
  -l LIMIT, --limit LIMIT

The script will raise an error if differences are found and details will be logged in a file errors.log and take the form:

2024-12-04 09:22:42 differences found!
id=CMIP6.PAMIP.UCI.E3SM-1-0.futSST-pdSIC.r1i1p1f1.Amon.clt.gr.v20211020
values_changed:
  root['properties']['grid_label']:
    com_value: gn
    ref_value: gr

where the ref and com endpoints will be identified in the logfile.

About

A simple script written to validate the symmetric difference in content between two ESGF STAC endpoints.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages