33 Shows the content of the ctools calibration database.
35 The ``cscaldb`` script writes the content of the calibration database
36 into the ``cscaldb.log`` log file. If the ``debug`` parameter is set
37 to ``yes`` the calibration database is also logged in the console.
48 List of IRAF command line parameter strings of the form
54 An invalid number of command line arguments was provided.
57 self._init_cscript(self.__class__.__name__, ctools.__version__, argv)
69 self._log_parameters(gammalib.TERSE)
81 paths = glob.glob(caldb.rootdir()+
'/data/*')
84 missions.append(os.path.basename(path))
99 paths = glob.glob(caldb.rootdir()+
'/data/'+mission+
'/*')
102 instruments.append(os.path.basename(path))
119 nrows = calibrations.nrows()
120 ncols = calibrations.number()
121 for row
in range(nrows):
122 for col
in range(ncols):
123 cal = calibrations.string(row, col)
124 istart = cal.find(
'NAME(')
126 istop = cal.find(
')')
128 if names.count(name) == 0:
147 caldb = gammalib.GCaldb()
153 for mission
in missions:
160 self._log_header1(gammalib.TERSE,
'Mission: '+mission)
166 for instrument
in instruments:
169 self._log_header3(gammalib.TERSE,
'Response functions in database "'+
173 filename =
'/data/'+mission+
'/'+instrument+
'/caldb.indx'
174 cifname = caldb.rootdir() + filename
175 fits = gammalib.GFits(cifname)
177 caltable = cif[
'CAL_CBD']
195 if __name__ ==
'__main__':