Question #4902

Regarding Programmer Error

Added by nayama nayama over 1 year ago. Updated about 1 year ago.

Target version:
Software Version:
Test Reviewer:
Story points:


I'm working with THEMIS thermal data with 12 bands. As I tried to convert *.cub file into *.tif file, It shows an error such as "PROGRAMMER ERROR Array subscript [4] is out of array bounds for keyword [original ban]". There was no problem upto 3rd band, after that I was not able to convert it into *.tif. Can you please look from your end.


#1 Updated by Tammy Becker over 1 year ago

  • Status changed from New to Acknowledged

can you please supply your command including the application.

thank you.

#2 Updated by Trent Hare over 1 year ago

  • Priority changed from High to Normal

Yes listing your command will be helpful. There are a couple items here you might need to understand.

(1) the ISIS3 command isis2std can only output 8bit or 16bit Tiffs. I assume your THEMIS data might be 32bit floating point.
(2) isis2std can only output 1,3, or 4 band files. Thus you will not be able to export your 12 band image to a 12 band Tiff.
(3) isis2std can only write out a GIS worldfile. This only allows for minimal georeferencing for mapping applications. ISIS3 currently cannot write out fully formed GeoTiffs or other geospatial formats.

If this is your problem, there are other methods to use or convert your 12 band THEMIS data.
(1) Many GIS applications support ISIS3 cubes directly.
(2) To convert a multiple band ISIS2/3 cube (as either 8, 16, or 32bit) to a properly formed GeoTiff, you will need to use an application like gdal_translate. gdal_translate is a conversion utility released with GDAL binaries. see: GDAL binaries are fairly easy to come by and now are provided along with the AMES Stereo Pipeline (if you happen to have it installed) or you can build GDAL yourself.

example conversion from ISIS cub to GeoTiff:

gdal_translate in_12band.cub out_12band_geo.tif

(3) isis2raw might help you if you can deal with a raw binary stream.

#3 Updated by Tammy Becker over 1 year ago

  • Assignee set to Trent Hare

#4 Updated by Stuart Sides about 1 year ago

  • Status changed from Acknowledged to Closed

Closed inactivity

Also available in: Atom PDF