Skip to content

Is there a way to get back the updated hash for any given file in the PDS? #258

Answered by pds-ops
jordanpadams asked this question in Q&A
Discussion options

You must be logged in to vote

This is already possible through the PDS Search API for "most" PDS4 data (working on loading all...):

$ curl --get 'https://pds.nasa.gov/api/search/1/products/urn:nasa:pds:insight_rad:data_raw:hp3_rad_raw_00004_20181130_085325' | json_pp

...
{
   "lidvid" : "urn:nasa:pds:insight_rad:data_raw:hp3_rad_raw_00004_20181130_085325::3.1",
...
      "ops:Label_File_Info.ops:md5_checksum" : [
         "985cc9d4e731e5e6e3b22e64b0f62bdf"
      ],
...
      "ops:Data_File_Info.ops:md5_checksum" : [
         "9be7810ae4f744af51eb6e6d6755e11a"
      ],
...
}

or here is how you can request just the checksums:

$ curl --get 'https://pds.nasa.gov/api/search/1/products/urn:nasa:pds:insight_rad:data_raw:hp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pds-ops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants