I get the following message from gdal_translate (FWTools-2.0.4) when reading GeoTIFFs created with IDL/ENVI.
TIFFFetchNormalTag: Warning, ASCII value for tag "GeoASCIIParams" does not end in null byte.
The input file (GTiff) is a Mars global map. The resulting output (JP2KAK) when inspected with gdalinfo defaults to WGS84. This may or may not be related to the above error message.
gdalinfo and listgeo show the correct radius for the input GTiff:
SPHEROID["unnamed",3396000,0]],
On the output JP2, gdalinfo shows:
SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],
Sample original TIFF attached.
Command line for gdal_translate:
gdal_translate -of JP2KAK -co "QUALITY=50" ~/T1865_MRRIF_70N185_0256_1.tif ~/T1865_MRRIF_70N185_0256_1.jp2