- Introduction
-
Header
Keywords
-
Directory
Structure
-
Indexing
System
-
Versioning
- Download the CALDB
-
Download Version
3.4.5
-
Release Notes
- Caveats for the Chandra CALDB
-
ACIS N0005
Responses Suite Caveat
- Querying the CALDB
- Calibration Data
- Proposal Planning
- References
- CXC Links
- CIAO (Data Analysis)
- Site Map
Matching CIAO and CALDB Versions
CALDB 3.4.5 should not be used unless you are running CIAO
3.4 or CIAO 4.0.
Are your versions mismatched? Time to update CIAO
and CALDB!
23 Jun 2008 ![[New]](../imgs/new.gif)
CalDB 3.4.5, an
upgrade to CalDB 3.3.0 or later versions, which includes only
ACIS -120C EPOCH 33 (Feb - Apr 08) T_GAIN updates, has been
released to the public. See the
CalDB 3.4.5 release notes for more
information on this upgrade.
31 Mar 2008
CalDB 3.4.3, an
upgrade to CalDB 3.3.0 or later versions, which introduces ACIS
-110C "Epoch 0" T_GAINs for ACIS-S1 and -S3, and ACIS -120C EPOCH
32 (Nov 07 - Jan 08) T_GAIN updates, has been
released to the public. See the
CalDB 3.4.3 release notes for more
information on this upgrade.
14 Dec 2007
CalDB 3.4.2, an
upgrade to CalDB 3.3.0 or later versions, which updates ACIS
T_GAINs for Aug - Oct 2007, has been
released to the public. See the
CalDB 3.4.2 release notes for more
information on this upgrade.
14 Sep 2007
CalDB 3.4.1, an
upgrade to CalDB 3.3.0 or later versions, which introduces new and
finalized ACIS blank sky, T_GAIN, and HRC-I DEGAP files, has been
released to the public. See the
CalDB 3.4.1 release notes for more
information on this upgrade.
16 May 2007
CalDB 3.4.0, an
upgrade to CalDB 3.3.0/3.3.0.1, which introduces new ACIS
T_GAIN, grating mask files, as well as upgrades to
HRC-I GMAPS and HRC-S QE, has been
released to the public. See the
CalDB 3.4.0 release notes for more
information on this upgrade.
|
Downloading CALDB 3.4.5
CalDB 3.4.5 released 23 JUN 2008
Contents:
The easiest way to determine which version of the Chandra CalDB
you currently have installed, is to search the last line of the
caldb_version.fits file under
$CALDB/docs/chandra/caldb_version/. An appropriate CIAO command for
this purpose is as follows:
unix% dmlist \
$CALDB/docs/chandra/caldb_version/caldb_version.fits"[cols CALDB_VER]" \
data,clean | tail -1
Naturally you will need to have loaded CIAO and have $CALDB
assigned in order to do this.
If your site has already installed CalDB 3.3.0 or later version
since version
3.3.0 was released on 18 December 2006, you may elect simply to install
the 3.4.5 upgrade by using the "upgrade" file in
Table 2
of the download page. Follow instructions 1-4 in this
section to use the upgrade tar ball.
If you have an earlier version of the CalDB installed than
3.3.0, proceed to the instructions for a Full Installation. You CANNOT upgrade
your CalDB version 2.x or 3.2.x or earlier version to 3.4.5 using the "upgrade" file in
Table 2.
-
Change directories to the existing CALDB location.
-
Download the CalDB 3.4.5 upgrade gzipped tar file.
-
NOTE: If you have not upgraded to CalDB version 3.4.1
previously, you probably need to download and
install the latest ACIS blank-sky background files, which
are packaged separately. Here are the instructions:
Download the ACIS background file tar ball
acis_bkgrnd_3.4.1.tar.gz
-
Unzip the two tar balls using gunzip.
We prefer you then un-tar both unzipped tar balls using gtar xvUf. (You must
include the "U" option so that the command will
appropriately reset the links to the index files and your
upgrade will be properly installed.) If you do not have
gtar installed locally, you may use tar xvf instead.
unix% gunzip caldb_3.4.5_upgrade.tar.gz
unix% gunzip acis_bkgrnd_3.4.1.tar.gz
unix% gtar xvUf caldb_3.4.5_upgrade.tar
uniz% gtar xvUf acis_bkgrnd_3.4.1.tar
-
UPGRADE FINISHED! Proceed to
Check the index configuration below.
The instructions for installing the CALDB are basically the
same whether you are creating a local or sitewide installation.
-
Select a location for your CALDB at your site. This
directory needs to be accessible by all users who are
running CIAO.
If you are attempting to upgrade your existing CalDB version
2.x, you may install the files below in the same directory you used
before, or you may elect to rebuild your CalDB in a new
location.
-
Download CALDB 3.4.5 Full Installation from
Table
1. There are four tar ball files in all,
including the "main" tar ball.
The ACIS Background files have been
packaged separately to reduce the space requirements for
CalDB when users don't need the background datasets. These
background files have now been upgraded with CalDB 3.4.1, as
of 14 Sep 2007. They
add about 668 MB to the total size of the
CalDB. Still, if they are necessary, they can be downloaded
rather quickly and unpacked AFTER the MAIN 3.4.5 tarball has
been unpacked. We clearly recommend downloading and
installing these files on multi-user sites.
Note that the PSF library files are individually gzipped, then
tarred together. It is not necessary to include all these
files in the installation as they require a lot of disk space
(approximately 6.5 GB); see the PSF Library
Manual to determine which files you will require.
For sitewide installations (i.e. installations maintained by a
systems administrator), it may be preferable to unpack them
all if space allows.
-
From within the CALDB directory, gunzip and untar the
main file, e.g.:
unix% gunzip caldb_3.4.5_main.tar.gz
unix% gtar xvUf caldb_3.4.5_main.tar
If you use gtar, then you should use the xvUf
(include the "U" option) in case there are
filename conflicts which may not be appropriately clobbered.
If you do not have access to gtar then you may use
tar xvf instead without worry.
The result will be three directory trees at that level, namely
docs, data, and software:
unix% ls
data/ docs/ software/
The docs directory contains the manifests and
versioning files. while software/ contains the
tools. The data directory is most important,
containing the full CALDB data directory tree.
-
Unzip and untar the ACIS background package, unless you are
certain that you will not need any of the blank-field files
for making background datasets. Typically observers of
extended sources need these files. We recommend multi-user
sites to download and install these files in case anyone in
your group needs them. NOTE: By unzipping the tarball in the
SAME LOCATION AS THE MAIN TARBALL, you get the bkgrnd files
exactly where you will want them.
NOTE: The ACIS blank-sky background files
have been upgraded as of CalDB 3.4.1 (14 Sep 2007). Therefore
you must download and install the files below to have the
most up-to-date BKGRND files, and for the script
"acis_bkgrnd_lookup" to work properly.
unix% gunzip acis_bkgrnd_3.4.1.tar.gz
unix% gtar xvUf acis_bkgrnd_3.4.1.tar
-
Optional: untar the PSF library files. The
gzipped files will be placed in the ACIS or HRC branch. To
unzip the files (which will require 6.5 GB of extra space),
move to the appropriate directory - either
./data/chandra/acis/cpf/2dpsf/ (ACIS) or
./data/chandra/hrc/cpf/2dpsf/ (HRC) - and
gunzip the files individually.
-
Delete the tarfiles in order to save space. You may wish to
complete the installation and verify
that the CALDB is working before doing so.
To ensure that the index files are linked correctly, run this
ls command from your CALDB directory:
unix% ls -l data/chandra/*/caldb.indx
ls -l data/chandra/*/caldb.indx
lrwxrwxrwx ... data/chandra/acis/caldb.indx -> ./index/caldbN0044.indx
lrwxrwxrwx ... data/chandra/ephin/caldb.indx -> ./index/caldbN0002.indx
lrwxrwxrwx ... data/chandra/hrc/caldb.indx -> ./index/caldbN0036.indx
lrwxrwxrwx ... data/chandra/pcad/caldb.indx -> ./index/caldbN0014.indx
lrwxrwxrwx ... data/chandra/sim/caldb.indx -> ./index/caldbN0004.indx
lrwxrwxrwx ... data/chandra/tel/caldb.indx -> ./index/caldbN0014.indx
where "..." represents the file owner and timestamp.
Check that the results from your system match those shown
here.
The first part of this step requires that you have FTOOLS
available; if you do not, skip to
the quizcaldb example. Note that you do not need
FTOOLS in order to use the CALDB with CIAO, only for this
verification step.
- chkcif
-
The FTOOL chkcif is the method for verifying the
installation of a CALDB after unpacking it. chkcif
("check CALDB index file") reads the index listings and
-
verifies that the index for a given instrument is present
and in the proper form.
-
verifies that all ONLINE files in the index are present in
the CALDB. If a file that is indexed as ONLINE is missing,
the tool reports it to STDOUT and then exits with an error
status.
-
lists the OFFLINE files as offline and does not check for
them.
A file that is marked OFFLINE is not included in the CalDB
directory structure. By the HEASARC standard, such a file
might be available in an off-line system such as another disk
drive or a web location, and isn't accessible by chkcif. For
the Chandra CalDB, "OFFLINE" indicates that a file has been
removed from circulation, and is NO LONGER AVAILABLE, and
should not be used. Hence, when chkcif returns that a file is
OFFLINE, this is normal behavior for the CalDB, and
does not indicate any problem with your configuration.
Note that the tool does not verify that each calibration file
is whole or uncorrupted, only that it exists in the proper
location in the directory structure.
Note that you need to start CIAO in the working window
(to define some environment vairables) before running
chkcif. In this example, CIAO is installed in
/soft/ciao:
unix% source /soft/ciao/bin/ciao.csh
unix% chkcif chandra acis STDOUT
** chkcif 1.1.4
... Contents of CIF /soft/ciao/CALDB/data/chandra/acis/caldb.indx verified
... See STDOUT
for more information
** chkcif 1.1.4 completed successfully
This command needs to be repeated for all the Chandra
CALDB instrument branches, namely "hrc", "ephin", "pcad",
"sim", and "tel".
IMPORTANT: IF the ACIS background
files have not been downloaded and unpacked, AND/OR
if the ACIS PSF library has
not been downloaded and unpacked, then the ACIS branch will
report errors, as shown
in this example. Otherwise, the tool
should return the "chkcif ... completed successfully" line
for each instrument, verifying that the CALDB is correctly
installed. The same holds for the HRC branch if the
HRC PSF library is not downloaded.
- quizcaldb
-
It is also possible to test the installation by querying for a
particular file with quizcaldb; see the
Querying the CALDB
page for more information on queries.
First, start CIAO in the working window. In this example, we
request the ACIS phase 2 response input file (mkacisrmf) for an observation taken on 28 June
2001 at 11:00:00 UTC, reprocessed with a CTI-correction
applied only to the FI chips. Let us say we are analyzing
data from ACIS-S3 (CCD_ID=7):
unix% quizcaldb infile="none" mission="chandra" instrument="ACIS" \
detector="-" date="2001-06-28" time="11:00:00" filter="-" \
codename="SC_MATRIX" expr="ccd_id.eq.7.and.cti_app.eq.pppppnpnpp"
/soft/ciao/CALDB/data/chandra/acis/cpf/p2_resp/acisD2000-01-29p2_respN0005.fits[AXAF_CTI_SCATTER_G]
The filename and extension ("FUNCTION") are returned by
quizcaldb, indicating that the tool was able to
access the CALDB properly. In this case, the CALDB directory
in located in /soft/ciao/CALDB/.
|