File: lock.sh

package info (click to toggle)
saods9 7.3.2%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,044 kB
  • ctags: 21,414
  • sloc: cpp: 66,406; tcl: 60,491; ansic: 19,507; sh: 9,996; xml: 1,375; makefile: 892; perl: 68
file content (40 lines) | stat: -rwxr-xr-x 1,536 bytes parent folder | download
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
38
39
40
echo
echo "*** lock.sh ***"

if [ "$1" = "frame" -o -z "$1" ]; then
echo "Testing frame"
ds9 -debug -zscale data/img.fits data/img.fits -tile -lock frame wcs -mode pan
fi

if [ "$1" = "crosshair" -o -z "$1" ]; then
echo "Testing crosshair"
ds9 -debug -zscale data/img.fits data/img.fits -tile -lock crosshair wcs -mode crosshair
fi

if [ "$1" = "crop" -o -z "$1" ]; then
echo "Testing crop"
ds9 -debug -zscale data/img.fits -rgb data/img.fits -green data/img.fits -blue data/img.fits -tile -lock crop wcs -crop open -mode crop -rgb lock crop yes
ds9 -debug -zscale data/3d.fits -3d data/3d.fits -3d vp 45 30 -tile -lock crop wcs -mode crop
fi

if [ "$1" = "slice" -o -z "$1" ]; then
echo "Testing slice"
ds9 -debug -zscale data/3d.fits -3d data/3d.fits -3d vp 45 30 -tile -lock slice
fi

if [ "$1" = "bin" -o -z "$1" ]; then
echo "Testing bin"
ds9 -debug -zscale fits/table.fits -rgb fits/table.fits -green fits/table.fits -blue fits/table.fits -tile -lock bin -bin open -rgb lock bin yes
fi

if [ "$1" = "scale" -o -z "$1" ]; then
echo "Testing scale"
ds9 -debug -zscale data/img.fits -rgb data/img.fits -green data/img.fits -blue data/img.fits -tile -lock scale -scale open -rgb lock scale yes
fi

if [ "$1" = "color" -o -z "$1" ]; then
echo "Testing color"
ds9 -debug -zscale data/img.fits data/img.fits -rgb -red data/img.fits -green data/img.fits -blue data/img.fits -rgb lock colorbar yes -rgb -red data/img.fits -green data/img.fits -blue data/img.fits  -rgb lock colorbar yes -tile -lock colorbar yes -cmap open
fi

echo "Done"