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

URL: http://cxc.harvard.edu/ciao/is_rmf.html
AHELP for CIAO 4.4

is_rmf

Context: crates

Synopsis

Determine if the crate dataset contains an RMF.

Syntax

is_rmf(cratedataset)

Description

The is_rmf command returns True if the crate dataset contains an RMF and False otherwise.

Example

>>> cds = read_rmf("src.rmf")
>>> is_rmf(cds)
True

Changes in CIAO 4.4

Input argument

RMF files are now stored as CrateDataset objects rather than Crates. So a RMF file read in by read_file will not return True when passed to is_rmf.

Return value

The return value is now True or False rather than 1 or 0.

Bugs

See the bug pages 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

crates
col_exists, is_pha, is_virtual, key_exists, read_rmf, write_rmf

Last modified: December 2011
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.