Last change
on this file since 18 was
18,
checked in by meynadie, 16 years ago
|
mises au point
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
773 bytes
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | |
---|
3 | # Batch pour analyse des images de mires |
---|
4 | |
---|
5 | usage="mire [-s(kip sextractor)] nom.fits reperes.txt timing.txt" |
---|
6 | |
---|
7 | skip_sextractor=false; |
---|
8 | while getopts s flag ; do |
---|
9 | case $flag in |
---|
10 | s) skip_sextractor=true;; |
---|
11 | \?) echo $usage; exit 1;; |
---|
12 | esac |
---|
13 | done |
---|
14 | shift `expr "$OPTIND" - 1` |
---|
15 | |
---|
16 | |
---|
17 | echo "********** Image : $1 ****" |
---|
18 | |
---|
19 | PATH_TO_MIRE="/home/meynadie/svn/mire" |
---|
20 | |
---|
21 | CATALOG=$(basename $1 .fits).cat |
---|
22 | if test $skip_sextractor == false |
---|
23 | then |
---|
24 | rm -f $CATALOG mire.param |
---|
25 | echo "Détection d'objets..." |
---|
26 | cp -f $PATH_TO_MIRE/mire.param . |
---|
27 | sex -c $PATH_TO_MIRE/mire.sex $1 |
---|
28 | mv test.cat $CATALOG |
---|
29 | fi |
---|
30 | |
---|
31 | echo "Mesures géométriques..." |
---|
32 | OUTPUT_FILENAME=$(basename $1 .fits).mes |
---|
33 | python $PATH_TO_MIRE/process.py -c $CATALOG -r $2 -o test.fits -m $OUTPUT_FILENAME -t $3 |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.