cartrite wrote:
Quote:
A lot of the work I did on larger files was via scripts. This may be the reason I never had a problem. I think the qt libs are called when using the gui's? but not command line scripts?
Maybe?
cartrite
Steve,
Unfortunately this suspicion of yours is not right. At least not for my isis3 version 3.2.0.
Meanwhile I reproduced the error in
isis2std, trying to convert a 64k grayscale .cub (~8.5 GB!) to .png with the command line:
> isis2std from=moon_64k.cub to=test.png
**USER ERROR** Cube exceeds max size of 2GB. Qimage cannot support that much raw data. Your cube is 2.0 GB.The same error I get when I try to use the isis2std GUI.
Note that my cube size is 8.5 GB NOT 2 GB...
Given this fact, I looked at the isis3 forum where the same problem was discussed. Here is the authoritative answer by
isis support team member ssidesssides wrote:
ISIS is using the Qt interface for the output of standard file formats (png, jpeg, tiff, ...). Qt is limited to 2GB files. With a 9GB input, it is very possible that no amount of compression will allow you to save the file in less than 2GB. We are planning to find a better answer than using Qt for this, but it is not on the schedule yet.
One might think there was an easy workaround in this case:
gdal_translate
BUT under Linux (at least)
> gdal_translate -of png moon_64k.cub moon_64k.png
GDALOpen failed - 4
`moon_64k.cub' not recognised as a supported file format.
This contradicts the statement from
> gdal_translate --formats
inquiry that the isis3 .cub format is supported in read-only mode (not in creation mode, though!). It might be that Windows works, since the GDAL version there is a bit more recent.
Sigh...
Sure enough, there is "light at the end of the tunnel"
Unlike
isis2std,
isis2raw works (being not based on a Qt lib)
This matches also your earlier suspicion:
> isis2raw from=moon_64k.cub to=test.bin bittype=8bit
Since my F-TexTools also work for "arbitrarily" large files, one uses my
bin2png command subsequently, to achieve the PNG conversion for monster-sized ISIS3 cube files.
Fridger