Downloading CIAO 4.15.1 and CALDB 4.10.4
The download page provides the basic steps needed to install CIAO 4.15.1 and CALDB 4.10.4 into a new conda environment. For additional details, including how to upgrade an existing environment, users should read the Installing CIAO with conda thread.
Also be sure to review the list of known issues and conflicts with other packages on the conda installation bug page as well as the conda FAQs.
conda is the preferred method to install CIAO. Users who prefer to use the ciao-install script can skip to the bottom of this page; some users find this a simpler installation process if they do not need third-party applications such as astropy or scipy.
Please be aware of the following issues before installing CIAO 4.15.1 (see the watchout page for more information):
ciao-install edition of CIAO 4.15.1 only supports Python 3.9
- Problem with plotting using sherpa and scripts such as deflare/lc_clean
- must install recent versions of XQuartz and XCode
- if using conda, use the Intel x86-64 MacOS distribution and not the ARM64 distribution
CIAO 4.15.1 does not support 32-bit Linux, CentOS6, or macOS High Sierra (10.13) and earlier.
Fontconfig error: Cannot load default config file can be ignored as long as the test reports PASS.
Verify conda version. Users should be using conda version 4.7.6 or newer.
$ conda --version conda 4.8.3
If conda is not installed - that is the following fails
$ conda --version conda: Command not found.
then users can install miniconda from the Anaconda website.
Install CIAO into a new conda environment.
$ conda create -n ciao-4.15 \ -c https://cxc.cfa.harvard.edu/conda/ciao \ -c conda-forge \ ciao sherpa ds9 ciao-contrib caldb_main marx python=3.10
CIAO-4.15.1 is available with Python 3.10, 3.9, or 3.8. Unless a different version is needed, users should specify python=3.10, otherwise the default will be determined based on the other packages available on conda-forge channel at the time of installation. To request a specific version, use python=3.8, python=3.9, or python=3.10 to the conda create line.Installation on Apple Silicon Systems
CIAO is only available as Intel x86-64 binaries. Users of Apple Silicon-based systems (M1, M1 Pro/Max/Ultra, and M2) must use an Intel x86-64 MacOS version of python. Depending on the version/architecture of conda that is installed, some users may get an error message that looks like this:
PackagesNotFoundError: The following packages are not available from current channels: - sherpa - ciao - ds9 - marx Current channels: - https://cxc.cfa.harvard.edu/conda/ciao/osx-arm64 ...
Note the reference to the osx-arm64. If this error occurs, then users can tell conda to install the Intel x86-64 version using the CONDA_SUBDIR environment variable
$ env CONDA_SUBDIR=osx-64 conda create -n ciao-4.15 \ -c https://cxc.cfa.harvard.edu/conda/ciao -c conda-forge \ ciao sherpa ds9 ciao-contrib caldb_main marx python=3.10 $ conda activate ciao-4.15 $ conda config --env --set subdir osx-64
The first command tells conda to install the Intel x86-64 binaries. The second and third commands ensure that any updates or additional packages added to that environment will continue to use the Intel x86-64 versions.
Users may also wish to include packages such as jupyter, astropy, and scipy into their new CIAO conda environment. The caldb_main package is the base CalDB, while the additional background files are contained in the acis_bkg_evt and hrc_bkg_evt packages. The caldb package is the entire CalDB which can be used in lieu of the three previously mentioned CalDB packages.Upgrade CIAO 4.15 to CIAO 4.15.1
Users who already have a CIAO 4.15 environment can upgrade it to CIAO 4.15.1 by updating the ciao, ciao-contrib, and ds9 packages:
$ conda install -n ciao-4.15 \ -c https://cxc.cfa.harvard.edu/conda/ciao \ -c conda-forge \ ciao=4.15.1 ds9=8.4.1 ciao-contrib=4.15.1
or users can choose to create a separate environment for CIAO 4.15.1.CIAO 4.15.1 requires conda-forge channel
Updating to the latest version of XSpec requires CIAO to use a version of libgfortran which is not available in the default channel. Users will therefore need to include the conda-forge channel when they install CIAO 4.15.1.
It is strongly recommended to create a new conda environment for CIAO 4.15.1 rather than trying to upgrade an environment containing an older version of CIAO.Problem with downloading XSPEC models or CALDB
Users experiencing problems downloading the CALDB files and/or the XSPEC model files can follow the Alternative download instructions.
Activate the CIAO environment
tcsh% conda activate ciao-4.15 or bash$ source activate ciao-4.15
By default, the terminal prompt will change to show the currently active conda environment. Users can also run the ciaover command to verify that they are setup correctly.
# packages in environment at /export/miniconda/envs/ciao-4.15: # # Name Version Build Channel caldb_main 4.10.4 0 https://cxc.cfa.harvard.edu/conda/ciao ciao 4.15.1 py310h50a7cbf_0 https://cxc.cfa.harvard.edu/conda/ciao ciao-contrib 4.15.1 py_1 https://cxc.cfa.harvard.edu/conda/ciao ds9 8.4.1 0 https://cxc.cfa.harvard.edu/conda/ciao sherpa 4.15.0 pypi_0 pypi System information: Linux is_awesome.cfa.harvard.edu 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Users may want to create an alias so that they only need to type ciao to activate their environment.MARX setup
If you installed marx then you should do the following, so that scripts such as simulate_psf and the dax options in DS9 will work correctly:
$ conda env config vars set MARX_ROOT=$CONDA_PREFIX
This command only needs to be run once.
If you are going to be using marx directly then you can find the parameter files in the directory
- Run the CIAO smoke tests:
$ cd $ASCDS_INSTALL/test $ make
If there are any errors reported during the smoke tests, users can check the smoke test bugs page for possible solutions.
- Finished! CIAO is now installed and you can being your data reduction and analysis work.
The CXC now suggests that users install CIAO using the conda package management system. This method allows users to more easily add 3rd party Python packages into their environment.
Alternatively, users can install CIAO using the ciao-install script. Follow this link for instructions:
Send an email message to: firstname.lastname@example.org