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/calgetdetector.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 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.

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.

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.