Jump to content
View in the app

A better way to browse. Learn more.

PDS Geosciences Node Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hello,

 

           I've been reading the other posts related to opening .img data and I was specifically interested in opening pancam EDR images in matlab .I was wondering if you knew of any method to do so or if you could point me towards any literature on such a subject.I've read the docs on the analyst notebook page titled Camera Experiment Data Record (EDR) and Reduced Data Record (RDR) Operations and

Science Data Products and the SCIENCE EXPERIMENT DATA RECORD (EDR) ARCHIVE VOLUME SOFTWARE INTERFACE SPECIFICATION (SIS) and have an idea of the structure of the .img files and the pds headers but i'm not too sure on how to access the binary image data.

 

Thank you very much!

In matlab, you may try the fseek and fread command to read the binary image data.

 

image size = rows * cols * bands; image_start_position = (image pointers records - 1) * RECORD_BYTES;

 

If you find the "SAMPLE_BITS = 16" in the image header,

the final pixel value = value from the high 8 bit * 256 + value from the low 8 bit;

 

Please shoot me a e-mail if you have more concerns.

 

Thanks,

 

June

Wang@wunder.wustl.edu

  • Author

Thank you very much,I'm looking into the commands you mentioned.

 

thanks again ,

 

Martin

  • 7 years later...

Hello,

I'm working with GDR IMG file types in MATLAB. Do you have more concrete examples of how to produce the final pixel value?

Thank you

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.