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 2006

URL: http://cxc.harvard.edu/ciao3.4/calsetdata.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 calSetData Context: caldb

Synopsis

Sets the data product code name for the next CALDB query.

Syntax

calSetData( Caldb_Type cal, String_Type name )

Description

This function sets the code name of the calibration file that calFindFile() will search for, for example "DET_GAIN" for the detector gain table for ACIS data. The full list of names can be found in the Codename column of table 2 of the CALDB description page. Note that some searches require additional boundary conditions to be set up, as described in "ahelp calSetExpression".

This field matches the codename parameter of the quizcaldb tool and the case of the string does not matter.

Example 1

chips> cal = calCreateInfo("evt2.fits")
chips> calSetData( cal, "CONTAM" )
chips> file = calFindFile( cal )

Here we have set up the CALDB query with values taken from the header of the file evt2.fits, set the field to "CONTAM", and queried the CALDB.

Example 2

chips> cal = calCreateInfo("evt2.fits")
chips> calSetData( cal, "DET_GAIN" )
chips> calSetExpression( cal, "cti_corr.eq.yes" )
chips> file = calFindFile( cal )

Here we have set up the CALDB query with values taken from the header of the file evt2.fits, set the field to "DET_GAIN", the boundary condition to restrict the search to CTI-corrected data only, and then queried the CALDB.

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 2006



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.