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

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

is_virtual

Context: crates

Synopsis

Determine if the input column from the crate is a virtual column.

Syntax

is_virtual(crate, colname)

Description

  • crate - input crate
  • colname - the name of the column

The is_virtual command returns True if the specified column is a virtual column and False if it is not; see "ahelp dm" for information on virtual columns.

Example

>>> cr = read_file("evt2.fits")
>>> is_virtual(cr, "time")
False
>>> is_virtual(cr, "eqpos")
True

The is_virtual command is used to determine that the eqpos column is virtual, but the time column is not.

Changes in CIAO 4.4

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

contrib
add_colvals
crates
add_col, col_exists, copy_colvals, delete_col, get_col, get_col_names, get_colvals, get_number_cols, is_pha, is_rmf, key_exists, set_colvals

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.