Here is the MOSAICX Emission Wrapper.

Note that image info is read from meta files.

# Aug 5 2018 - John R. Weirich# Run e.rawMOSAICXjrw for all bigmaps in MosaicList# Requires lots of directory setup# Run from $dir/working/# Modified Nov 21 to work with RG2 and loop over images instead of over bigmaps# Usage : sh rawMOSAICX.sh <bigmap> <list of images in NEW_IMAGES>bigmap=$1Img=$2list=`cat $Img`echo "$bigmap"for i in $listdo RtStr=`echo "$i" | cut -c3-11` SUMFILE="NE$RtStr" echo $SUMFILE lastFive=`echo $SUMFILE | cut -c6-` echo $lastFive echo $SUMFILE > MOSAICX.TXT echo "END" >> MOSAICX.TXT echo $bigmap > tinJRW grep scale NEW_IMAGES/$i\.IMG-meta | cut -c11- >> tinJRW grep " Offset:" NEW_IMAGES/$i\.IMG-meta | cut -c12- >> tinJRW ../bin/e.rawMOSAICXjrw < tinJRW mv -f raw.txt rawE-$bigmap.txt ascii2isis from=rawE-$bigmap.txt to=rawE-$bigmap.cub samples=1415 lines=1415 mv -f rawE* ../img-$lastFive/# exitdone