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