Mercurial > hg > minc-tools
changeset 726:a6256a2f72eb
Added check for failure to read minc file.
author | neelin <neelin> |
---|---|
date | Wed, 25 Jan 1995 08:04:41 +0000 |
parents | 8aa8af50c227 |
children | d6b721ce752a |
files | progs/mincheader/mincheader |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/progs/mincheader/mincheader +++ b/progs/mincheader/mincheader @@ -1,9 +1,12 @@ #! /bin/csh -f # Modifications: $Log: mincheader,v $ -# Modifications: Revision 2.1 1995-01-24 10:19:09 neelin -# Modifications: Added support for compressed files. +# Modifications: Revision 2.2 1995-01-25 08:04:41 neelin +# Modifications: Added check for failure to read minc file. # Modifications: +# Revision 2.1 95/01/24 10:19:09 neelin +# Added support for compressed files. +# # Revision 2.0 94/09/28 10:34:10 neelin # Release of minc version 0.2 # @@ -67,7 +70,9 @@ # "image", collapse multiple blanks to one, remove leading blanks, remove # trailing blanks, replace blanks with commas set vars = `mincinfo -varnames $dumpfile | sed -e 's/^image //g' -e 's/ image / /g' -e 's/ */ /g' -e 's/^ //' -e 's/ $//' -e 's/ /,/g'` - ncdump -v "$vars" $dumpfile + if ($vars != "") then + ncdump -v "$vars" $dumpfile + endif endif