wiki:jwst_calcode_install

Installation

Using CRDS command line tools requires installation of the following:

  1. Install Continuum's Miniconda (or Anaconda)
$ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
$ sh Miniconda3-latest-Linux-x86_64.sh

assuming you used the default installation directory, on Linux, update your .bash.exports to include

export PATH="$HOME/miniconda3/bin:$PATH"
  1. Install and activate SSB's crds-file-submission environment for JWST
$ conda create -n crds-file-submission -c http://ssb.stsci.edu/conda-dev stsci jwst
$ source activate crds-file-submission # conda has sh support only,  csh is not supported

Conda has the concept of "channels", i.e. web sources for packages that build on conda. The http://ssb.stsci.edu/conda-dev channel is updated nightly.

Conda has the concept of "environments", shown here as "crds-file-submission". You can choose a different name and/or install into another environment. Using environments helps to control change and reduce conflicts with other systems of packages.

  1. Install additional CRDS dependencies used for file certification

crds.certify can use the cfitsio package to run fitsverify as part of certifying FITS files provided that you install cfitsio and use the --run-fitsverify switch when certifying FITS reference files.

$ conda install -n crds-file-submission  cfitsio fitsverify parsley
  1. (optional) Install development JWST calibration code (only when specifically needed, not conda friendly)
$ conda remove -n crds-file-submission  jwst
$ git clone https://github.com/spacetelescope/jwst.git JWST
$ cd JWST
$ python setup.py install
  1. (optional) Install development CRDS (only when specifically needed, not conda friendly)
$ conda remove -n crds-file-submission  crds
$ git clone https://github.com/spacetelescope/crds.git  CRDS
$ cd CRDS
$ ./install
  1. Try CRDS
$ crds list --status
CRDS Version = '7.2.6, 7.2.6, 44aa309'
CRDS_MODE = 'auto'
CRDS_PATH = '/Users/jmiller/crds_cache_ops'
CRDS_SERVER_URL = 'https://jwst-crds.stsci.edu'
Cache Locking = 'enabled, multiprocessing'
Effective Context = 'jwst_0489.pmap'
Last Synced = '2018-10-03 12:12:59.769277'
Python Executable = '/Users/jmiller/anaconda3/envs/dev/bin/python'
Python Version = '3.6.6.final.0'
Readonly Cache = False
  1. See Also Conda-Dev and You
Last modified 2 months ago Last modified on 10/03/18 12:13:22