| imdetect | xray.xproto | imdetect |
imdetect - Determine rough positions of sources in the whole field.
imdetect infile outfile subcells xcellsize ycellsize fieldbkdens
IMDETECT determines rough positions of candidate sources in the whole field. The field is scanned with a sliding bin of a detect cell and a source detection is defined to occur whenever the threshold is exceeded. Subsequent processing involves association of adjacent or contiguous cells, and identifying the position and minimum radius of the source or sources in each region.
The task was converted from ROSAT level zero processing system(SASS) and tested for ROSAT/HRI and ASC(AXAF Science Center)/HRC.
Currently, the snr threshold is either calculated from the parameter "fieldbkdens" and three snr coefficients, or it comes directly from the parameter "snr_thresh_min", whichever is larger.
NOTE: Unlike ldetect in xspatial, imdetect can operate on image files as well as qpoe files.
Required input filename. It can be a qpoe file or an image file.
Required output filename. The file is written in a table format. The name may be specified by supplying the rootname and "_ruf.tab" extension will be appended. For example input "test" becomes "test_ruf.tab". The column names and definitions are as follows:
blob # - number of the current contiguous region (or "blob" )
peak # - number of this detection found within a blob
(eg. if value n, it means this is the n_th peak found
within the blob)
x - x source position in pixels
y - y source position in pixels
dx - x detector coords. in pixels (= column_x - 1.0)
dy - y detector coords. in pixels (= 4096.0 - column_y)
res? - a flag indicating whether a source is big enough to
contain more than 1 source. (yes=1, no=0)
min r - minimum radius of a source in pixels
cellx - x detect cell size in pixels
celly - y detect cell size in pixels
(e.g. If subcells=3, there will be 3*3=9 subcells per detect cell.) NB: This parameter determines the step size.
ctwtfactor CWF
---------- ----------
1 src_counts - bkg_counts
2 [(scr_counts - bkg_counts) / src_counts ] ** 2
3 1
[ Currently, no background map is used and bkg_counts is zero. ]
Recommend setting prf_sigma greater than zero for ASC data to skip prf_table. [ see prf_table ]
Prf coefficient table. Entries for ROSAT PSPC/HRI & Einstein IPC/HRI. Lookup based on value of energy. Returns coefficients assiciated with a default lookup when energy=0.0; returns coefficients closest to the energy when exact match is not found.
Currently, entries for AXAF/ACIS and AXAF/HRC are only temporary. [ see prf_sigma ]
1. run imdetect with ROSAT/HRI qpoe file :
de> flpr
de> unlearn imdetect
de> imdetect clob+
input qpoe or image file: xdata$rh110267n00.qp
output (ruf) position table file: test
detect cell size smooth factor (1): 3
x detect cell size in pixels (24):
y detect cell size in pixels (24):
field background density in cts/arcmin**2 (0.001):
-- created output table: test_ruf.tab --
2. run imdetect with ASC/HRC image file :
de> flpr
de> unlearn imdetect
de> imdetect snr_16_thres=3.6 clob+
input qpoe or image file: xspatialdata$asc_hrc.imh
output (ruf) position table file: hrc
detect cell size smooth factor (1):
x detect cell size in pixels (24): 8
y detect cell size in pixels (24): 8
field background density in cts/arcmin**2 (0.001):
-- created output table: hrc_ruf.tab --
Documentation on the detect algorithms and philosophy along with limitations in (help explain_detect ).