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

How can I make a mask from an exposure file?

The tool dmimgthresh may be used to create a mask of an image, e.g. an exposure map.

Flatten all the values greater than 1 to 1:

unix% dmimgthresh infile=expfile.fits outfile=expfile_flat.fits cut=:1 value=1

Then cut the values less than 1 and set them to 0:

unix% dmimgthresh infile=expfile_flat.fits outfile=mask.fits cut=1 value=0 

A sample mask image.

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.