Jump to content
PDS Geosciences Node Community

Holger Isenberg

Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Location
    California

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Holger Isenberg's Achievements

  1. Thanks for following up! I see, the SIS document uses the same language. On https://en.wikipedia.org/wiki/Companding the word is explained and according to that, 12 to 8 conversion is only the compression part while 8 to 12 is the expanding part. Here the correct link: https://areo.info/mars20 Sol 46 there is especially nice.
  2. That's great news, thanks! Works fine also for PNG 16 bit output I see: gdal_translate -ot UInt16 -of PNG SOME_EDR.xml SOME_EDR.png The resulting linear PNG and TIFF from EDR.imgs have intensity values 0 - 2033 which matches the tabulated 12/8 bit LUT for Mastcam-Z. That means the output is not stretched during conversion, which is best for correct calibration. Installation on current macOS was also simple: brew install gdal I see that it is also listed on https://pds.nasa.gov/tools/tool-registry/ when selecting transform / pds4, but I missed it due to the highly encoded description there as "translator library for raster and vector geospatial data formats" which didn't looked like some simple to use command line tool.
  3. I'm searching for software to convert PDS4 .xml/.img from of the Mars 2020 cameras to 16 bit/channel PNG, TIFF or other lossless formatted files. So far couldn't find any which runs on current macOS: NASAView https://pds.nasa.gov/tools/about/pds3-tools/nasa-view.shtml is not available for current macOS, the Java-based transform only writes 8 bit (https://github.com/NASA-PDS/transform/issues/15), the Python PDS4viewer https://pypi.org/project/pds4-tools/ only writes 8bit as well and my years old PDS plugin for GIMP doesn't work on recent versions. The APIs used by transform and pds4-tools are most likely supporting 16 bit already, but before spending time to write my own software around those I like to ask here if something is available.
  4. For improving the color calibration on my automated site https://areo.info/mar20 I was looking into Perseverance Rover Mastcam-Z raw PDS images. On https://an.rsl.wustl.edu/help/Content/About%20the%20data/Data%20products/List%20of%20data%20product%20types%20by%20instrument.htm#M20 I read about the available raw image format for Mar 2020: ECM: Original Image Product, Possibly Companded (8->12bit) EDR: Decompanded Image Product That's misleading as the ECM file, 8 bit image data, contains the data as received on Earth, which means only the sender-side of the companding process was applied, one of the 32 available 12 to 8 bit LUTs. The EDR file contains the fully companded data, that means 12 to 8 bit LUT conversion as received on Earth and then the correct one of the 32 LUTs reverse applied to receive 12 bit data. That 12 bit data is then apparently linearly stretched to 16 bit, but I'm not sure yet due to the lack of a PDS4 converter tool being able to write 16 bit images on macOS. My suggestion to avoid confusion here to change the page above as follows: ECM: Data product as received on Earth with only the sender-side companding applied (12 to 8 bit) EDR: Data product with linear camera sensor data with the full companding applied (12 to 8 bit on the spacecraft and after reception on Earth 8 to 12 bit) And depending if the 12 bit data is scaled to 16 bit that additional info as well.
×
×
  • Create New...