echo "*******************************************************"
echo "*                                                     *"
echo "* DISCLAIMER: This program, is provided AS IS without *"
echo "* warranty of any kind. We make no warranties, express*"
echo "* or implied, that this program, procedures and data  *"
echo "* are free of error, or are consistent with any parti-*"
echo "* cular standard of merchantability, or that they     *"
echo "* will meet your requirements for any particular      *"
echo "* application.                                        *"
echo "* IT SHOULD NOT BE RELIED ON FOR SOLVING A PROBLEM    *"
echo "* WHOSE INCORRECT SOLUTION COULD RESULT IN INJURY TO  *"
echo "* A PERSON OR LOSS OF PROPERTY.                       *"
echo "*                                                     *"
echo "* If you do use this program, it is at your own risk. *"
echo "* The Department of Materials Science and Metallurgy, *"
echo "* University of Cambridge, and the National Physical  *"
echo "* Laboratory disclaim all liability for direct, inci- *"
echo "* dental or consequential damages resulting from your *"
echo "* use of this program.                                *"
echo "*                                                     *"
echo "*******************************************************"
echo ""
echo "Agree ? (y/*)"
read answer

correct='y'

if test $answer != $correct
    then
	exit
fi

#To normalise the data
wc test.dat > wc.out
read line total dummy < wc.out
rm wc.out

no_of_lines=$line
let no_of_columns=$total/$line

cmd='echo $line > no_of_rows.dat'
eval $cmd

echo ""
echo "I found $no_of_lines lines and $no_of_columns variables" > predict.log
echo ""

./.normalise $no_of_lines $no_of_columns >&-

# Count again in case the first line contained labels

wc norm_test.in > wc.out
read line total dummy < wc.out
rm wc.out
no_of_lines=$line
echo "Now $no_of_lines line in norm_test.in" >> predict.log

# This is to produce the required instruction file for generate44

./.generate_spec $no_of_columns $no_of_lines $no_of_lines 1 $no_of_lines spec.t1 norm_test.in  d/outran.x >&-

# The list of models making up the committee, you can edit that if you wish 
# to remove the contribution of some models (just place a # in front of the two 
# corresponding lines)
