Skip to main content

HOWTO search the PDS for products

planetarypy can query NASA’s PDS Registry — a single search index over 80M+ products across all NASA missions plus the PDS4 holdings of ESA’s PSA — and download anything it finds. This is complementary to the catalog / indexes subsystems: it reaches products those can’t resolve (much of Cassini, Voyager, Magellan, …), straight from the authoritative registry.

Install

PDS registry search needs the optional [search] extra:

pip install "planetarypy[search]"
# in a conda environment, still take the client from PyPI:
pip install "pds.api-client>=1.7"

This installs NASA’s pds.api-client (the PDS Engineering Node’s REST client). It’s pure Python and works with any modern pandas/Python. Do not install it from conda-forge for now: that package is stuck at 1.6.1, whose urllib3 <2.1 pin downgrades urllib3 (and anything depending on it) in a current environment, and it does not meet planetarypy’s >=1.7 floor anyway (planetarypy#50).

Download

Fetch every file (data + label) for a product by LIDVID:

paths = planetarypy.fetch_pds_product(
    "urn:nasa:pds:cassini_iss_saturn:data_raw:1717602192n::1.0"
)

Files land under {storage_root}/pds_search/<lidvid>/. The downloaded products open directly with planetarypy.open().

From the command line

plp search products -q 'lid like "urn:nasa:pds:cassini_iss_saturn*"' -n 5
plp search get   urn:nasa:pds:cassini_iss_saturn:data_raw:1717602192n::1.0
plp search fetch urn:nasa:pds:cassini_iss_saturn:data_raw:1717602192n::1.0

# "what data is at this coordinate?" — spatial search by body + lon/lat
plp search at Mars 77.4 18.4 -r 0.5         # products within ±0.5° of Jezero
plp search at Mars 77.4 18.4 --count        # just the number

Scope and limits

Important

This searches the NASA PDS registry. It covers NASA-archived data — including PDS4 re-archives of Cassini, Voyager, Magellan, and instruments like Chandrayaan-1’s (NASA) M3 — and, since the registry started federating IPDA partner archives, the PDS4 holdings of ESA’s PSA: ExoMars TGO, BepiColombo and JUICE products carry urn:esa:psa: identifiers and their file URLs point at archives.esac.esa.int, so fetch_pds_product downloads them like any other hit. Filter with the ESA context LIDs, e.g. instrument_host="urn:esa:psa:context:instrument_host:spacecraft.tgo".

PSA’s PDS3-era missions (Mars Express, Venus Express, Rosetta, Giotto, Huygens) appear only as context products, not as data; for those use planetarypy.psa (HOWTO get data from the ESA PSA). The registry also does not cover other national archives: Chang’e (CNSA) and Chandrayaan-2/3 (ISRO) data live in their own archives. Those are exactly the products planetarypy’s catalog marks unfetchable.

Very large result sets are returned up to limit in a single request; automatic pagination over millions of hits is a planned follow-up.

The engine is NASA’s pds.api-client (the PDS Engineering Node’s generated REST client). planetarypy adds a thin query-builder and its own DataFrame assembly. We deliberately wrap the client directly rather than pds.peppi, which pins pandas~=2.2.3 and requires Python ≥3.12.