Is there a way to get back the updated hash for any given file in the PDS? #258
-
Is there a plan for a "service" from the PDS to deliver updated hash registries for any given file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is already possible through the PDS Search API for "most" PDS4 data (working on loading all...):
or here is how you can request just the checksums:
More info here: https://nasa-pds.github.io/pds-api/guides/search/endpoints.html if there are specific data sets you think are missing or you need for your efforts, let us know we will prioritize those ASAP. Python API here: https://nasa-pds.github.io/pds-api-client/ the API returns only the latest version by default. for past versions: https://pds.nasa.gov/api/search/1/products/{lidvid}/all to check if a newer version of a product exists, you can query by LID, and check the version_id or creation_date_time. for example, https://pds.nasa.gov/api/search/1/products/urn:nasa:pds:insight.spice:spice_kernels, will return the latest version but https://pds.nasa.gov/api/search/1/products/urn:nasa:pds:insight.spice:spice_kernels/all returns all 16 versions so you can cache the version_id or creation_date_time that comes back from https://pds.nasa.gov/api/search/1/products/urn:nasa:pds:insight.spice:spice_kernels and ping that endpoint regularly to determine if it has changed:
if you want to actually track down the files on the file system, a couple more lines of code and you can figure that out:
|
Beta Was this translation helpful? Give feedback.
This is already possible through the PDS Search API for "most" PDS4 data (working on loading all...):
or here is how you can request just the checksums: