Last modified: December 2022

URL: https://cxc.cfa.harvard.edu/ciao/ahelp/check_ciao_caldb.html
AHELP for CIAO 4.17

check_ciao_caldb

Context: Tools::Utilities

Synopsis

A tool to test the installation of the CIAO Calibration Database (CALDB)

Syntax

check_ciao_caldb
check_ciao_caldb --latest

Description

The check_ciao_caldb tool allows users to easily check that the CIAO Calibration Database (CALDB) is installed correctly. It is intended to be used after installing or upgrading CIAO, or to help diagnose problems seen with other CIAO toos.

The tool only tests the basic installation, and so provides a quick and easy test. It does not perform the same verification steps as either the calvalid tool from CIAO (see "ahelp calvalid") or the the chkcif tool from the FTOOLS package (as described on the Download the CIAO CALDB page), which should be used for a more thorough evaluation.

Tool behavior

As shown in the example below, the tool will print out some basic information on the CALDB installation, and then exit with a status value of 0 when the installation is correct. If there is a problem then an error message will be displayed and the exit status will be set to a non-zero value.

The --latest flag

Calling the script with the --latest flag will check whether there are any newer versions of the CALDB available. This step requires internet access. If a newer version is available then see the CALDB downloads page or the ciao_install thread.

Availability

The check_ciao_caldb tool is part of the CIAO contributed scripts package which should have been included as part of the CIAO installation.


Examples

Example 1

unix% check_ciao_caldb

The tool accepts no arguments. If the Chandra CALDB is set up correctly then you should see something like the following:

CALDB environment variable = /soft/ciao-4.2/CALDB
             CALDB version = 4.2.2
             release date  = 2010-04-19T19:00:00 UTC
CALDB query completed successfully.

The actual output will vary depending on where, and what version, of the CALDB is installed.

Example 2

unix% check_ciao_caldb --latest

As the --latest flag has been given, the tool also checks whether there is a newer version of the CALDB available. The extra screen output will either be:

The CALDB installation is up to date.

when there is no newer version available, or

ERROR: The latest available CALDB version is <latest version>

for when there is.


What is checked?

The script is intended to provide a simple check of the CALDB installation, to pick up some of the common problems seen in HelpDesk tickets, rather than a complete check of the integrity of the Chandra CALDB. It therefore just checks that:

The script does not check for any ancillary CALDB products that may have been installed, such as the ACIS background files or the PSF libraries.

Version check

The --latest flag causes the script to look at the CALDB release notes page to look for the latest version released for CIAO, and this value is compared against the version of the local CALDB installation.

Changes in the scripts 4.12.3 (July 2020) release

The script has been updated to handle a change in how the CALDB indexes the ACIS DET_GAIN files, as this is used as a query to check the installation is correct. Users with old versions of the script will see the warning message:

WARNING: 2 matches found for DET_GAIN query, expected only 1.
 match = /soft/ciao/CALDB/data/chandra/acis/det_gain/acisD2000-01-29gain_ctiN0008.fits[1]
 match = /soft/ciao/CALDB/data/chandra/acis/det_gain/acisD2000-01-29gain_ctiN0008.fits[1]

when running the script.

Changes in the scripts 4.8.1 (December 2015) release

The code has been updated to avoid warning messages from NumPy version 1.9. There is no difference to how the script behaves.

About Contributed Software

This tool is not an official part of the CIAO release but is made available as "contributed" software via the CIAO scripts page. Please see this page for installation instructions.


Bugs

See the bugs page on the CIAO website for an up-to-date listing of known bugs.

Refer to the CIAO bug pages for an up-to-date listing of known issues.

See Also

tools::caldb
calindex, calmerge, calquiz, calvalid
tools::utilities
check_ciao_version