Skip 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.

Convert .img images to gtiff by gdal

Featured Replies

Dear all - 

I understand the conversion and display of .img images has been a long discussed topic. I have visited various feeds/posts & tried searching online but to no avail. So I am hoping if someone can give me some pointers here. Thanks a lot ^^ 

I am working on converting a digital bouguer map on mars to tiff (https://pds-geosciences.wustl.edu/mro/mro-m-rss-5-sdp-v1/mrors_1xxx/data/rsdmap/ggmro_120_bouguer_90.lbl, with its .img file). I have tried to display the .img file with Nasaview/ImageJ etc but all rendered file type unsupported. Then I tried to translate the .lbl to .tif by gdal, but the output.tif is not displayable (file corrupted). I have tried with other dataset and it does seem to work fine (i.e. on LOLA DEM). I am not sure what went wrong. 

Thanks a lot if someone could help. Or I am just being exceptionally stupid here. 

Best wishes,

Eunis

 

 

  • 2 weeks later...

Hi, Sorry for the late reply. I just notice this post.

In your case, the output.tif from gdal_translate is not displayable. This is because in the attached *.lbl label, the definition of MAP_SCALE = "N/A". Gdal could not recognize the pixel size and failed in its conversion. You can change it to "MAP_SCALE = 3704.461337 <m/pixel>". The value was calculated based on the value of Mars RADIUS and MAP_RESOLUTION defined in the label file. Then gdal would do the correct translation for you after your change. The same method could be applied to other ggmro* labels without a definition of MAP_SCALE. Please let me know if you still have a problem Thanks,

June

Create an account or sign in to comment

Account

Navigation

Search

Search

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.