About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: 16 June 2008

Why do I get a parse error with this region file?

# Region file format: CIAO version 1.0	
-rotbox(4055.375,4165.5674,4.6747966,4.4715447,63.400002)
annulus(4059.5601,4163.4399,2.0325203,7.113821)

Since the software processes the shapes in their listed order, CIAO attempts to exclude this shape from an area that has not yet been defined. The field() region, which defines the entire field of view, can be added to the beginning of the region file to avoid syntax errors:

# Region file format: CIAO version 1.0
field()
-rotbox(4055.375,4165.5674,4.6747966,4.4715447,63.400002)
annulus(4059.5601,4163.4399,2.0325203,7.113821)

Note that the order of the regions does matter; if you intend for the box to be excluded from the annulus:

# Region file format: CIAO version 1.0
field()
annulus(4059.5601,4163.4399,2.0325203,7.113821)
-rotbox(4055.375,4165.5674,4.6747966,4.4715447,63.400002)

See the Using CIAO Region Files thread and ahelp dmregions for more information.



Last modified: 16 June 2008


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.