root / bin / image2geometry / orient_sepals.sh @ 4
Historique | Voir | Annoter | Télécharger (591 octet)
1 |
#! /bin/bash |
---|---|
2 |
|
3 |
# Usage: |
4 |
# ------ |
5 |
# ./orient_sepals.sh directory filetype |
6 |
# filetype = '.tif' or '.inr.gz' |
7 |
|
8 |
|
9 |
indir=$1 |
10 |
filetype=$2 |
11 |
|
12 |
outdir=$indir'_oriented-sepals' |
13 |
|
14 |
mkdir $indir'/'$outdir |
15 |
|
16 |
cd $indir |
17 |
|
18 |
logfile='orient_sepals-'$indir'.log' |
19 |
date > $logfile |
20 |
echo '--------------------------' >> $logfile |
21 |
|
22 |
|
23 |
for file in *$filetype |
24 |
do |
25 |
echo '--------------------------' >> $logfile |
26 |
echo $file >> $logfile |
27 |
echo $file $outdir |
28 |
echo '--------------------------' >> $logfile |
29 |
orient_sepal.py $file $outdir |
30 |
echo '--------------------------' >> $logfile |
31 |
done |
32 |
|
33 |
|
34 |
|
35 |
#scp */*_oriented.inr.gz $oriented |
36 |
|
37 |
cd .. |