Backup & Restore

Data

You didn't think you would get through a Chandra/CIAO demo without seeing CasA, did you?

You have already seen this image before in the Introduction to X-ray Talk (or a version of it). What if you needed to tweak the image for publication? You can Backup the state of ds9 and Restore it later.

Restore is not guaranteed to be back compatible.

If you want to make your own

Cassiopeia A OBS_ID 4638

download_chandra_obsid 4638 evt2
dmcopy acisf04638N003_evt2.fits"[x=3580.5:5072.5,y=3148.5:4640.5]" crop.evt

dmcopy "crop.evt[bin sky=4][energy=0:200]" outfile="0-p" 
dmcopy "crop.evt[bin sky=4][energy=200:500]" outfile="1-r"
dmcopy "crop.evt[bin sky=4][energy=500:850]" outfile="2-o"
dmcopy "crop.evt[bin sky=4][energy=850:1000]" outfile="3-y"
dmcopy "crop.evt[bin sky=4][energy=1000:1200]" outfile="4-g"
dmcopy "crop.evt[bin sky=4][energy=1200:2000]" outfile="5-b"
dmcopy "crop.evt[bin sky=4][energy=2000:3500]" outfile="6-i"
dmcopy "crop.evt[bin sky=4][energy=3500:7000]" outfile="7-v"
dmcopy "crop.evt[bin sky=4][energy=7000:10000]" outfile="8-k"
In [1]:
cd BackupRestore;

/bin/ls -lRF | sed -e s,$USER,user, -e s,$GROUP,group,
.:
total 312
-rw-rw-r--  1 user group  35186 Dec 20 08:23 ds9.bck
drwxrwsr-x 11 user group   4096 Dec 20 08:23 ds9.bck.dir/
-rw-r--r--  1 user group 271092 Dec 27 08:21 ds9_07_backup_01.png

./ds9.bck.dir:
total 108
-rw-rw-r-- 1 user group 6912 Dec 20 08:23 0_hotpink4.lut
-rw-rw-r-- 1 user group 6912 Dec 20 08:23 1_firebrick.lut
-rw-rw-r-- 1 user group 6912 Dec 20 08:23 2_darkorange.lut
-rw-rw-r-- 1 user group 6912 Dec 20 08:23 3_gold4.lut
-rw-rw-r-- 1 user group 6912 Dec 20 08:23 4_forestgreen.lut
-rw-rw-r-- 1 user group 6912 Dec 20 08:23 5_steelblue.lut
-rw-rw-r-- 1 user group 6912 Dec 20 08:23 6_mediumpurple4.lut
-rw-rw-r-- 1 user group 6912 Dec 20 08:23 7_orchid4.lut
-rw-rw-r-- 1 user group 6912 Dec 20 08:23 8_khaki4.lut
drwxrwsr-x 2 user group 4096 Dec 20 08:23 Frame1/
drwxrwsr-x 2 user group 4096 Dec 20 08:23 Frame2/
drwxrwsr-x 2 user group 4096 Dec 20 08:23 Frame3/
drwxrwsr-x 2 user group 4096 Dec 20 08:23 Frame4/
drwxrwsr-x 2 user group 4096 Dec 20 08:23 Frame5/
drwxrwsr-x 2 user group 4096 Dec 20 08:23 Frame6/
drwxrwsr-x 2 user group 4096 Dec 20 08:23 Frame7/
drwxrwsr-x 2 user group 4096 Dec 20 08:23 Frame8/
drwxrwsr-x 2 user group 4096 Dec 20 08:23 Frame9/

./ds9.bck.dir/Frame1:
total 348
-rw-rw-r-- 1 user group 345600 Dec 20 08:23 0-p
-rw-rw-r-- 1 user group    247 Dec 20 08:23 ds9.reg

./ds9.bck.dir/Frame2:
total 348
-rw-rw-r-- 1 user group 345600 Dec 20 08:23 1-r
-rw-rw-r-- 1 user group    250 Dec 20 08:23 ds9.reg

./ds9.bck.dir/Frame3:
total 348
-rw-rw-r-- 1 user group 345600 Dec 20 08:23 2-o
-rw-rw-r-- 1 user group    269 Dec 20 08:23 ds9.reg

./ds9.bck.dir/Frame4:
total 348
-rw-rw-r-- 1 user group 345600 Dec 20 08:23 3-y
-rw-rw-r-- 1 user group    251 Dec 20 08:23 ds9.reg

./ds9.bck.dir/Frame5:
total 348
-rw-rw-r-- 1 user group 345600 Dec 20 08:23 4-g
-rw-rw-r-- 1 user group    250 Dec 20 08:23 ds9.reg

./ds9.bck.dir/Frame6:
total 348
-rw-rw-r-- 1 user group 345600 Dec 20 08:23 5-b
-rw-rw-r-- 1 user group    250 Dec 20 08:23 ds9.reg

./ds9.bck.dir/Frame7:
total 348
-rw-rw-r-- 1 user group 345600 Dec 20 08:23 6-i
-rw-rw-r-- 1 user group    250 Dec 20 08:23 ds9.reg

./ds9.bck.dir/Frame8:
total 348
-rw-rw-r-- 1 user group 345600 Dec 20 08:23 7-v
-rw-rw-r-- 1 user group    250 Dec 20 08:23 ds9.reg

./ds9.bck.dir/Frame9:
total 348
-rw-rw-r-- 1 user group 345600 Dec 20 08:23 8-k
-rw-rw-r-- 1 user group    247 Dec 20 08:23 ds9.reg
In [2]:
ds9 -restore ds9.bck &
[1] 31578
In [3]:
import -window "SAOImage ds9"  ds9_07_backup_01.png 
display < ds9_07_backup_01.png

In [4]:
xpaset -p ds9 quit
[1]+  Done                    ds9 -restore ds9.bck
In [ ]: