Skip to the navigation links
Last modified: December 2009

URL: http://cxc-newtest.cfa.harvard.edu/ciao4.2/is_virtual.py.html
AHELP for CIAO 4.2

is_virtual

Context: py.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 "1" if the specified column is a virtual column and "0" if it is not; see "ahelp dm" for information on virtual columns.

Example

>>> cr = read_file("evt2.fits")
>>> is_virtual(cr, "time")
0
>>> is_virtual(cr, "eqpos")
1

An event file is read into the crate "cr". The is_virtual command is used to determine that the eqpos(ra,dec) column is virtual, but the time column is not.

Bugs

See the bug pages on the CIAO website for an up-to-date listing of known bugs.

See Also

py.crates
add_col, col_exists, copy_colvals, delete_col, get_col, get_col_names, get_colvals, get_number_cols, is_arf, is_pha, is_rmf, key_exists, print_col_names, set_colvals

Last modified: December 2009