Last modified: December 2013

URL: https://cxc.cfa.harvard.edu/ciao/ahelp/is_virtual.html
Jump to: Description · Example · Bugs · See Also


AHELP for CIAO 4.17

is_virtual

Context: crates

Synopsis

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

Syntax

is_virtual(crate, colname)

Description

Argument Description
crate A Crate object such as a TABLECrate or IMAGECrate
colname The column name (case insensitive).

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.


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