| 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")
TrueThe 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

![[CIAO Logo]](../imgs/ciao_logo_navbar.gif)