NeoGeographyToolkit / StereoPipeline

The NASA Ames Stereo Pipeline is a suite of automated geodesy & stereogrammetry tools designed for processing planetary imagery captured from orbiting and landed robotic explorers on other planets.
Apache License 2.0
493 stars 173 forks source link

cam2rpc and various planets #261

Open oleg-alexandrov opened 5 years ago

oleg-alexandrov commented 5 years ago

The tool cam2rpc was tested only for Earth, Moon, and Mars. Apparently it does not work well for other bodies. The fix would likely entail have this tool save the current planet's datum to the RPC files when creating them and use that one during stereo. The problem is likely that stereo does not know on what planet the RPC were made. It does have a --datum flag, but there is no standard datum string for most bodies unlike for Mars, etc.

dpmayerUSGS commented 5 years ago

There are, in fact a growing number of standardized datum names for other bodies in the solar system. Take a look at any of the *.wkt files here: https://github.com/USGS-Astrogeology/GDAL_scripts/tree/master/OGC_IAU2000_WKT_v2

That entire repository is meant help provide planetary support for OGC-compliant web services, but the WKT representations can certainly be used for other purposes as well.

oleg-alexandrov commented 5 years ago

Thanks. Good to know. Yes, we should revisit this. Our tools could also be made to take a projwin string that would encode the datum semi-axes and some other info. This tool was meant more like an experiment, the ISIS cameras (and upcoming CSM model) should be good enough. Its only purpose is to export the camera model into a "standard" and simple camera model that is supported by third party tools.