Installation

mrf is a Python package which also incorperates some iraf functions. You can download and install the package as follows. You must have galsim installed in advance. You will also need unagi to download HSC images.

Install from pip

Probably the easiest way is to install with pip. The version you installed from pip is stable, but may lack some new functions. If you find some bugs, please try to install the most up-to-date mrf from source code, or open an issue on GitHub.

$ pip install -U mrf

Warning

We are sorry that MRF has not been fully compatible with Windows. Please use Linux or MacOS!

Test the Installation

The following snippet checks the availability of some iraf files. True means you have installed mrf successfully! Bravo!

import mrf, os
print(os.path.isfile(os.path.join(mrf.__path__[0], 'iraf/macosx/x_images.e')))

Requirements

Python>=3 is needed, but you can try whether mrf still works under python2. Check out other dependences of mrf from requirements.txt.