Dependencies
============

python >3.9 tested
numpy
scipy
cython
astropy
scikit-image
pyastronomy 


Modifications for your location
===============================

The utility lst.py has site longitude in the code.  Edit the source code and 
change the longitude to match your site.

The utility process_fits.py is a script to batch process a directory of raw
images.  It requires a simple configuration file in that directory.  The script
is meant to be a template for you to modify for your use.


Linux and Mac OS X
==================

To install the Alsvid Python code for all users

As root user run install.sh from this directory, or 


cd src
cp * /usr/local/bin


To install it in your own directory simply copy the files into a directory in
your execuation path, and make them executable.


Each file has a line 

#!/usr/local/bin/python3

as the first line.  If Python 3 is installed on a Linux system, this suffices
to make the code executable on the command line.  For example,

fits_mean.py 

will run the code.

If your python executable is not python3 in /usr/local/bin, either edit the first 
lines or make a link in /usr/local/bin to your python.  See PYTHON for more
information.

The included script "install.sh" will do the installation for you if run from
its directory as sudo or root, copying the files into /usr/local/bin/.  Modify
the script for other locations.



Windows
=======

If you have not already done so, install Python and the other packages 
since it will not be there with the default Windows operating system. One way to
do this easily is to install the popular free Anaconda distribution that is 
recommended by Astropy

https://www.anaconda.com/distribution/


Once you have python and the dependencies installed, create a folder for these
programs and copy all of them into it. For more information on running Python
under Windows see

http://docs.python.org/3/faq/windows

