=============

LROC

wget <http://lroc.sese.asu.edu/data/LRO-L-LROC-2-EDR-V1.0/LROLRC_0005/DATA/SCI/2010267/NAC/M139939938LE.IMG>
wget <http://lroc.sese.asu.edu/data/LRO-L-LROC-2-EDR-V1.0/LROLRC_0005/DATA/SCI/2010267/NAC/M139946735RE.IMG>
wget <http://lroc.sese.asu.edu/data/LRO-L-LROC-2-EDR-V1.0/LROLRC_0009/DATA/SCI/2011284/NAC/M173004270LE.IMG>
wget <http://lroc.sese.asu.edu/data/LRO-L-LROC-2-EDR-V1.0/LROLRC_0002/DATA/MAP/2010062/NAC/M122270273LE.IMG>

ls -1 *.IMG | cut -d"." -f1 >> names.lis
lronac2isis from=\\$1.IMG      to=\\$1.lev0.cub -batch=names.lis
spiceinit   from=\\$1.lev0.cub web=yes         -batch=names.lis
lronaccal   from=\\$1.lev0.cub to=\\$1.cal.cub  -batch=names.lis
lronacecho  from=\\$1.cal.cub  to=\\$1.lev1.cub -batch=names.lis
parallel_stereo M139939938LE.lev1.cub M139946735RE.lev1.cub --left-image-crop-win 0 7998 2728 2696 --right-image-crop-win 0 9377 2733 2505 stereo_solution/run -s stereo.nonmap
point2dem -r moon --stereographic --proj-lon 0 --proj-lat -90 -s stereo.nonmap stereo_solution/run-PC.tif
gdal_translate -projwin -15471.9 150986 -14986.7 150549 stereo_solution/run-DEM.tif stereo_solution/run-crop-DEM.tif
hillshade --azimuth 300 --elevation 20 stereo_solution/run-crop-DEM.tif -o stereo_solution/run-crop-hill.tif
// i had to run this line to fill holes in the DEM before sfs function would work:
// dem_mosaic stereo_solution/run-crop-DEM.tif --hole-fill-length=5 -o stereo_solution/run-crop-DEM-filled 
sfs -i stereo_solution/run-crop-DEM.tif M139939938LE.lev1.cub -o sfs_ref1/run --reflectance-type 1 --smoothness-weight 0.08 --initial-dem-constraint-weight 0.0001 --max-iterations 10 --use-approx-camera-models --crop-input-images
hillshade --azimuth 300 --elevation 20 sfs_ref1/run-DEM-final.tif -o sfs_ref1/run-DEM-hill.tif
mapproject --tr 1 stereo_solution/run-crop-DEM.tif M139939938LE.lev1.cub M139939938LE_map.tif --tile-size 128
geodiff --absolute sfs_ref1/run-DEM-final.tif stereo_solution/run-crop-DEM.tif
colormap --min 0 --max 2 --colormap-style binary-red-blue run-DEM-final__run-crop-DEM-diff.tif

===========

Enceladus

wget -nd <http://pdsimage.wr.usgs.gov/Missions/Cassini/ISS/coiss_2100/data/1829225263_1829279478/N1829241404_1.IMG>
wget -nd <http://pdsimage.wr.usgs.gov/Missions/Cassini/ISS/coiss_2100/data/1829225263_1829279478/N1829241404_1.LBL>
wget -nd <http://pdsimage.wr.usgs.gov/Missions/Cassini/ISS/coiss_2100/data/1829225263_1829279478/N1829240922_1.IMG>
wget -nd <http://pdsimage.wr.usgs.gov/Missions/Cassini/ISS/coiss_2100/data/1829225263_1829279478/N1829240922_1.LBL>

ciss2isis from=N1829241404_1.LBL to=N1829241404_1.lev0.cub
ciss2isis from=N1829240922_1.LBL to=N1829240922_1.lev0.cub
spiceinit from=N1829241404_1.lev0.cub web=yes
spiceinit from=N1829240922_1.lev0.cub web=yes
cisscal from=N1829241404_1.lev0.cub to=N1829241404_1.lev1.cub
cisscal from=N1829240922_1.lev0.cub to=N1829240922_1.lev1.cub
parallel_stereo N1829240922_1.lev1.cub N1829241404_1.lev1.cub stereo_only/stereo_only -s stereo.nonmap
point2dem --tr 100.0 --sinusoidal --proj-lon 25 --proj-lat 0 stereo_only/stereo_only-PC.tif --orthoimage stereo_only/stereo_only-L.tif
hillshade --azimuth 300 --elevation 20 stereo_only/stereo_only-DEM.tif -o stereo_only/stereo_only-hill.tif

==========

CTX

