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

Note for ENVI users of map-projected data: Some Geosciences Node hosted map-projected data sets (.IMG files) are not read by ENVI as projected data sets. Using the Geospatial Data Abstraction Library (GDAL) gdal_translate command, users can easily convert most of these data products into GeoTIFF or ENVI file formats which are read by ENVI as projected data.

GDAL packages for various computer systems can be found here: https://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries. The Windows package used in this example is the OSGEO4W 64-bit version. A MacOS X build is available, as well.

  • Download and install a GDAL package that has gdal_translate.exe.
  • gdal_translate.exe runs from the command line. Make the folder that contains gdal_translate.exe your current directory
    • To do this, type "cd path" without the quotes into the command line, where "path" is the full path to the folder that contains gdal_translate.exe.
  • gdal_translate.exe is executed with the following syntax:
    • gdal_translate –of outputtype inputfilepath outputfilepath
    • "outputtype" is GTiff for a GeoTiff (.tif) and ENVI for an ENVI file (.dat)
    • Both file paths are the full path to the file.
    • In the case of a file with a detached PDS label, the "inputfilepath" points to the label, not the data file.
  • Open the file as normal in ENVI.

Example using OSGeo4W 64-bit (Windows):

C:\>cd OSGeo4W64\bin

C:\OSGeo4W64\bin>gdal_translate -of GTiff C:\hrsc\h2064_0000_dt4.img C:\hrsc\h2064_0000_dt4.tif

Example using GDAL 2.1 Complete (MacOS X):

:/ cd Library/Frameworks/GDAL.framework/Programs
:Programs ./gdal_translate -of ENVI /Desktop/hrsc/h2064_0000_dt4.img /Desktop/hrsc/h2064_0000_dt4.dat

Examples of data sets that benefit from the GDAL translate command:

  • MRO - HiRISE DTM
  • Mars Express - all HRSC, OMEGA DDRGM
  • Odyssey - THEMIS IRGEO2, VGEO1, VGEO2
  • MGS - MOLA MEGDR, TES TIMAP

Additional instructions for specific data sets:

  • Mars Odyssey THEMIS Visible map-projected .CUB files (VGEO1 and VGEO2) have detached PDS labels, but the map-projection data is in the .CUB file, so the "inputfilepath" should be the data file itself.
  • Mars Odyssey THEMIS Infrared map-projected .CUB.gz files (IRGEO2) need to be un-zipped before using gdal_translate. These data are similar to the visible data files in "inputfilepath" syntax (.CUB, not .LBL).

More details about the gdal_translate command can be found at http://www.gdal.org/gdal_translate.html.

  • 1 year later...

Hello, I downloaded IRBTR dataset of THEMIS instrument which come up with .QUB files,

Is GDAL package helpful to convert .QUB file into .IMG?

Thanking you.

Sincerely,

Raj Patel

 

  • Author

Hi Raj Patel,

Thank you for contacting us about your question. 

First, I confirmed there are no .QUB files in the THEMIS IRBTR (Infrared Brightness Temperature Record) data set. 

Newer versions of GDAL support the conversion of a .QUB file type into GeoTiff (.tif).

Here is an example of the command:

Gdal_translate -of GTiff D:\test\data\I00818001RDR.QUB D:\test\data\I00818001RDR.tif

The first link on the following FAQ describes the tools ASU's Mars Space Flight Facility recommends for opening THEMIS images.
http://viewer.mars.asu.edu/faq#t6n18

Let me know if you have further questions.

Best wishes,
Dan

 

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.