-
Notifications
You must be signed in to change notification settings - Fork 13
Centos 7 Installation
I'm assuming that python2.7 is already installed
-
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
-
Clone the latest stable version of the pipeline from GitHub
$ git clone https://github.com/soar-telescope/goodman.git
-
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
-
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
-
Install requirements
$ pip install -r requirements.txt
-
Install Tkinter
$ yum install tkinter
-
Now that you have everything do this.
python setup.py install
-
Install DCR (Cosmic Ray Rejection) This pipeline uses DCR developed by Wojtek Pych instead of
ccdproc.cosmicray_lacosmic
because we got better results withDCR
. 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.-
Follow this link and you can follow the instructions there. The same instructions are reproduced here.
-
Download the
dcr.tar
file and untar it.
tar -xvf dcr.tar
- 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. ~~~~~~
-
-
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 usebash
so if you use something different follow the example below as a guide.- 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. Movedcr
to your new folder.$ mv dcr ~/.bin
- 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
-
This package include two tools:
-
redccd
Does Standard CCD reduction -
redspec
Does spectroscopic extraction and wavelength calibration
-
Goodman Data Reduction Pipeline WIKI
Goodman Pipeline