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

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/regextent.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 regExtent Context: region

Synopsis

Calculate the bounding box of a region.

Syntax

(xmin, ymin, xmax, ymax) = regExtent( Region_Type Region )

where xmin, ymin, xmax, and ymax are all Double_Type

Description

The regExtent routine returns the bounding box of a region. It is primarily useful if you wish to use the six-argument form of regArea().

Example

chips> require("region")
chips> reg = regParse("circle(10,10,4)-rect(4,2,5,4)")
chips> (x0,y0,x1,y1) = regExtent( reg )
chips> vmessage( "Bounding box is (%.1f,%.1f) to (%.1f,%.1f)", x0, y0,
x1, y1 )
Bounding box is (6.0,6.0) to (14.0,14.0)

CHANGES IN CIAO 3.2

This function is new to CIAO 3.2.

Bugs

See the bugs page for the region library on the CIAO website for an up-to-date listing of known bugs.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



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.