-
Notifications
You must be signed in to change notification settings - Fork 0
Home
HATSpy is a set of programs written in python and C used to reduce and analyze data from HATS telescope. It is an ipython profile as well to ease the use of the software. This manual was written and tested in Linux Debian version 11 with kernel 5.10.0-35-amd64 python 3.9 and ipython 7.20 and with Ubuntu 20.04.6, kernel 5.4.0-216-generic, python 3.8.10 and ipython 7.13.
HATSpy is developed in python 3.7 or later and standard C. The most updated version of the software can be downloaded from https://github.com/guigue/CRAAM-Instruments/HATS. The software can be installed in any directory, and environment variables must be defined.
-
PYTHONPATH: must include the path where the python code is installed. -
HATSXMLPATH: must point to the directory where.xmlHATS files are copied. -
HATS_DATA_InputPath: Directory wheredatais downloaded. We will talk about the structure of this directory later. -
HATS_WS_InputPath: weather station data directory. -
HATS_FFTProgram: full path to the binary code of the FFT program.
To create this profile you run the command ipython profile create hats. The go to the directory $HOME/ipython/profile_hats/startup and create the file 00-hats.py with the following lines
import HATS
from HATSTools import *
import numpy as np
from matplotlib.pyplot import plot
from matplotlib import pyplot as plt
from astropy import units as u
from astropy import constants as c
from astropy.time import Time
plt.ion()
Finally, create an alias:
(BASH) > alias hatspy='ipython3 --pylab --profile=hats'
(CSH) > alias hatspy 'ipython3 --pylab --profile=hats'
You can (have to) add one of the previous lines in $HOME/.bashrc or $HOME/.cshrc files. Next shell you open, you should be able to run
> hatspy
Python 3.8.10 (default, Mar 18 2025, 20:04:55)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help.
IPython profile: hats
Using matplotlib backend: TkAgg
The HATS Operation, Monitoring and Storage (HOMS) computer at the OAFA observatory is configured as follows:
PYTHONPATH=/opt/HAX/python
HATSXMLPATH=/opt/HAX/python/XMLTables
HATS_DATA_InputPath=/homs/HATS/data
HATS_WS_InputPath=/homs/HATS/data/aux
HATS_FFTProgram=/opt/HAX/python/HATS_fft