From d351e3b3313ee4207c27d5f36796e793393d46b3 Mon Sep 17 00:00:00 2001 From: Christian Beckmann <c.beckmann@donders.ru.nl> Date: Mon, 20 Sep 2004 15:31:20 +0000 Subject: [PATCH] new tool: avwedithd (avwhd -x; pico; avwcreatehd) --- Makefile | 2 +- fsledithd | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 fsledithd diff --git a/Makefile b/Makefile index 1c08b0d..d2fb088 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ XFILES = avwcpgeom avwmerge avwnvols avwsplit \ avwfill_8UI avwfill_8SI avwfill_16UI avwfill_16SI avwfill_32UI avwfill_32SI avwfill_32R avwfill_64R \ avwstats avwcomplex avwstats++ avwfft avwmeants avwcheck avwswapdim avwconv avwslice -SCRIPTS = avwval avwchpixdim avwanimate sliceanimate avwsize avwinfo +SCRIPTS = avwval avwchpixdim avwanimate sliceanimate avwsize avwinfo avwedithd RUNAVWS = avw2ascii avwmaths avwcc avwroi avwfill avwinterleave diff --git a/fsledithd b/fsledithd new file mode 100755 index 0000000..0709539 --- /dev/null +++ b/fsledithd @@ -0,0 +1,20 @@ +#!/bin/sh + +Usage() { + echo "" + echo "Usage: avwedithd <input>" + echo "" + exit +} + +[ "$1" = "" ] && Usage + +if [ _$FSLDIR = _ ] ; then + FSLDIR=/usr/local/fsl + export FSLDIR +fi + +tmpbase=`${FSLDIR}/bin/tmpnam`; +${FSLDIR}/bin/avwhd -x $1 > ${tmpbase} +pico ${tmpbase} +${FSLDIR}/bin/avwcreatehd ${tmpbase} $1 -- GitLab