Chandra X-Ray Observatory (CXC)
Skip to the navigation links
Last modified: December 2012

URL: http://cxc.harvard.edu/ciao/regprintregion.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.5

regPrintRegion

Context: region

Synopsis

Print out fiagnostic details about a region.

Syntax

regPrintRegion(reg)

Description

The regPrintRegion routine prints out diagnostic information about the region - such as the various shapes and components within a region - to stdout.

The region module is not available by default; see "ahelp region" for information on loading the module.

Example 1

>>> from region import *
>>> reg = regParse("circle(10,10,4)")
>>> regPrintRegion(reg)

1 Circle(10.000000, 10.000000, 4.000000) (Pos: pixel, Size: pixel)

Example 2

>>> reg = regParse("circle(10,10,4)-rect(4,2,5,4)")
>>> regPrintRegion(reg)

1 Circle(10.000000, 10.000000, 4.000000) (Pos: pixel, Size: pixel)
1 !Rectangle(4.000000, 2.000000, 5.000000, 4.000000) (Pos: pixel, Size:
pixel)

Bugs

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

Refer to the CIAO bug pages for an up-to-date listing of known issues.

See Also

region
regarea, regextent, reginsideregion, region, regparse, regprintregion, regregionstring

Last modified: December 2012
CXC logo

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-2012. All rights reserved.