Skip to content

Searching for PDS Data with Legacy Registry

Jordan Padams edited this page Jun 14, 2022 · 10 revisions

Using Keyword Search

Located at https://pds.nasa.gov/datasearch/keyword-search/, the Keyword Search provides a web access point for browsing through PDS data.

Note: When browsing for data in keyword search, you can always copy over the URL query from to the Web API to access the JSON input. For example:

https://pds.nasa.gov/datasearch/keyword-search/search.jsp?q=target%3Amars&fq=facet_type%3A%221%2Cinvestigation%22&f.facet_type.facet.prefix=2%2Cinvestigation%2C

becomes

https://pds.nasa.gov/services/search/search?wt=json&q=target%3Amars&fq=facet_type%3A%221%2Cinvestigation%22&f.facet_type.facet.prefix=2%2Cinvestigation%2C

Using Web API

Find all targets:

curl --location --request GET https://pds.nasa.gov/services/search/search?wt=json&q=product_class:Product_Context and data_class:Target 

Find all missions / investigations:

curl --location --request GET https://pds.nasa.gov/services/search/search?wt=json&q=product_class:Product_Context and data_class:Investigation

Find all instrument hosts (e.g. spacecraft)

curl --location --request GET https://pds.nasa.gov/services/search/search?wt=json&q=product_class:Product_Context and data_class:Instrument_Host

From this you can then see from an individual product, some of the data associated with a mission, instrument host, instrument, etc.

Find all Collections

curl --location --request GET "https://pds.nasa.gov/services/search/search?wt=json&q=product_class:Product_Collection"

Find all Bundles

curl --location --request GET "https://pds.nasa.gov/services/search/search?wt=json&q=product_class:Product_Bundle"

Find all PDS3 Data Sets

curl --location --request GET "https://pds.nasa.gov/services/search/search?wt=json&q=product_class:Product_Data_Set_PDS3"

Find all "data sets" (e.g. Collections, PDS3 Data Sets)

curl --location --request GET "https://pds.nasa.gov/services/search/search?wt=json&q=product_class:Product_Collection%20or%20product_class:Product_Bundle%20or%20product_class:Product_Data_Set_PDS3"

Simple Product Search

From the OSIRIS-REX mission metadata:

https://pds.nasa.gov/services/search/search?wt=json&identifier=urn:nasa:pds:orex.mission

You can see what instruments belong to it:

instrument_ref: [
"urn:nasa:pds:context:instrument:tagcams.orex::1.0",
"urn:nasa:pds:context:instrument:ocams.orex::1.0",
"urn:nasa:pds:context:instrument:ola.orex::1.0",
"urn:nasa:pds:context:instrument:otes.orex::1.0",
"urn:nasa:pds:context:instrument:rexis.orex::1.0",
"urn:nasa:pds:context:instrument:ovirs.orex::1.0"
],

And the instrument host(s) (spacecraft) for the mission:

instrument_host_ref: [
"urn:nasa:pds:context:instrument_host:spacecraft.orex::1.1"
],

And it's targets:

target_ref: [
"urn:nasa:pds:context:target:asteroid.101955_bennu::1.1"
],

You can then look at the metadata for that instrument host (sometimes where you need to go to track down targets) or instrument or target:

instrument host example: https://pds.nasa.gov/services/search/search?wt=json&identifier=urn:nasa:pds:context:instrument_host:spacecraft.orex
instrument example: https://pds.nasa.gov/services/search/search?wt=json&identifier=urn:nasa:pds:context:instrument:ovirs.orex
target example: https://pds.nasa.gov/services/search/search?wt=json&identifier=urn:nasa:pds:context:target:asteroid.101955_bennu 

Another good example of recently curated data is Cassini:

https://pds.nasa.gov/services/search/search?wt=json&identifier=urn:nasa:pds:context:investigation:mission.cassini-huygens

More Complicated Example (Bad Data)

TBD

System Quirks

The metadata for these context products can vary largely, here are a few tips: