forked from bolidozor/js9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmkpng
executable file
·37 lines (32 loc) · 921 Bytes
/
mkpng
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# mkpng: generate our standard set of png files
FILES1="b10 s100 i1000 f1000 d1000 f512 line512 snr m13 ngc1316"
FILES2="3c273 3c58 ngkper"
if [ x"$1" = x ]; then
PDIR="./png"
else
PDIR="$1"
fi
mkdir -p $PDIR
echo "creating png files in $PDIR ..."
for f in $FILES1; do
FITS="./fits/${f}.fits"
p=`basename $f fits`
PNG="${PDIR}/${p}.png"
echo "$FITS -> $PNG"
$X ./tpos $FITS $PNG
done
for f in $FILES2; do
FITS="./fits/${f}.fits"
p=`basename $f fits`
PNG="${PDIR}/${p}.png"
echo "$FITS -> $PNG"
$X ./fits2png -js9 -odir ${PDIR} -v no $FITS
done
if [ x"HEADAS" != x ]; then
echo "./fits/casa.fits -s '1024@4027,1024@3944' -> ${PDIR}/casa.png (cfitsio)"
$X ./tpos -s '1024@4027,1024@3944' ./fits/casa.fits ${PDIR}/casa.png
else
echo "./fits/casa.fits[1024@4027,1024@3944] -> ${PDIR}/casa.png (funtools)"
$X ./tpos ./fits/casa.fits'[1024@4027,1024@3944]' ${PDIR}/casa.png
fi