#!/bin/csh
#  script to call  $aprgdir/adiajobs/fit-dnl.x
if($#argv == 0) then
	$aprgdir/adiajobs/fit-dnl.x
else if($#argv < 4) then
	echo "Usage: fit-dnl <input file> <order 1> <order 2> <ref. order>"
	echo "<input file>: Use output file from set-dnl.d"
	echo "<order 1>, <order 2>: range in order used in the fit"
	echo "<ref. order>: reference order used in the fit"
	echo "Note: Additional output on files ttt.fit-dnl," \
		    "ttt.fit-dnl1"
	exit(1)
else 
	(echo $1; echo $2, $3, $4) | $aprgdir/adiajobs/fit-dnl.x
endif
