The astronomy & astrophysics toolbox for MATLAB - Installation
Credit
License
Unless specified otherwise this code and products are released under the GNU general public license version 3.
Versions
In 2017 we introduced a large number of changes to the MATALB Astronomy & Astrophysics Toolbox (MAAT).
The main changes involve the use of packages and sub packages structure that force name spaces, introduction of several new classes and extensive modification of the SIM class (structured images class). The old version (last stable version from mid 2016) is available only in a tar file (see below).
How to install?
There are three methods to install the toolbox:
- GitHub + install files
- Download tar files
- Linux command line script
- MATLAB script
- Install old version from tar files
Installing using GIT
Note that this repository contains only the fun/ directory without the data/ directory or catsHTM catalogs. You will have to install them separately. To install the data/+cats directory execute the matlab function VO.prep.install_cats. This function will create a data/+cats directory that contains a collection small astronomical catalogs (typically smaller than a few milion entries), and will prepare the catalog for use by executing the VO.prep.prep_data_dir function. Installing by downloading tar files
The simplest method for installing the toolbox is:
- Create a directory for the toolbox (e.g., 'matlab').
- cd to the directory in which you want to install the toolbox (e.g., 'cd matlab').
- Download Fun.tar.gz
- Download the data/+cats directory
- Download any other needed data directories: BATSE_LC (BATSE light curves), VSOP87, ELP, Halpha,...
- Optionaly, download...
- gzip -d *.tar.gz
- tar -xvf Fun.tar
- tar -xvf data_cats.tar
- ...
- Download the startup.m file, or alternatively add to your startup.m or path: 'USER_DIR/fun/' and 'USER_DIR/data' any additional directories you added. Here "User_DIR" is the user directory (e.g., '/home/eran/matlab/').
Installing by running an installation file from the command line (Linux only)
Linux users can download the install_maat.csh file, edit it according to your specific needs, and execute it from the command line (e.g., './install_maat.csh'). Installing using a MATLAB script
Download the install_maat.m function and run it from the matlab prompt. This function follows the steps in method number 1.
Note that after the instellation this function is located in Util.code.install_maat.