The astronomy & astrophysics toolbox for MATLAB - Installation

Credit

If you are using this code or products in your scientific publication please give a reference to Ofek (2014; ascl.soft 07005).

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:
  1. GitHub + install files
  2. Download tar files
  3. Linux command line script
  4. MATLAB script
  5. Install old version from tar files

Installing using GIT

To install via GitHub - either clone or download the repository from: https://github.com/EranOfek/MAAT
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.
To install the catsHTM catalog see https://webhome.weizmann.ac.il/home/eofek/matlab/doc/catsHTM.html.

Installing by downloading tar files

The simplest method for installing the toolbox is:
  1. Create a directory for the toolbox (e.g., 'matlab').
  2. cd to the directory in which you want to install the toolbox (e.g., 'cd matlab').
  3. Download Fun.tar.gz
  4. Download the data/+cats directory
  5. Download any other needed data directories: BATSE_LC (BATSE light curves), VSOP87, ELP, Halpha,...
  6. Optionaly, download...
  7. gzip -d *.tar.gz
  8. tar -xvf Fun.tar
  9. tar -xvf data_cats.tar
  10. ...
  11. 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.