FITSTemplate uses the setuptools build system for installation. In the (unlikely) event your python installation doesn’t include setuptools, install it with
pip install setuptools
In the even more unlikely case that your python installation is also missing pip, first install that with
curl https://bootstrap.pypa.io/get-pip.py | python
and then install setuptools as above.
Once setuptools is installed, you can download and install with
git clone https://github.com/tbrantseg/FITSTemplate.git cd FITSTemplate pip install -r requirements.txt python setup.py install
The dependency libraries should be automatically installed.
- Instantiate
FITSCore. - Call the appropriate template generation function, specifying the output file name.