#!/usr/local/bin/zsh
#
# This file runs the test_npb.conf script with npb and the 
# attributes that are needed.

export PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/<path_to_cr>/cr-1.2/bin/Linux:/scrtch/<username>/
export LD_LIBRARY_PATH=/<path_to_cr>/cr-1.2/lib/Linux
export DISPLAY=:0

/usr/local/bin/vidwal
cd /<path_to_cr>/cr-1.2/mothership/configs

# Movie file.  Need 7 input parameters.
# Runs in Distributed mode (-D).  Be sure to run in Write mode first.
# -X size of frames (-X WxH)
# -r frame rate limiter (-r fps)
if [[ $# -eq 7 ]]
then
python2.2 test_npb.conf "/<path_to_npb>/npb -D -X $2 -r $3 /scrtch/<username>/$1/$4 $5 $6 $7"
fi

# Image file.  Need only 1 input parameter.
# Runs with Pan and Zoom (-P) and Centered (-C)
# The parameter needs to be aboslute path to image
if [[ $# -eq 1 ]]
then
python2.2 test_npb.conf "/<path_to_npb>/npb -C -P $1"
fi

exit
