File tree Expand file tree Collapse file tree 8 files changed +255
-66
lines changed Expand file tree Collapse file tree 8 files changed +255
-66
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ ASTROMDIR=astrometry_net_data
1111
1212usage () {
1313 print_error
14- print_error " Usage: $0 [-cmvfiear] [-h] [-- <options to validateDrp.py>] "
14+ print_error " Usage: $0 [-cmvfiear] [-h]"
1515 print_error
1616 print_error " Specifc options:"
1717 print_error " -c Camera"
Original file line number Diff line number Diff line change @@ -7,12 +7,45 @@ CAMERA=CfhtQuick
77CONFIG_FILE=" ${PRODUCT_DIR} /config/cfhtConfig.py"
88MAPPER=lsst.obs.cfht.MegacamMapper
99
10- " ${PRODUCT_DIR} /examples/processData.sh" \
11- -c " $CAMERA " \
12- -m " $MAPPER " \
13- -v " $VALIDATION_DATA_DIR " \
14- -f " $CONFIG_FILE " \
15- -- " $@ "
16- " ${PRODUCT_DIR} /examples/validateRepo.sh" \
17- -c " $CAMERA " \
18- -- " $@ "
10+ print_error () {
11+ >&2 echo " $@ "
12+ }
13+
14+ DOPROCESS=true
15+ DOVERIFY=true
16+
17+ usage () {
18+ print_error
19+ print_error " Usage: $0 [-pv] [-h] [-- <extra options to validateDrp.py>]"
20+ print_error
21+ print_error " Specifc options:"
22+ print_error " -p Skip processing?"
23+ print_error " -v Skip verification?"
24+ print_error " -h show this message"
25+ exit 1
26+ }
27+
28+ # thank OSX for not including getopt
29+ while getopts " vp" option; do
30+ case " $option " in
31+ p) DOPROCESS=false;;
32+ v) DOVERIFY=false;;
33+ h) usage;;
34+ * ) usage;;
35+ esac
36+ done
37+ shift $(( OPTIND- 1 ))
38+
39+ if [ " $DOPROCESS " = true ] ; then
40+ " ${PRODUCT_DIR} /examples/processData.sh" \
41+ -c " $CAMERA " \
42+ -m " $MAPPER " \
43+ -v " $VALIDATION_DATA_DIR " \
44+ -f " $CONFIG_FILE "
45+ fi
46+
47+ if [ " $DOVERIFY " = true ] ; then
48+ " ${PRODUCT_DIR} /examples/validateRepo.sh" \
49+ -c " $CAMERA " \
50+ -- " $@ "
51+ fi
Original file line number Diff line number Diff line change @@ -7,12 +7,45 @@ CAMERA=Cfht
77CONFIG_FILE=" ${PRODUCT_DIR} /config/cfhtConfig.py"
88MAPPER=lsst.obs.cfht.MegacamMapper
99
10- " ${PRODUCT_DIR} /examples/processData.sh" \
11- -c " $CAMERA " \
12- -m " $MAPPER " \
13- -v " $VALIDATION_DATA_DIR " \
14- -f " $CONFIG_FILE " \
15- -- " $@ "
16- " ${PRODUCT_DIR} /examples/validateRepo.sh" \
17- -c " $CAMERA " \
18- -- " $@ "
10+ print_error () {
11+ >&2 echo " $@ "
12+ }
13+
14+ DOPROCESS=true
15+ DOVERIFY=true
16+
17+ usage () {
18+ print_error
19+ print_error " Usage: $0 [-pv] [-h] [-- <extra options to validateDrp.py>]"
20+ print_error
21+ print_error " Specifc options:"
22+ print_error " -p Skip processing?"
23+ print_error " -v Skip verification?"
24+ print_error " -h show this message"
25+ exit 1
26+ }
27+
28+ # thank OSX for not including getopt
29+ while getopts " vp" option; do
30+ case " $option " in
31+ p) DOPROCESS=false;;
32+ v) DOVERIFY=false;;
33+ h) usage;;
34+ * ) usage;;
35+ esac
36+ done
37+ shift $(( OPTIND- 1 ))
38+
39+ if [ " $DOPROCESS " = true ] ; then
40+ " ${PRODUCT_DIR} /examples/processData.sh" \
41+ -c " $CAMERA " \
42+ -m " $MAPPER " \
43+ -v " $VALIDATION_DATA_DIR " \
44+ -f " $CONFIG_FILE "
45+ fi
46+
47+ if [ " $DOVERIFY " = true ] ; then
48+ " ${PRODUCT_DIR} /examples/validateRepo.sh" \
49+ -c " $CAMERA " \
50+ -- " $@ "
51+ fi
Original file line number Diff line number Diff line change @@ -7,13 +7,45 @@ CAMERA=DecamQuick
77CONFIG_FILE=" ${PRODUCT_DIR} /config/decamConfig.py"
88MAPPER=lsst.obs.decam.DecamMapper
99
10- " ${PRODUCT_DIR} /examples/processData.sh" \
11- -c " $CAMERA " \
12- -m " $MAPPER " \
13- -v " $VALIDATION_DATA_DIR " \
14- -f " $CONFIG_FILE " \
15- -i ingestImagesDecam.py \
16- -- " $@ "
17- " ${PRODUCT_DIR} /examples/validateRepo.sh" \
18- -c " $CAMERA " \
19- -- " $@ "
10+ print_error () {
11+ >&2 echo " $@ "
12+ }
13+
14+ DOPROCESS=true
15+ DOVERIFY=true
16+
17+ usage () {
18+ print_error
19+ print_error " Usage: $0 [-pv] [-h] [-- <extra options to validateDrp.py>]"
20+ print_error
21+ print_error " Specifc options:"
22+ print_error " -p Skip processing?"
23+ print_error " -v Skip verification?"
24+ print_error " -h show this message"
25+ exit 1
26+ }
27+
28+ # thank OSX for not including getopt
29+ while getopts " vp" option; do
30+ case " $option " in
31+ p) DOPROCESS=false;;
32+ v) DOVERIFY=false;;
33+ h) usage;;
34+ * ) usage;;
35+ esac
36+ done
37+ shift $(( OPTIND- 1 ))
38+
39+ if [ " $DOPROCESS " = true ] ; then
40+ " ${PRODUCT_DIR} /examples/processData.sh" \
41+ -c " $CAMERA " \
42+ -m " $MAPPER " \
43+ -v " $VALIDATION_DATA_DIR " \
44+ -f " $CONFIG_FILE "
45+ fi
46+
47+ if [ " $DOVERIFY " = true ] ; then
48+ " ${PRODUCT_DIR} /examples/validateRepo.sh" \
49+ -c " $CAMERA " \
50+ -- " $@ "
51+ fi
Original file line number Diff line number Diff line change @@ -7,13 +7,45 @@ CAMERA=Decam
77CONFIG_FILE=" ${PRODUCT_DIR} /config/decamConfig.py"
88MAPPER=lsst.obs.decam.DecamMapper
99
10- " ${PRODUCT_DIR} /examples/processData.sh" \
11- -c " $CAMERA " \
12- -m " $MAPPER " \
13- -v " $VALIDATION_DATA_DIR " \
14- -f " $CONFIG_FILE " \
15- -i ingestImagesDecam.py \
16- -- " $@ "
17- " ${PRODUCT_DIR} /examples/validateRepo.py" \
18- -c " $CAMERA " \
19- -- " $@ "
10+ print_error () {
11+ >&2 echo " $@ "
12+ }
13+
14+ DOPROCESS=true
15+ DOVERIFY=true
16+
17+ usage () {
18+ print_error
19+ print_error " Usage: $0 [-pv] [-h] [-- <extra options to validateDrp.py>]"
20+ print_error
21+ print_error " Specifc options:"
22+ print_error " -p Skip processing?"
23+ print_error " -v Skip verification?"
24+ print_error " -h show this message"
25+ exit 1
26+ }
27+
28+ # thank OSX for not including getopt
29+ while getopts " vp" option; do
30+ case " $option " in
31+ p) DOPROCESS=false;;
32+ v) DOVERIFY=false;;
33+ h) usage;;
34+ * ) usage;;
35+ esac
36+ done
37+ shift $(( OPTIND- 1 ))
38+
39+ if [ " $DOPROCESS " = true ] ; then
40+ " ${PRODUCT_DIR} /examples/processData.sh" \
41+ -c " $CAMERA " \
42+ -m " $MAPPER " \
43+ -v " $VALIDATION_DATA_DIR " \
44+ -f " $CONFIG_FILE "
45+ fi
46+
47+ if [ " $DOVERIFY " = true ] ; then
48+ " ${PRODUCT_DIR} /examples/validateRepo.sh" \
49+ -c " $CAMERA " \
50+ -- " $@ "
51+ fi
Original file line number Diff line number Diff line change @@ -14,16 +14,45 @@ exit 1
1414
1515ASTROMDIR=sdss-dr9-fink-v5b
1616
17- " ${PRODUCT_DIR} /examples/processData.sh" \
18- -c " $CAMERA " \
19- -m " $MAPPER " \
20- -v " $VALIDATION_DATA_DIR " \
21- -f " $CONFIG_FILE " \
22- -e " fits" \
23- -a " $ASTROMDIR " \
24- -d " $CALIB_DATA " \
25- -r \
26- -- " $@ "
27- " ${PRODUCT_DIR} /examples/validateRepo.sh" \
28- -c " $CAMERA " \
29- -- " $@ "
17+ print_error () {
18+ >&2 echo " $@ "
19+ }
20+
21+ DOPROCESS=true
22+ DOVERIFY=true
23+
24+ usage () {
25+ print_error
26+ print_error " Usage: $0 [-pv] [-h] [-- <extra options to validateDrp.py>]"
27+ print_error
28+ print_error " Specifc options:"
29+ print_error " -p Skip processing?"
30+ print_error " -v Skip verification?"
31+ print_error " -h show this message"
32+ exit 1
33+ }
34+
35+ # thank OSX for not including getopt
36+ while getopts " vp" option; do
37+ case " $option " in
38+ p) DOPROCESS=false;;
39+ v) DOVERIFY=false;;
40+ h) usage;;
41+ * ) usage;;
42+ esac
43+ done
44+ shift $(( OPTIND- 1 ))
45+
46+ if [ " $DOPROCESS " = true ] ; then
47+ " ${PRODUCT_DIR} /examples/processData.sh" \
48+ -c " $CAMERA " \
49+ -m " $MAPPER " \
50+ -v " $VALIDATION_DATA_DIR " \
51+ -f " $CONFIG_FILE "
52+ fi
53+
54+ if [ " $DOVERIFY " = true ] ; then
55+ " ${PRODUCT_DIR} /examples/validateRepo.sh" \
56+ -c " $CAMERA " \
57+ -- " $@ "
58+ fi
Original file line number Diff line number Diff line change @@ -9,16 +9,45 @@ CONFIG_FILE="${PRODUCT_DIR}/config/hscConfig.py"
99MAPPER=lsst.obs.hsc.HscMapper
1010ASTROMDIR=sdss-dr9-fink-v5b
1111
12- " ${PRODUCT_DIR} /examples/processData.sh" \
13- -c " $CAMERA " \
14- -m " $MAPPER " \
15- -v " $VALIDATION_DATA_DIR " \
16- -f " $CONFIG_FILE " \
17- -e " fits" \
18- -a " $ASTROMDIR " \
19- -d " $CALIB_DATA " \
20- -r \
21- -- " $@ "
22- " ${PRODUCT_DIR} /examples/validateRepo.sh" \
23- -c " $CAMERA " \
24- -- " $@ "
12+ print_error () {
13+ >&2 echo " $@ "
14+ }
15+
16+ DOPROCESS=true
17+ DOVERIFY=true
18+
19+ usage () {
20+ print_error
21+ print_error " Usage: $0 [-pv] [-h] [-- <extra options to validateDrp.py>]"
22+ print_error
23+ print_error " Specifc options:"
24+ print_error " -p Skip processing?"
25+ print_error " -v Skip verification?"
26+ print_error " -h show this message"
27+ exit 1
28+ }
29+
30+ # thank OSX for not including getopt
31+ while getopts " vp" option; do
32+ case " $option " in
33+ p) DOPROCESS=false;;
34+ v) DOVERIFY=false;;
35+ h) usage;;
36+ * ) usage;;
37+ esac
38+ done
39+ shift $(( OPTIND- 1 ))
40+
41+ if [ " $DOPROCESS " = true ] ; then
42+ " ${PRODUCT_DIR} /examples/processData.sh" \
43+ -c " $CAMERA " \
44+ -m " $MAPPER " \
45+ -v " $VALIDATION_DATA_DIR " \
46+ -f " $CONFIG_FILE "
47+ fi
48+
49+ if [ " $DOVERIFY " = true ] ; then
50+ " ${PRODUCT_DIR} /examples/validateRepo.sh" \
51+ -c " $CAMERA " \
52+ -- " $@ "
53+ fi
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ WORKSPACE=${CAMERA}
3636OUTPUT=${WORKSPACE} /output
3737
3838if ! [ -d " ${OUTPUT} " ]; then
39- print_error " Repository does not exist. Please run processData.sh first."
39+ print_error " Repository does not exist. Please run processData.sh first."
40+ exit 1
4041fi
4142
4243# YAML config file for validation configuration
You can’t perform that action at this time.
0 commit comments