Returns the name of the detector stored in the CALDB structure.
String_Type calGetDetector( Caldb_Type cal )
This function returns the value of the
detector field in the CALDB structure.
variable cal = calCreateInfo( "img.fits" );
variable det = calGetDetector( cal );
vmessage( "The detector used to create img.fits is %s", det );
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
- caldb
-
calcreateinfo,
calfindfile,
calgetdata,
calgetdate,
calgetdetector,
calgeterror,
calgetfilter,
calgetinstrument,
calgetquery,
calgettelescope,
calgettime,
calprintinfo,
calsetdata,
calsetdate,
calsetdetector,
calsetexpression,
calsetfilter,
calsetinstrument,
calsettelescope,
calsettime
- modules
-
caldb
|