Jump to content
PDS Geosciences Node Community
Dan Scholes

Map Projection for ENVI Users

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:

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

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...