|
|
|
|
SynopsisThe Data Model syntax for filtering and binning files. Syntaxdataset[block][filter-command][bin-command][opt-command][rename] dataset[block][filter-command][cols-command][opt-command][rename] DescriptionThe data model (DM) is a library which lets our software access a variety of file formats and to describe filtered subsections of those files. For the user, the most obvious interaction with the DM is the virtual-file syntax which allows you to filter and bin the files. All of the CXC tools support the DM virtual file syntax. This means that whenever you are prompted for a filename, you can instead enter a filename qualified by a set of restrictions that implicitly define a filtered table or image. All of the qualifiers are optional.
Example 1evt.fits[events][pha=30:200,time=10:20,50:60][bin x=1:100:20,y=2:50:10][myimage] This example picks a table called "events" in the file evt.fits, and specifies a filtering and binning of the file. The filter says to pick rows in the table for which the value of the pha column is >= 30 and < 200, and in addition for which the value of the time column is either >= 10 and < 20 or >= 50 and < 60. Both the pha and time filters must be satisfied for a row to pass the filter. The binning command says that for each row passing the filter, use the values of the x and y columns to find out which pixel of the result image the row contributes to. Finally, the [myimage] specifies that the name (FITS EXTNAME and HDUNAME) of the resulting image is "myimage". Example 2[(x,y)=circle(412.2,512.11,20.3)] This example illustrates region filtering. Here a two-dimensional column is filtered using regions syntax. In this example, only records whose x,y values are in a circle of radius 20.3 centered on 412.2, 512.11 are selected. Example 3[(x,y)=region(saoimage.reg)] A special "region" type is the file region, allowing you to filter on ascii region files created by programs like SAOIMAGE and DS9. In this example only records whose x,y values are contained within the region saved in the file saoimage.reg are selected. See `ahelp dmregions' for more information. BugsSee the bugs page for the Data Model library on the CIAO website for an up-to-date listing of known bugs. |
![]() |
The Chandra X-Ray
Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA. Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2004. All rights reserved. |