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

Synopsis

Returns the name of the detector stored in the CALDB structure.

Syntax

String_Type calGetDetector( Caldb_Type cal )

Description

This function returns the value of the detector field in the CALDB structure.

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 1

  variable cal = calCreateInfo( "img.fits" );
  variable det = calGetDetector( cal );
  vmessage( "The detector used to create img.fits is %s", det );

Example 2

  variable det = calGetDetector( cal );
  variable t = strtok( det, "-" );
  vmessage( "Detector: %s  chips: %s", t[0], t[1] );

If the detector was "ACIS-01236" then the above code would print out:

  Detector: ACIS  chips: 01236

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.