Data Model (DM)
The Chandra Data Model (DM) separates the structure of the data from the file format in which it is stored, which means that any program that uses the DM (e.g. the CIAO tools) is not format-specific. In short, the Data Model reads and writes multiple formats (e.g. FITS images and tables; IRAF imh).
All tools that use the Data Model have built-in filtering and binning on the command line, including the full regions syntax. For instance, an output source list from wavdetect can be filtered by dmcopy to create an event list excluding point sources. The Data Model stores the filtering applied to a file in the data subspace.
The Introduction to the Data Model thread is a starting guide to how to use the Data Model.
Also see the DM ahelp page or the DM manuals.