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/calsetinstrument.html
AHELP for CIAO 4.0 calSetInstrument Context: caldb

Synopsis

Sets the name of the instrument in the CALDB structure.

Syntax

calSetInstrument( Caldb_Type cal, String_Type name )

Description

This function sets the value of the instrument field in the CALDB structure. The case does not matter (it gets converted to upper case when actually querying the CALDB).

This field corresponds to the value of the FITS INSTRUME keyword and the instrument parameter of quizcaldb; for Chandra data it should be set to "ACIS" or "HRC".

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> calSetInstrument( cal, "hrc" );

Bugs

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

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.