Skip to content

MOSAICX Phase Wrapper

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

Here is the MOSAICX Phase Wrapper.

  • Note that image info is read from meta files.


bigmap=$1
Img=$2
list=`cat $Img`

echo "$bigmap"

for i in $list
do

 RtStr=`echo "$i" | cut -c3-11`
 SUMFILE="NP$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
  echo "working on $i"
  ../bin/e.rawMOSAICXjrw < tinJRW

  mv -f raw.txt rawP-$bigmap.txt
  ascii2isis from=rawP-$bigmap.txt to=rawP-$bigmap.cub samples=1415 lines=1415
  mv -f rawP* ../img-$lastFive/

done 

Clone this wiki locally