Last change
on this file since 34 was
30,
checked in by meynadie, 15 years ago
|
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
936 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 | OUTPUT_FITS=$(basename $1 .fits)_sf.fits |
---|
23 | OUTPUT_RING=$(basename $1 .fits).ring |
---|
24 | OUTPUT_SQUARE=$(basename $1 .fits).square |
---|
25 | |
---|
26 | if test $skip_sextractor == false |
---|
27 | then |
---|
28 | rm -f $CATALOG mire.param |
---|
29 | echo "Détection d'objets..." |
---|
30 | cp -f $PATH_TO_MIRE/mire.param . |
---|
31 | sex -c $PATH_TO_MIRE/mire.sex $1 |
---|
32 | mv test.cat $CATALOG |
---|
33 | fi |
---|
34 | |
---|
35 | echo "Mesures géométriques..." |
---|
36 | OUTPUT_FILENAME=$(basename $1 .fits).mes |
---|
37 | python $PATH_TO_MIRE/process.py -c $CATALOG -r $2 -o $OUTPUT_FITS -m $OUTPUT_FILENAME -t $3 --ring $OUTPUT_RING -s $OUTPUT_SQUARE |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.