Skip to content

Incidence Wrapper

Eric E Palmer edited this page Oct 23, 2026 · 1 revision

Incidence Wrapper.


file=$1
list=`cat $file`

program="/Users/JW/X-files/source/NewInc.out"


objLat=7.013
objLon=300.802 #value in elong

bigmap="RG2ED1"

for i in $list
do
        echo "$bigmap" > tinJRW
        echo "1" >> tinJRW
        grep SubSolarLat ../img-$i/info.txt | cut -c34- >> tinJRW
        grep SubSolarLon ../img-$i/info.txt | cut -c34- >> tinJRW
        echo "$objLat" >> tinJRW
        echo "$objLon" >> tinJRW

        $program < tinJRW >> createInc.out


        mv -f $bigmap-i.txt createInc.out ../img-$i/

        ascii2isis FROM=../img-$i/$bigmap-i.txt TO=../img-$i/$bigmap-localI.cub samples=1415 lines=1415



done

Clone this wiki locally