Skip to content

Centos 7 Installation

Simon Torres edited this page Jun 25, 2017 · 6 revisions

Installing on Centos 7

I'm assuming that python2.7 is already installed

  1. You might need to install git first. GIT is the Version Control Software that we are using to develop the Goodman Pipeline along with the GitHub.com site where all the code is permanently stored. Is free and can be accessed at all times.

    $ sudo yum install git
  2. Clone the latest stable version of the pipeline from GitHub

    $ git clone https://github.com/soar-telescope/goodman.git
  3. Go to the folder and you will find several directories and files:

    $ ls
    bin  dist  docs  goodman_ccd  goodman_spec  LICENSE  MANIFEST  OVERVIEW.md  README.md  requirements.txt  setup.py
    
  4. If it is a brand new installation you will need to install pip and python devel

    # First you need to install the EPEL repostory
    $ yum -y install epel-release
    # Then update the database with
    $ yum -y update # This takes a while
    # And Finally install pip
    $ yum -y install python-pip
    # Upgrade pip
    $ pip install --upgrade pip
    # Install python-devel
    $ yum install python-devel
  5. Install requirements

    $ pip install -r requirements.txt
  6. Install Tkinter

    $ yum install tkinter
  7. Now that you have everything do this.

    python setup.py install
  8. Install DCR (Cosmic Ray Rejection) This pipeline uses DCR developed by Wojtek Pych instead of ccdproc.cosmicray_lacosmic because we got better results with DCR. Unfortunately you will have to compile it, I have successfully compiled it on Centos 7, Ubuntu 16.04, Linux Mint 18.1, Solaris 11 and MacOS Sierra.

    1. Follow this link and you can follow the instructions there. The same instructions are reproduced here.

    2. Download the dcr.tar file and untar it.

    tar -xvf dcr.tar
    1. Compile it
    make

    If you don't get any errors you can try it without any arguments and you will get something like this

    $ ./dcr
    
            USAGE:  dcr  input_file  cleaned_file  cosmicrays_file
    
    File 'dcr.par' must be present in the working directory.
          ~~~~~~
  9. Make it available for the system Now that you have compiled the program you have a file called dcr you need to put it in the $PATH variable of your system. I usually use bash so if you use something different follow the example below as a guide.

    1. Create a directory to place the executable
    $ mkdir ~/.bin

    Note that in the example above the directory .bin will be hidden and the symbol ~ denotes your home directory for instance: /home/goodman/ 2. Move dcr to your new folder.

    $ mv dcr ~/.bin
    1. Add the directory to the PATH variable. With your favorite text editor, open the file ~/.bashrc
    $ vim ~/.bashrc

    At the end add the following line.

    export PATH=$PATH:/home/user/.bin
    

    If you don't know your home directory do the following

    $ cd
    $ pwd

    Whatever the output is there you should replace it for /home/user/ 4. Reload the environment variables. For this you can simply close and reopen the terminal or you can do:

    $ source ~/.bashrc
  10. This package include two tools:

    1. redccd Does Standard CCD reduction
    2. redspec Does spectroscopic extraction and wavelength calibration