Chandra X-Ray Observatory
Skip to the navigation links
Last modified: 13 March 2017

What does this Data Model error mean?

# DMCOPY (CIAO): DM Parse error: cannot mix EXCLUDE and FILTER

The Data Model cannot combine an exclude filter with any other kind of filter. In this example, the combination of exclude and the energy range filter produces the error:

unix% dmcopy file.fits"[exclude sky=region(mask.fits)][energy=300:5000][bin det=8]" out.fits

Failed to open virtual file file.fits[exclude sky=region(mask.fits)][energy=300:5000][bin det=8]
# DMCOPY (CIAO): DM Parse error: cannot mix EXCLUDE and FILTER

The filtering can be split into two separate dmcopy commands to apply the mask and the energy filter to the file:

unix% dmcopy file.fits"[exclude sky=region(mask.fits)]" file_masked.fits
unix% dmcopy file_masked.fits"[energy=300:5000][bin det=8]" out.fits

Last modified: 13 March 2017
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email: Smithsonian Institution, Copyright © 1998-2017. All rights reserved.