Skip to content

Commit

Permalink
cal check fitsheader for corrupt files
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed Nov 28, 2024
1 parent 4dec686 commit 3cecfd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo/06_cal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ fi
# - birli adds a channel suffix when processing observations with non-contiguous coarse channels.
# - if the files we need are missing, then run 05_prep.
export prep_uvfits_pattern=${outdir}/${obsid}/prep/birli_${obsid}\*.uvfits
for f in $(ls -1 $prep_uvfits_pattern); do
set -x
fitsheader $f
echo $?
done
if ! eval ls -1 $prep_uvfits_pattern >/dev/null; then
echo "prep_uvfits $prep_uvfits_pattern does not exist. trying 05_prep.sh"
$SCRIPT_BASE/05_prep.sh
Expand Down

0 comments on commit 3cecfd9

Please sign in to comment.