Skip to content

Commit

Permalink
Make ingestion of instcals explicit.
Browse files Browse the repository at this point in the history
Avoiding using the default value of --filetype makes it possible to
change it safely.
  • Loading branch information
kfindeisen committed May 15, 2018
1 parent d18d418 commit 850598a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions examples/processData.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ ASTROMDIR=astrometry_net_data

usage() {
print_error
print_error "Usage: $0 [-cmvfiear] [-h]"
print_error "Usage: $0 [-cmvfioear] [-h]"
print_error
print_error "Specifc options:"
print_error " -c Camera"
print_error " -m Mapper"
print_error " -v Validation data"
print_error " -f Config file"
print_error " -i Ingest script"
print_error " -o Extra options for ingest script"
print_error " -e Extension to ingest"
print_error " -a Name of astrometry to load"
print_error " -r Reduce from raw? Implies there is a CALIB directory"
Expand All @@ -28,13 +29,14 @@ usage() {
exit 1
}

while getopts "c:m:v:f:i:e:a:d:hr" option; do
while getopts "c:m:v:f:i:o:e:a:d:hr" option; do
case "$option" in
c) CAMERA="$OPTARG";;
m) MAPPER="$OPTARG";;
v) VALIDATION_DATA="$OPTARG";;
f) CONFIG_FILE="$OPTARG";;
i) INGEST="$OPTARG";;
o) INGESTARGS="$OPTARG";;
e) INGESTEXT="$OPTARG";;
a) ASTROMDIR="$OPTARG";;
r) DOCALIB=true;;
Expand Down Expand Up @@ -67,7 +69,7 @@ echo "$MAPPER" > "${INPUT}"/_mapper

# ingest raw data
RAWDATA=${VALIDATION_DATA}
$INGEST "${INPUT}" "${RAWDATA}"/*."${INGESTEXT}" --mode link
$INGEST "${INPUT}" "${RAWDATA}"/*."${INGESTEXT}" --mode link ${INGESTARGS}

# set up calibs
if [[ $DOCALIB == true ]]; then
Expand Down
1 change: 1 addition & 0 deletions examples/runDecamQuickTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ if [[ $DOPROCESS == true ]]; then
-m "$MAPPER" \
-v "$VALIDATION_DATA_DIR" \
-f "$CONFIG_FILE" \
-o "--filetype instcal" \
-i ingestImagesDecam.py
fi

Expand Down
3 changes: 2 additions & 1 deletion examples/runDecamTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ if [[ $DOPROCESS == true ]]; then
-m "$MAPPER" \
-v "$VALIDATION_DATA_DIR" \
-f "$CONFIG_FILE" \
-o "--filetype instcal" \
-i ingestImagesDecam.py
fi

if [[ $DOVERIFY = true ]]; then
if [[ $DOVERIFY == true ]]; then
"${PRODUCT_DIR}/examples/validateRepo.sh" \
-c "$CAMERA" \
-- "$@"
Expand Down

0 comments on commit 850598a

Please sign in to comment.