About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2007

URL: http://cxc.harvard.edu/ciao4.0/calsetexpression.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 4.0 calSetExpression Context: caldb

Synopsis

Sets the boundary condition(s) for the CALDB query.

Syntax

calSetExpression( Caldb_Type cal, String_Type expr )

Description

This routine sets the expression used to define the boundary condition, or conditions, of the CALDB search when calFindFile() is called. A value of "-" means that no boundary conditions are to be used.

This field corresponds to the expr parameter of the quizcaldb tool. The conditions are expressed using a syntax similar to FORTRAN boolean expressions, so that

cti_app.eq.PPPPPNPNPP

means that only those files relevant for CTI-corrected data should be searched, while

cti_app.eq.NNNNNNNNNN.and.ccd_id.lt.4

means to look for data relevant to non CTI-corrected data whose ccd_id field is less than 4 (i.e. the ACIS-I array).

Note that the routine to get the current boundary condition from a CALDB structure is called

calGetQuery()

The caldb module is not available by default; to use it in a S-Lang program, it must be loaded using the S-Lang require() function:

  require("caldb");

Example

slsh> cal = calCreateInfo;
slsh> calSetExpression( cal, "cti_app.eq.PPPPPNPNPP" );

Bugs

See the bugs page for the caldb library on the CIAO website for an up-to-date listing of known bugs.

Hardcopy (PDF): A4 | Letter
Last modified: December 2007



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-2004. All rights reserved.