GeoTIFF to ISIS3 cub

111 views
Skip to first unread message

Stepan Tulyakov

unread,
Feb 19, 2019, 10:20:40 AM2/19/19
to Ames Stereo Pipeline Support
Hello,

It seems that APS tools work fine with ISIS3 cub as an input, however they always produce GeoTIFF DTM as an output.
Is there a way to convert GeoTIFF DTM back to ISIS3 cub format?

Best regards, Stepan 

Ross Beyer

unread,
Feb 19, 2019, 10:37:00 AM2/19/19
to Stepan Tulyakov, Ames Stereo Pipeline Support
Stepan,

Right, the default output of our point2dem program writes out GeoTIFFs, but you can use the --output-filetype argument to specify any filetype that the GDAL library supports.

Sadly, I don’t think that ISIS cubes are one of those formats.

You can try using the ISIS std2isis program. That will work, but it just brings the pixel information into ISIS. The std2isis program knows how to read TIFFs, not GeoTIFFs, so it ignores the GeoTIFF headers, meaning that you’ll get the pixels, but not the map projection.

There are ways to manually attach mapping parameters to such a cube file, but that will require a reading of the ISIS manual.


This is a pretty rare occurrence (as far as I know), needing to pull an ASP terrain model back into ISIS. May I ask why? Maybe there’s a better way to accomplish your larger goal?


> On Feb 19, 2019, at 7:20 AM, Stepan Tulyakov <tulyako...@gmail.com> wrote:
>
> Hello,
>
> It seems that ASP tools work fine with ISIS3 cub as an input, however they always produce GeoTIFF DTM as an output.
> Is there a way to convert GeoTIFF DTM back to ISIS3 cub format?
>
> Best regards, Stepan

Ross

http://RossBeyer.net/science/

Ryan Watkins

unread,
Dec 7, 2020, 6:01:38 PM12/7/20
to Ames Stereo Pipeline Support
I just found this thread and am trying to do the same thing. I have another script that produces photometric parameter maps using DTMs, but it reads them as cubes. Has anyone figured out a way to convert the ASP .tifs to .cub?

Beyer, Ross A. (ARC-SST)[SETI INSTITUTE]

unread,
Dec 7, 2020, 6:20:39 PM12/7/20
to Ryan Watkins, Ames Stereo Pipeline Support
Ryan,

So GDAL might have progressed in the almost two years from that e-mail. It appears that the GDAL “ISIS3” driver (https://gdal.org/drivers/raster/isis3.html) might actually support creation of an ISIS cube file now. So you might be able to gdal_translate from the GeoTIFF that ASP’s point2dem creates to a .cub file, but I haven’t tried it.

I’m actually surprised that you have software that requires ISIS cube files as input. It might be easier to adapt that program from needing ISIS cubes to being able to read GeoTIFFs if conversion via the latest version of GDAL doesn’t work.
> --
> You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/0b6a3fcc-67cc-4ee8-8cf0-80054fce4766n%40googlegroups.com.

Ross

http://RossBeyer.net/science/

David Mayer

unread,
Dec 7, 2020, 6:51:16 PM12/7/20
to Ames Stereo Pipeline Support
Just to tag off what Ross said: Yes, you can definitely use GDAL to convert GeoTIFFs into ISIS cubes. This has actually been possible for a few years now. The ISIS cube format is just weird enough that you will probably want to specify some extra creation options in the call to gdal_translate in order to make sure the projection information is translated correctly. 

See Trent Hare’s GDAL Conversion Tips on Astrodiscuss: https://astrodiscuss.usgs.gov/t/gdal-conversion-tips/101

Cheers,
David
> To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline-support+unsub...@googlegroups.com.

> To view this discussion on the web visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/0b6a3fcc-67cc-4ee8-8cf0-80054fce4766n%40googlegroups.com.

                                             Ross

                                http://RossBeyer.net/science/

--
You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline-support+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/AB35DCA1-A40F-40C6-8FA6-86288C356869%40nasa.gov.

Ryan Watkins

unread,
Dec 7, 2020, 7:10:47 PM12/7/20
to David Mayer, Ames Stereo Pipeline Support
perfect, thanks! I have it all working beautifully now, I appreciate the quick feedback!

> To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.

> To view this discussion on the web visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/0b6a3fcc-67cc-4ee8-8cf0-80054fce4766n%40googlegroups.com.

                                             Ross

                                http://RossBeyer.net/science/

--
You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ames-stereo-pipeline-support/z9yPpzYOvo4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ames-stereo-pipeline...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/CACteeTuO-Cxna%3D_Sbsk1-GUg6iH-kfP%2BgH9chLNwRGD5qXkNyA%40mail.gmail.com.


--
Ryan N. Watkins (Clegg), Ph.D.
Research Scientist, Planetary Science Institute


Reply all
Reply to author
Forward
0 new messages