🛰️
PDS3 and PDS4
Parses detached and attached PDS3 labels (.LBL) and PDS4 XML labels with Array_2D_Image products.
Read PDS3 and PDS4 image products and export lossless 16-bit grayscale images, in the browser or in Node.js.


Parses detached and attached PDS3 labels (.LBL) and PDS4 XML labels with Array_2D_Image products.
Pixels are calibrated with the label's scaling and offset, then normalized to 16-bit grayscale PNG or TIFF.
Load from URLs, File objects, ArrayBuffers, Node.js Buffers or a directory picked with the File System Access API.
Convert a single product or a whole directory with the bundled pds2img CLI.
The PNG and TIFF encoders are written in TypeScript. xmldom is only loaded in environments without DOMParser.
Ships TypeScript declarations for every public function, class and label type.