Jump to content
PDS Geosciences Node Community

Map Projection for ENVI Users

Dan Scholes

Recommended Posts

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:

  • Mars Express - all HRSC, OMEGA DDRGM
  • Odyssey - THEMIS IRGEO2, VGEO1, VGEO2

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.

Link to comment
Share on other sites

  • 1 year later...

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.

Let me know if you have further questions.

Best wishes,


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...