#!/bin/tcsh

set pref = c25

# display and comapre datasets with row- and column-major data orders
gifti_tool -show_gifti -infile small.col.maj.3.gii >& $pref.out.show.cm.txt
gifti_tool -show_gifti -infile small.row.maj.3.gii >& $pref.out.show.rm.txt
echo ===== checking diffs =====
diff $pref.out.show.[cr]m.txt
echo ""

gifti_tool -show_gifti -perm_by_iord 1 -infile small.col.maj.3.gii \
   >& $pref.out.show.crm.txt
echo ===== checking diffs =====
diff $pref.out.show.rm.txt $pref.out.show.crm.txt
echo ""


# compare the 3x10 over DA versions
gifti_tool -show_gifti -perm_by_iord 1 -infile small.3.10.cm.gii \
   >& $pref.out.show.3.cm.txt
gifti_tool -show_gifti -perm_by_iord 1 -infile small.3.10.rm.gii \
   >& $pref.out.show.3.rm.txt
echo ===== checking diffs =====
diff $pref.out.show.3.cm.txt $pref.out.show.3.rm.txt
echo ""

3dinfo small.3.10.cm.gii > $pref.out.info.3.cm.txt
3dinfo small.3.10.rm.gii > $pref.out.info.3.rm.txt
diff $pref.out.info.3.[cr]m.txt

