diff options
-rwxr-xr-x | clean_imgdir.sh | 28 | ||||
-rwxr-xr-x | clean_repro_zzh.sh | 35 | ||||
-rwxr-xr-x | compress_fits.sh | 50 |
3 files changed, 0 insertions, 113 deletions
diff --git a/clean_imgdir.sh b/clean_imgdir.sh deleted file mode 100755 index 8cc51ed..0000000 --- a/clean_imgdir.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# -# Clean the 'img' directories for the excess_sample. -# -# -# Aaron LI -# 2016-04-11 -# - -case "$1" in - ""|-[hH]*) - echo "Usage: `basename $0` <imgdir1> ..." - exit 1 -esac - -INIT_DIR=`pwd -P` -while [ ! -z "$1" ]; do - imgdir="$1" - shift - cd ${INIT_DIR} - cd ${imgdir} - echo "*** Cleaning '${imgdir}' ..." - rm -fv _* *~ .?*~ - rm -fv celld*.reg csb_results*.txt rspec*bak - rm -fv img_*.fits *fov*.fits ds9.jpg - rm -fv sbp*.log expcorr*.log -done - diff --git a/clean_repro_zzh.sh b/clean_repro_zzh.sh deleted file mode 100755 index 1478f9c..0000000 --- a/clean_repro_zzh.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# -# Clean the 'repro' and its subdirectories for the sources -# drawn from zzh among the excess_sample. -# -# -# Aaron LI -# 2016-04-12 -# - -case "$1" in - ""|-[hH]*) - echo "Usage: `basename $0` <repro_dir1> ..." - exit 1 -esac - -INIT_DIR=`pwd -P` -while [ ! -z "$1" ]; do - repro_dir="$1" - shift - cd ${INIT_DIR} - cd ${repro_dir} - echo "*** Cleaning '${repro_dir}' ..." - cd evt - rm -fv *~ .?*~ _* *.log - rm -fv evt2*_orig.fits evt2*_rmsrcs.fits - rm -fv img_*.fits sbprofile.reg *fov*.fits - mv -fv peak*.reg ../img/ - cd ../bkg - rm -fv *~ .?*~ _* *.log - cd ../img - rm -fv *~ .?*~ _* *.log - rm -fv rspec*bak *fov*.fits img_*.fits -done - diff --git a/compress_fits.sh b/compress_fits.sh deleted file mode 100755 index dbce197..0000000 --- a/compress_fits.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh -# -# Compress the FITS files that are not used directly. -# -# Aaron LI -# 2016-04-16 -# - -# whether to compress all big files (useful for dropped sources) -FLAG_ALL="NO" - -# compress command -COMPRESS="xz -v" -#COMPRESS="ls -lh" # test - - -case "$1" in - -[hH]*) - echo "Usage:" - echo " `basename $0` [ -a ] <source_dir1> ..." - exit 1 - ;; - -[aA]*) - FLAG_ALL="YES" - shift - ;; -esac - - -while [ ! -z "$1" ]; do - source="$1" - shift - echo "====== ${source} ======" - find ${source}/ -type f \ - \( -name 'acis*_repro_evt2.fits' -o \ - -name 'pcadf*_asol*.fits' -o \ - -name 'blanksky_*.fits' -o \ - -name '*_tdet.fits' -o \ - -name 'imgcorr_*.fits' \) \ - -exec ${COMPRESS} '{}' \; - if [ "${FLAG_ALL}" = "YES" ]; then - echo "*** ALL ***" - find ${source}/ -type f \ - \( -name 'evt2_*.fits' -o \ - -name 'expmap_*.fits' -o \ - -name 'img_*.fits' \) \ - -exec ${COMPRESS} '{}' \; - fi -done - |