summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-05-08 22:04:55 +0800
committerAaron LI <aaronly.me@outlook.com>2016-05-08 22:04:55 +0800
commit74345a062723e83d0d85fea4732a1de653836761 (patch)
tree836f62f8e534e6b98a2c015c27aae552601d0a5d
parentfa68714ac69713f41752572b7b0ef1118edfe383 (diff)
downloadcexcess-74345a062723e83d0d85fea4732a1de653836761.tar.bz2
ds9_image.sh: allow environmental variables override
-rwxr-xr-xds9_image.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/ds9_image.sh b/ds9_image.sh
index ab01631..76a03d5 100755
--- a/ds9_image.sh
+++ b/ds9_image.sh
@@ -5,14 +5,16 @@
# Also touch the output image filename for easier save.
#
# Aaron LI
-# 2016-04-16
+# Created: 2016-04-16
+# Updated: 2016-05-08
#
# Default parameters
FILE_PATTERN="img_c*_fill.fits"
-REG_FILE="r500.reg"
-REG_FORMAT="ds9"
-REG_FOV="skyfov.fits"
+REG_FILE=${REG_FILE:-r500.reg}
+REG_FORMAT=${REG_FORMAT:-ds9}
+REG_FOV=${REG_FOV:-skyfov.fits}
+SMOOTH_RADIUS=${SMOOTH_RADIUS:-4}
case "$1" in
@@ -90,7 +92,7 @@ while [ ! -z "$1" ]; do
#
ds9 ${FILE} \
-bin factor 1 \
- -smooth radius 4 -smooth yes \
+ -smooth radius ${SMOOTH_RADIUS} -smooth yes \
-scale asinh \
-cmap sls \
-geometry 1288x1026-0+0 \
@@ -99,4 +101,3 @@ while [ ! -z "$1" ]; do
#
cd ${INIT_DIR}
done
-