Instructions for Linux
You will need to install a few packages in your distribution in order to get DREAMPY to work. First you need a way to get the code. We use subversion to distribute the code
Subversion is used to manage the data reduction code.
~$ sudo apt-get install subversion #Debian-like
~$ sudo yum install subversion #RPM-like
Install the following python packages:
In Debian based distribution you can use apt (or apt-get) to install this packages:
~$ sudo apt-get install python-numpy python-scipy python-matplotlib python-django ipython python-pip python-configobj python-ephem
It is Optional but strongly recommended
~$ sudo apt-get install python-ipdb
The equivalent command in a RPM-like distributions is:
~$ sudo yum install python2-numpy python2-scipy python2-matplotlib python-matplotlib-gtkpython2-pyephem python2-ipython python2-pip python2-configobj pygtk2
In RPM-like distributions Django framework needs to be installed via pip command:
~$ pip2 install --user Django=1.8.7
This version of Django is recommended in order to avoid a bug with the register of Django applications in later versions.
Instructions for MacOS
The installation in MacOS requires to have the MacPorts installed. See the section “Setup your Mac” in the following page:
https://sites.google.com/view/aztecgh2018/macosinstall.
Before starting is strongly recommended to update your ports:
~]$ sudo port selfupdate
~]$ sudo port upgrade outdated
~]$ sudo pip install --upgrade pip
Now get the following packages from the ports interface:
~]$
sudo port install subversion py27-pip py27-matplotlib +cairo+gtk2 py27-gtk
The use pip to install the rest of the libraries:
pip install --user numpy scipy Django=1.8.7 pyephem configobj ipython pyGGI ipdb
Distribution independent instructions:
Now get the Data REduction and Analysis for PYthon (DREAMPY) package from the LMT Observatory site, first lets create a directory for the LMT code:
~$mkdir $HOME/LMT
~$cd $HOME/LMT
Now get the code:
~$ svn co svn://www.lmtobservatory.org/dreampy
Also get the rsr calibration and sample data files:
~$ svn co svn://www.lmtobservatory.org/rsr
Now install the dreampy package
~$ cd $HOME/LMT/dreampy
~$ sudo python setup.py install
To use the plotting utilities in dreampy you need to modify your matplotlibrc file:
~$ sudo nano /etc/matplotlibrc
Look for the definition of the backend and change its value to GTKAgg. It should look like this:
backend : GTkAgg
We need to setup a few paths for DREAMPY to look for the raw data and the calibration files:
~$ export DATA_LMT=$HOME/LMT/rsr/data_lmt
~$ export CORR_CAL_DIR=$HOME/LMT/rsr/raw/rsr/cal
You need to set up these variables before starting dreampy. It is recommended to add them to your .bashrc file or .cshrc file.