XMM-Newton Science Analysis System
selectlib (selectlib-4.77) [xmmsas_20230412_1735-21.0.0]
Table filtering
These sample boolean expressions demonstrate the filtering of an event list
table with columns RAWX, RAWY, PHA, PATTERNID,
CCDID, PHASE, TIME, and FLAG:
- RAWX >= 100 && #ROW != 10
select all events with X coordinates greater than or equal to 100; exclude
the 10th event anyway
- RAWX > RAWY
select all events to the right of the line RAWX==RAWY
- CIRCLE(354,383,84,RAWX,RAWY)||ELLIPSE(243,215,27,108,0,RAWX,RAWY)
select events which lie in the circle or the ellipse with the specified
parameters
- PATTERNID==4
select all events with PATTERNID equal to 4
- (CCDID==1 && TIME in gti(ccd1.gti))||(CCDID==2 && TIME in gti(ccd2.gti))
select all events from CCD #1 which pass the GTI filters in ccd1.gti
plus all events from CCD #2 which pass the GTI filters in ccd2.gti.
- PHASE>=.3 && PHASE<=.9
select events from the specified phase window
- (PHA>=100 && PHA<=200)||(PHA>=500 && PHA <=600)
select events with PHA values greater than 99 and less than 201 or
greater than 499 and less than 601
- FLAG & b110 != 0
select events which have the second and third bit in an (integral)
FLAG column set
- SELECTED && PHA >= 10
select events which have been selected in the previous selection
run and have PHA values greater than or equal to 10
- PHA in [0:10],(23:40),99,200: && TIME in gti(gti.fits[GTI0])
select events with PHA values in the range 0–10, or 23–40 (excl.), or
equal to 99, or greater than or equal to 200 and arrival times
lying within Good-Time-Intervals contained in the table named
GTI0 in the data set gti.fits
- skyvector(RA, DEC) in cone(#RA_MED, #DEC_MED, 20*#ARCMIN)
select rows for which it is true that the J2000 sky vector constructed
from the columns RA and DEC lies within a cone with an
opening angle of 20' and a symmetry axis given through the sky vector
defined by the two attributes #RA_MED and #DEC_MED
XMM-Newton SOC -- 2023-04-16