|
|
Matching CIAO and CALDB VersionsCALDB 4.1.4 should not be used unless you are running CIAO 4.1 or later versions. CIAO 3.4 requires CalDB 3.5.5, available here. Are your versions mismatched? Time to ugrade CIAO and CALDB! 17 Sep 2009 07 Jul 2009 CalDB4.1.3, a patch to all previous CalDB4 versions, has been released. It includes the acis Epoch 37 T_GAIN upgrades (Feb through Apr 09). See the CalDB 4.1.3 release notes for more information.27 Mar 2009 CALDB 4.1.2, a patch to CalDB 4.1.0 or 4.1.1, has been released. It includes the ACIS Epoch 36 T_GAIN updates for Nov 08 through Jan 09. See the CalDB 4.1.2 release notes for more information.21 Jan 2009 CalDB 4.1.1 was released. It includes upgrades to the HRMA Effective Area and the HETG 1st-order grating efficiencies. See the CalDB 4.1.1 for more information on this upgrade.15 Dec 2008 CalDB 4.1.0, a new CalDB structure for CIAO 4.1, which includes ACIS -120C EPOCH 35 (Aug - Oct 08) T_GAIN updates, was released. See the CalDB 4.0 and CalDB 4.1.0 release notes for more information on this new installation. |
Querying the CALDBMany of the CIAO tools - such as acis_process_events, mkwarf, and tg_resolve_events - access the CALDB in order to obtain calibration files to apply to the data. Instead of requiring the user to specify the exact filename and path, the tools use header information and other parameter values to find the necessary files from the CALDB. It is also possible to query the CALDB directly. There are three pieces of information that are needed:
The sections below descibe the methods you can use to access the CALDB: S-Lang InterfaceThe "caldb" module is a S-Lang interface to the CALDB library. One way to use the module to find the ACIS-S gainmap for an observation taken on 15 December 2001 is:
chips> import("caldb")
chips> cal = calCreateInfo()
chips> calSetTelescope( cal, "Chandra" )
chips> calSetInstrument( cal, "ACIS" )
chips> calSetData( cal, "DET_GAIN" )
chips> calSetDate( cal, "2001-12-15T00:00:00" )
chips> calFindFile( cal )
/soft/ciao/CALDB/data/chandra/acis/bcf/gain/acisD2000-08-12gainN0003.fits[AXAF_DETGAIN]
FTOOLSThe FTOOLS commands for the CALDB can be seen using the command "fhelp caltools". The commands of interest for a user include quzcif and caldbinfo. In order to use the CALDB, you must have the environment variables $CALDB, $CALDBALIAS, and $CALDBCONFIG defined. If your copy of the CALDB exists under /data/CALDB, then sourcing the script /data/CALDB/software/tools/caldbinit.unix will set up those environment variables and enable you to access files with the FTOOL quzcif. quzcif is the basic routine used for selecting a file from the CALDB index. You can learn about the full form of this command, including how to invoke a bounded coordinate value, by using the fhelp quzcif command. The general form for the command is: unix% quzcif telescop instrume detnam filter ccname yyyy-mm-dd hh:mm:ss boundaries To omit searching on a given element, substitute a dash (-). For example, to get the gain file for an observation taken on Sept 30, 1999, you would enter: unix% quzcif chandra acis - - det_gain 1999-09-30 00:00:00 - /data/CALDB/data/chandra/acis/bcf/gain/acisD1999-09-16gainN0004.fits 1 The tool returns the file it located which matches the requested conditions, as well as the extension number (1) of the dataset. |
![]() |
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. |