Antonella Fruscione 20 May 2002
C
rvations)
F
● for the needs ofu
● rn about whichp first mission with4 h each dimen-si
● ment specificto
XC
Introduction to CIAO(Chandra Interactive Analysis of Obse
rom "ahelp ciao"....
A powerful data analysis system originally writtensers of the Chandra X-ray Observatory.
Built to handle N-dimensional data without concearticular axes are being analyzed: Chandra is the-dimensional data (2 spatial, time, energy) in whicon has many independent elements.
It is mission independent (a part from a few instruols).
Antonella Fruscione 20 May 2002
project the 4-Dnvenient array:ation on the
‘regions’ syntax:t makes all this
and binnedtrack of this sub-
vious data pro-
f tools. For exam-can be fed into
an then be fit in
CXC
● Provides users with the ability to filter down and Chandra event data to manageable sizes and coall CIAO tools take a ‘filtering and binning’ specificcommand line, making use of a general purpose “ahelp dm” for information on the Data Model thapossible.
● To keep track of how the data had been filteredCIAO relies on the ‘data subspace’. The tools keepspace automatically and allow users to review precessing: see “ahelp subspace”.
● The CIAO design allows close interconnection ople, the output of any of source detection programdmextract to create a summed spectrum which cSherpa.
Antonella Fruscione 20 May 2002
C
● the CIAO sys-te ata in N-dimen-si h can be usedfo erpa results toth entification ofsp er fitting. See“
● e-existing tools,a ing FITS imagesa oe and imh files.
XC
The modeling and fitting tool Sherpa is central tom. Sherpa performs forward fitting of models to d
ons. Sherpa includes the “S-Lang” language whicr scripting and data manipulation. GUIDE links She APEC/APED plasma database, enabling the idectral lines and the use of their properties in furth
ahelp sherpa”, “ahelp slang”, “ahelp guide”.
In order to allow users of Chandra data to use prll CIAO tools read and write several formats, includnd tables (which includes event files) and IRAF qp
Antonella Fruscione 20 May 2002
.. sherpa) and numer-ve their own help about 500 pages!)
ocumentation:
f subjects related to
y
CXC
CIAO help!
AHELP
CIAO comes with its own help system called ahelpTools (e.g. dmcopy, wavdetect), applications (e.gous concepts (e.g. regions, coords, dmsyntax) hatext. (The entire collection of ahelp files is currently
The ahelp command accesses the CIAO on-line d
% about <word> (e.g. about contour) gives a list othe query% ahelp <name> (e.g. ahelp tgextract) provides bdefault the ASCII version of the help file
Antonella Fruscione 20 May 2002
version supplied
ntains HTML andte than the
o teach users by
ted” icons!). or will be made
CXC
% ahelp -w <name> loads into a browser the HTMLwith the CIAO distribution
NEW in CIAO 2.2:% ahelp -i <name> access the CIAO site which coPDF versions of the help files (often more up-to-dareleased ones).
DATA ANALYSIS THREADSMore than 90 CIAO processing recipes designed tleading step-by-step through a procedure.More added weekly (look for the “new” or “updaSeveral threads and groups of threads have beenmore automated in the form of scripts.PDF version available on-line.
Antonella Fruscione 20 May 2002
C
MC ed: majoru odel/DataM A CIAO-SLANGm
CR
HWh
XC
ANUALSIAO manuals are currently being written or updatpdates for CIAO2.2 were done to the DM (Data Manipulation), Detect, Sherpa and Chips Manuals.anual is in progress.
IAO WEB PAGESead the Dictionary, FAQ, Bugs, Caveats
ELPDESKhen everything else fails....
ttp://cxc.harvard.edu/helpdesk/
Antonella Fruscione 20 May 2002
C
● d “complex”:
● n from a GUI.●● d:
XC
What is CIAO?
Collection of programs (both “atomic”: tools, anapplications).
Generally run from the shell; some part can be ruSource code is available.Available on several platforms; currently supporte
Solaris 2.6 (2.7, 2.8)Red Hat Linux 6.2, 7.1Slackware 7.1SuSE 7.2 (7.x)Alpha OSF4.0f
Antonella Fruscione 20 May 2002
C
W
● QPOE) andA● ta (keywords,su● . GTI, weightm● olumns can bev●
ThW start up the sys-te nd path assign-m●●
XC
hat formats does it work with?
Chandra data is stored in FITS format. IRAF (IMH &SCII files can be handled by many tools.Stores processing state/information along with dabspace).A single file can contain multiple “datasets” (e.gap, regions) stored in “blocks”.Blocks can contain image or table data. Table c
ectors.Use dmlist or prism to view file contents.
e CIAO Environmente recommend the use of an alias called “ciao” tom: it sets up a number of environment variables aents.ciao -v what version you are usingciao -h help on how to setup CIAO
Antonella Fruscione 20 May 2002
C
P
P nd line or, asw are stored in~ and are ASCIIfi d write to thesefi
P
● sing the GUIs)● ixel mask for ano
B !
XC
arameter Files
arameters to programs can be set on the commaith IRAF and FTOOLS, using parameter files. These /cxcds_param/ by default, are called <tool>.par, les. A number of routines are provided to read anles (e.g. plist, pset, punlearn).
arameters:
provide a simple history mechanism (e.g. when uset parameters that rarely change (e.g. a bad-p
bservation)
e careful when analyzing more than one dataset
Antonella Fruscione 20 May 2002
C
F● tial part of X-raya or aspect solu-ti e
● stat“S
● at times periodso ata). They areg
● ground areas ofa anually orw (source.reg)]”).
● list can read thish
XC
ilters, Regions, and GTIsfiltering (removal of unwanted events) is an essen
nalysis - remove periods of high background or poon, or exclude uninteresting sources from an imag
the DataModel (DM) provides great flexibility: dmevt2.fits[EVENTS][energy>300][cols -grade]”ee: ahelp filtering
GTIs (Good Time Intervals) are used to define whf the observation can be used (i.e. contain valid denerally stored as a block in the event list.
Regions are used to define the source and backn image. They are text files that can be created mithin ds9, and are used as a filter (e.g. “[sky=region
Subspace records the filters applied to a file; dmistory using opt=subspace.
Antonella Fruscione 20 May 2002
C
DC ion, correctfo , createaRS ctTi src_regionC convolve,aPMS
(* bilities are nowp language.
XC
CIAO overviewatamodel:copy, filter, extraction, stats,...handra Specific Instrument tools: update calibratr instrumental effects, find & extract grating dataspect histogramsesponse tools: exposure map, PSF, RMF and ARFource Detection: celldetect, wavdetect, vtpdeteming & Background tools: lightcurve, axbary, get_onvolutions, Transforms, & Smoothing: csmooth, acrosscorr, apowerspectrumlotting: (*) ChIPSodeling/Fitting: (*) Sherpa
pectral Line Identification: GUIDE, ISIS
) powerful data manipulation and scripting capaossible with the inclusion of the S-Lang interpreted
Antonella Fruscione 20 May 2002
C
thels
● ilt on aXC Data
● ata
●
XC
The “Data Model” and Data Manipulation Too
The CXC analysis and processing software is bucommon versatile interface library called the CModel (or just DM).
The DM provides users with a powerful built-in dfiltering and binning capability.
The name “Data Model” reflects the fact thatthe interface can be used on data files ofdifferent format (all described by a singleabstract description - the same “model”) in atransparent way.
Antonella Fruscione 20 May 2002
C
●
● Y,
in
●
● t
l
XC
As of CIAO2.2, the format supported by the DMlibrary include: FITS, IRAF QPOE and IRAF IMH.
An important characteristic of the DM is that ANprogram that asks for a data file name as inputwill accept a virtual file string which will causethe program to see a filtered version of the file question.
The “virtual file” syntax is also commonly used tocreate on disk a filtered version of the input file.
Another important characteristic of the DM is thaall columns of event lists are treated “equally”:for example binning is allowed not only in spatiacoordinates but also in e.g. time, or energycoordinate, giving the ability of creatingmultidimensional images in space-energy, orspace-time, etc.
Antonella Fruscione 20 May 2002
C
PERTIES:
NG
XC
SUMMARY OF MAIN DATA MODEL PRO
FORMAT INDEPENDENT
POWERFUL FILTERING AND BINNI
USAGE OF “VIRTUAL FILES”
Antonella Fruscione 20 May 2002
C
lsTh
d
d
d le) from a tablec ions for a spa-ti
dfr
3
XC
Data Manipulation Tooe four DM “core” tools are:
mlist: list contents or structure of a file
mcopy: filter and bin tables and images
mextract: make a histogram table file (e.g. PHA fiolumn. Generate count histogram on supplied regal table or image file.
mgti: create custom Good Time Intervals (GTIs)om a constraint expression
0+ “dmtools” are included in CIAO2.2
Antonella Fruscione 20 May 2002
C
(S
●aD
● y afi square brackets[
fi ][rename]
w
XC
DATA MODEL SYNTAX
ee ahelp dmsyntax)
All CIAO tools use the DM library and thereforeccept as input “virtual files” described using theM syntax.
In the DM context a “virtual file” in represented blename followed by a series of optional qualifiers in]:
lename[block][filter][columns/binning][options
here:
Antonella Fruscione 20 May 2002
C
b
fi
c from a table tob n binning thed ge and binsize(m
o or the DM library
re
N● ever...●
XC
lock - is the “section” of the file to use
lter - is the filter to be applied
olumns/binning - specifies either the columns e included in an output table or the binning. Wheata to generate an n-dimensional image, the ran
in:max:bin) must be specified.
ptions - a sequence describing special options f
name - specifies a name for the new block
ote that:the order of the qualifiers generally matters, hownot all qualifiers need to be present always
Antonella Fruscione 20 May 2002
C
S
● by number:a 0][cols #1,#2,#3]
oa d_id,node_id]
a
● ecified region(ia in pi=1:1024:1]
oa 4,y=320:480:4]
XC
imple examples of “virtual files”:
Select the first three columns of the EVENTS blockcisf01843N001_evt2.fits[EVENTS][time=84245787:8424700
r by name:cisf01843N001_evt2.fits[EVENTS][grade=0,2,3][cols time,cc
fter filtering in time or grade
Bin an events file to create a PI spectrum for a spnput of dmextract):cisf01843N001_evt2.fits[sky=region(mysrc.reg)][EVENTS][b
r an image (input of dmcopy):cisf01843N001_evt2.fits[EVENTS][pha<100][bin x=320:480:
Antonella Fruscione 20 May 2002
C
In
b
fi
c
XC
the examples above:
lock: [EVENTS]
lter: [time=84245787:84247000][grade=0,2,3][sky=region(mysource.reg)][pha<1000]
olumns/binning:[cols time,ccd_id,node_id][cols #1,#2,#3][bin pi=1:1024:1][bin x=320:480:4,y=320:480:4]
���
������
��� ���
������ ���
�������
��� �
�!�
"$#&%('*
),+�'
-.+#0/21435),62
1879:-�
-*;=<>),+?%
357A@CB>
@D357E#F@HG
IJ;D@D3HKL18
7M3(NO@
18-�-*PQ
% 3R%S;=
7T'*)8-*+U
),+0<27V
357E9M3W-*;�
9E-�-*;C<2),+X%H
357T@HKY
I214357E;C7E<Z-.+Z
7:+�7E;D'�B
%(+J<[3\)8#�
7^]
_a`cb2df
e?ghV`j
i>k2lmi�
n�iporq�
s.t�uwvC
iaxyi>k�
l�g�z?{J
|J|S}\~J
|J|J|��
t�sY`ji>
zL}\�2n�
���m|J|2
��|��T��
nJ���m|�
�*�J|p}D
��v��cs�
x_?i�
t���zXn�
{�|J|p}r
�m{�|J|p
}\~��
_?i�t�g�
zXn�{�|J
|p}r�m{�
|J|p}\~>
��h_?i�
t�o:sY`�
l
300.00
270.00
240.00
210.
0015
0.00
120.00
90.00
60.00
30.0
0
0.00
330.
00
90.00
89.98 89.96
Rig
ht
asce
nsi
on
Declination
M33
�
���
������
��� ���������������
����
"!$#
%&!'!)(+
*�,-,/.10324*6570389.9
!:,;!=<>2@?9AB,DCE<F
2/(HGJIK!'!MLONBCE<P*�,Q0K2
RTS'U�VXW6Y
Z[S]\T^�_M\$`=\�acbed4fegihj\XkH\K^l_�Ynm:onp�pqjrlp�pnpPs�f]dtSe\Kmuqwvx`:yTz6pnp${:pPs|v$`:yTz=pM}4{npq$s
R)\Kfn~nmn`6olpnpq�z)olpnpPswR6\Tf�Ynmn`:o�pnp�q�z)o�plpT�
h���dQk�
~nmn`6rlpnpq�z6{:pnpqjr�s�R=\KflYlm:`nrlpnp�q�zn{6p�pqjr$��Z�
gX�lY�a�dQS6_
�
���
������
��� ����
� ��=�� �
��6��
��j�
�i�
�@.10-
#.1!=%&0�
�90K%&N#D*:2
IKLO0�*�,Q0TN?HG
570TL�)CE<��
,Q.9LO0T0"2Q08P*:LQ*l,Q0
!=?92/0TL��H*l,/C&!=<92�
RTSnSe\T^l_)\Z��l{:vacbed4fHgs��n{�
��acbHd;feg1st}��n`npacbHd;feg)Z7V��:f:bHd��l\Tm$Se\T^l_)\T`=\iacbHd4fMg
�
���
������
��� ���
������ ��
��������
�� �"
!�#%$& �
�'
()+*-,
./(0,�(2
13*+43(
*5�*
)768./1:9%;<
,�=>@?A
*-./(
5CB1:(2?D
9FE&>G,H.
I9J;�1:)2(IK9%;<
,�=�5CBL
4NM�(�*-
;&439%?O
*+4N>@)I9J;�1:)P(Q
=<(R43(2)S
43>@9J,UTH
1:9%./13* ?W
V
X2Y[Z+\R]_^
`aY8b2c+d/bFeJbg
fihkjSlkmo
n�bPp/Z+qRr XJ
bWmRst^ utc%bPdkjv
\Rwyxzdtd{
f|cJbPdk}S~<`�
bPpCZtqRr_XJ
bfihkjSlCm
�
���
������
��� ��
����+���#J�#J
���_
�$��_#J
�� $&�"
����
� �
�� ����
=�*t4R*����t
'�� ��
������(%V�
�M<> I
> I*UEk
(21aBI>@?�
T �(���(
5<;&4��
*0E8( �(P
,<.J4NM
*-,�= H;�!
K9%14NMH(�=&>#"�
(21:(P,C4A
=<(R43(2)S
479%1 I
*-,H=I)+*-,
I* 1(
?�>$!H(2
=439J./(R4NM�(P1FV'
()+*-,�
; I(4N
M�(&%('
439[9 �GI
439> I9
�*t43(O*I>G,<
. �(I)+*-,
* ,H==<;�
?�T)�*0
Ek(�(0,H
._4NM
Ek(P1 I;
I H;�!
K9%1>4tV
X2Y8Zt\R]_^
`Rq-m+*Rw-,/./.10-23054te"fih/jRl/mo
nzq-m6*0wkm+Z7w_ltu+7-~n�
Zt\tq-m
q-m5*0w18-*:9<;a
q-m+*Rw_h/qRp-~&
`m7r1=8mv
b2lfhCjS
lkmX2Y8
q_j+m0l
`Rq-m+*Rw-,/./.10-23054te"fih/jRl/mo
nzq-m6*0wkm+Z7w_ltu+7-~n�
Zt\tq-m
q-m5*0w18-*:9<;a
q-m+*Rw_h/qRp-~&
`X>*2l?*@;�c>*:
8\Rr l hC
j+q+b2u/q jtm�fA*_mvZ
5010
015
0
0
Wav
elen
gth
BAC