#!/bin/sh  
# \
exec oagtclsh "$0" "$@"

#
# $Log: not supported by cvs2svn $
#

set auto_path [linsert $auto_path 0  /usr/local/oag/apps/lib/$env(HOST_ARCH)]
set auto_path [linsert $auto_path 0 /usr/local/oag/lib_patch/$env(HOST_ARCH)]
APSDebugPath

APSStandardSetup

set usage "usage: normalizeFlagData -input <filename> -output <filename>\nThe input is an SDDS file containing an sddscontour-style flag image."
set input ""
set output ""
set args $argv
if {[APSStrictParseArguments {input output}] || ![string length $input] || \
        ![string length $output]} {
    puts stderr $usage
    exit 1
}

if [catch {APSNormalizeSddscontourFlagImage \
    -input $input -output $output} result] {
    puts stderr "$result"
    exit 1
}
exit 0
