Project

General

Profile

Question #4902

Regarding Programmer Error

Added by nayama nayama 6 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Applications
Target version:
-
Software Version:
Test Reviewer:
Story points:
8

Description

Hi,
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.

History

#1 Updated by Tammy Becker 5 months ago

  • Status changed from New to Acknowledged

can you please supply your command including the application.

thank you.

#2 Updated by Trent Hare 5 months ago

  • Priority changed from High to Normal

nayama,
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: http://planetarygis.blogspot.com/2014/12/what-is-isis-3-cube-format.html 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 5 months ago

  • Assignee set to Trent Hare

#4 Updated by Stuart Sides about 1 month ago

  • Status changed from Acknowledged to Closed

Closed inactivity

Also available in: Atom PDF