From 8e7a0d0de9bf1cb58ac610f1390bacfb8be4be93 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 12 Feb 2017 18:50:30 +0800 Subject: Remove clean_imgdir.sh, clean_repro_zzh.sh and compress_fits.sh --- clean_imgdir.sh | 28 ---------------------------- clean_repro_zzh.sh | 35 ----------------------------------- compress_fits.sh | 50 -------------------------------------------------- 3 files changed, 113 deletions(-) delete mode 100755 clean_imgdir.sh delete mode 100755 clean_repro_zzh.sh delete mode 100755 compress_fits.sh 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` ..." - 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` ..." - 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 ] ..." - 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 - -- cgit v1.2.2