Sets the data product code name for the next CALDB query.
calSetData( Caldb_Type cal, String_Type name )
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.
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.
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.
- caldb
-
calcreateinfo,
calfindfile,
calgetdata,
calgetdate,
calgetdetector,
calgeterror,
calgetfilter,
calgetinstrument,
calgetquery,
calgettelescope,
calgettime,
calprintinfo,
calsetdata,
calsetdate,
calsetdetector,
calsetexpression,
calsetfilter,
calsetinstrument,
calsettelescope,
calsettime
- modules
-
caldb
|