wget ... P02_001981_1823_XI_02N356W.IMG 
wget ... P03_002258_1817_XI_01N356W.IMG
mroctx2isis from=P02_001981_1823_XI_02N356W.IMG to=P02_001981_1823_XI_02N356W.lev0.cub
mroctx2isis from=P03_002258_1817_XI_01N356W.IMG to=P03_002258_1817_XI_01N356W.lev0.cub
spiceinit from=P02_001981_1823_XI_02N356W.lev0.cub web=yes
spiceinit from=P03_002258_1817_XI_01N356W.lev0.cub web=yes
ctxcal from=P02_001981_1823_XI_02N356W.lev0.cub to=P02_001981_1823_XI_02N356W.cal.cub
ctxcal from=P03_002258_1817_XI_01N356W.lev0.cub to=P03_002258_1817_XI_01N356W.cal.cub
ctxevenodd from=P02_001981_1823_XI_02N356W.cal.cub to=P02_001981_1823_XI_02N356W.lev1.cub
ctxevenodd from=P03_002258_1817_XI_01N356W.cal.cub to=P03_002258_1817_XI_01N356W.lev1.cub
parallel_stereo P02_001981_1823_XI_02N356W.lev1.cub P03_002258_1817_XI_01N356W.lev1.cub --left-image-crop-win 1614 13996 1500 1500 --right-image-crop-win 1650 12694 1500 1500 stereo_only/stereo_only -s stereo.nonmap
point2dem --tr 6.0 -r mars --sinusoidal --proj-lon 0 --proj-lat 0 stereo_only/stereo_only-PC.tif --orthoimage stereo_only/stereo_only-L.tif
hillshade --azimuth 300 --elevation 20 stereo_only/stereo_only-DEM.tif -o stereo_only/stereo_only-hill.tif
gdal_translate -projwin 207756.000 132555.000 210756.000 129555.000 stereo_only/stereo_only-DEM.tif stereo_only/stereo_only-crop-DEM.tif
sfs -i stereo_only/stereo_only-crop-DEM.tif P02_001981_1823_XI_02N356W.lev1.cub -o stereo_sfs/stereo_sfs --reflectance-type 1 --smoothness-weight 0.08 --initial-dem-constraint-weight 0.0001 --max-iterations 10 --use-approx-camera-models --crop-input-images
hillshade --azimuth 300 --elevation 20 stereo_sfs/stereo_sfs-DEM-final.tif -o stereo_sfs/stereo_sfs-DEM-final-hill.tif

==========

CTX 2

wget [<http://pds-imaging.jpl.nasa.gov/data/mro/mars_reconnaissance_orbiter/ctx/mrox_2469/data/F21_044073_1653_XN_14S037W.IMG>](<http://pds-imaging.jpl.nasa.gov/data/mro/mars_reconnaissance_orbiter/ctx/mrox_2469/data/F21_044073_1653_XN_14S037W.IMG>)
wget [<http://pds-imaging.jpl.nasa.gov/data/mro/mars_reconnaissance_orbiter/ctx/mrox_2475/data/F22_044218_1653_XN_14S037W.IMG>](<http://pds-imaging.jpl.nasa.gov/data/mro/mars_reconnaissance_orbiter/ctx/mrox_2475/data/F22_044218_1653_XN_14S037W.IMG>)
mroctx2isis from=F21_044073_1653_XN_14S037W.IMG to=F21_044073_1653_XN_14S037W.lev0.cub
mroctx2isis from=F22_044218_1653_XN_14S037W.IMG to=F22_044218_1653_XN_14S037W.lev0.cub
spiceinit from=F21_044073_1653_XN_14S037W.lev0.cub web=yes
spiceinit from=F22_044218_1653_XN_14S037W.lev0.cub web=yes
ctxcal from=F21_044073_1653_XN_14S037W.lev0.cub to=F21_044073_1653_XN_14S037W.cal.cub
ctxcal from=F22_044218_1653_XN_14S037W.lev0.cub to=F22_044218_1653_XN_14S037W.cal.cub
ctxevenodd from=F21_044073_1653_XN_14S037W.cal.cub to=F21_044073_1653_XN_14S037W.lev1.cub
ctxevenodd from=F22_044218_1653_XN_14S037W.cal.cub to=F22_044218_1653_XN_14S037W.lev1.cub
parallel_stereo F21_044073_1653_XN_14S037W.lev1.cub F22_044218_1653_XN_14S037W.lev1.cub --left-image-crop-win 2264 6880 2000 2000 --right-image-crop-win 2411 7695 2000 2000 stereo_only/stereo_only -s stereo.nonmap
point2dem --tr 6.0 -r mars --sinusoidal --proj-lon 322 --proj-lat 0 stereo_only/stereo_only-PC.tif --orthoimage stereo_only/stereo_only-L.tif
hillshade --azimuth 300 --elevation 20 stereo_only/stereo_only-DEM.tif -o stereo_only/stereo_only-hill.tif