Getting started
Installation
Node.js 22 or later is required. In browsers, the ESM build works with any modern bundler. A UMD build is also available as pds2img/umd and exposes the global Pds2Img:
Get some data
Every PDS image product has a label that describes it and image data. You can download sample products from the PDS Imaging Node Atlas. The examples on this site use:
- PDS3: Voyager 1, Saturn encounter,
C3592903_RAW.LBL+C3592903_RAW.IMG(source) - PDS4: Mars 2020 Perseverance Front Hazcam,
FLG_1739_…_0A01I4J01.xml+.IMG(source)
Convert your first image
PDS3
PDS4
Node.js
You can also skip the code and use the command line tool:
Next steps
- In the browser: file inputs, directory pickers and downloads.
- In Node.js: buffers and batch conversion.
- API reference: every exported function and class.