Skip to content

Instantly share code, notes, and snippets.

@Kelvinrr
Created January 25, 2021 22:42
Show Gist options
  • Select an option

  • Save Kelvinrr/bb69ac868a3b3bd58f7536ffdefbbfd5 to your computer and use it in GitHub Desktop.

Select an option

Save Kelvinrr/bb69ac868a3b3bd58f7536ffdefbbfd5 to your computer and use it in GitHub Desktop.
cd /work/users/cdundas/ChangeDetection/scratch/
export ISISROOT=/usgs/cpkgs/anaconda3_linux/envs/isis3.10.1/
export ISIS3DATA=/usgs/cpkgs/isis3/data/
hi2isis from=ESP_012024_1440_RED8_0.IMG to=ESP_012024_1440_RED8_0.tmp.cub
hi2isis from=ESP_012024_1440_RED8_1.IMG to=ESP_012024_1440_RED8_1.tmp.cub
hi2isis from=ESP_020661_1440_RED4_0.IMG to=ESP_020661_1440_RED4_0.tmp.cub
hi2isis from=ESP_020661_1440_RED4_1.IMG to=ESP_020661_1440_RED4_1.tmp.cub
spiceinit from=ESP_012024_1440_RED8_0.tmp.cub
spiceinit from=ESP_012024_1440_RED8_1.tmp.cub
spiceinit from=ESP_020661_1440_RED4_0.tmp.cub
spiceinit from=ESP_020661_1440_RED4_1.tmp.cub
hical from=ESP_012024_1440_RED8_0.tmp.cub to=ESP_012024_1440_RED8_0.cal.tmp.cub
hical from=ESP_012024_1440_RED8_1.tmp.cub to=ESP_012024_1440_RED8_1.cal.tmp.cub
hical from=ESP_020661_1440_RED4_0.tmp.cub to=ESP_020661_1440_RED4_0.cal.tmp.cub
hical from=ESP_020661_1440_RED4_1.tmp.cub to=ESP_020661_1440_RED4_1.cal.tmp.cub
histitch from1=ESP_012024_1440_RED8_0.cal.tmp.cub from2=ESP_012024_1440_RED8_1.cal.tmp.cub to=ESP_012024_1440_RED8.stitch.tmp.cub balance=true
histitch from1=ESP_020661_1440_RED4_0.cal.tmp.cub from2=ESP_020661_1440_RED4_1.cal.tmp.cub to=ESP_020661_1440_RED4.stitch.tmp.cub balance=true
cubenorm from=ESP_012024_1440_RED8.stitch.tmp.cub to=ESP_012024_1440_RED8.norm.cub
cubenorm from=ESP_020661_1440_RED4.stitch.tmp.cub to=ESP_020661_1440_RED4.norm.cub
crop from=ESP_012024_1440_RED8.norm.cub to=ESP_012024_1440_RED8.27250.29250.cub line=27250 nlines=2000
crop from=ESP_020661_1440_RED4.norm.cub to=ESP_020661_1440_RED4.34000.36000.cub line=34000 nlines=2000
rm -rf *.tmp.cub
# Careful with this line, but it's to remove the intermediate files.
cd ../autocnet/
conda activate autocnet
python setup.py install
acn_cd ../scratch/ESP_012024_1440_RED8.27250.29250.cub ../scratch/ESP_020661_1440_RED4.34000.36000.cub ../scratch/test3.tif --map /usgs/cpkgs/anaconda3_linux/envs/isis4.2.0-RC1/appdata/templates/maps/equirectangular.map -c autocnet/examples/Hirise/cd_config.yml -r -w -a okb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment