pyraf
pyraf copied to clipboard
PyPAF imexamine issues
issue 1
I recently installed IRAF v2.18 (built from source), PyRAF v2.2.1 , and DS9 v8.4.1 (sudo apt install python3-pyraf saods9
) on a new machine running Debian 12 with Python 3.11.2 pre-installed.
However, when I use the imexamine
command in PyRAF and press r
to check the radial profile of the source, the calculated image does not correspond to the coordinates I clicked with the mouse. Please see the image:
(By the way, the same issue also occurs with DS9 v8.6. Moreover, when I press
r
while using DS9 v8.6, the cursor automatically jumps to the top-left corner of the screen every time, which might be another minor bug...)
I also tested imexamine
command on an older machine running Ubuntu 18.04 with Python v2.7.17, IRAF v2.16.1, PyRAF v2.1.15, and DS9 v8.0.1, and everything is normal. Please see the image:
What could be the causes?
ps. I installed IRAF by the commands:
sudo apt install gcc make flex bison zlib1g-dev libreadline-dev
cd ~/software/iraf
mv ~/Downloads/iraf-2.18.tar.gz .
cd iraf-2.18/
make 2>&1 | tee build.log
make test
sudo make install
issue 2
Additionally, I encountered another issue when using PyRAF. When I install PyRAF with Python 3.12.8 (compiled from source) using the command python3.12 -m pip install pyraf
, the installation succeeded. However, running the imexamine
command resulted in the following error:
Traceback (innermost last):
File "<CL script CL1>", line 1, in <module>
OverflowError: Python integer 32768 out of bounds for int16
Please see the image:
The same issue occurred when I used Python 3.10.16 (also compiled from source) to install pyraf via
python3.10 -m pip install pyraf
.
It is worth noting that both Python versions (3.12.8 and 3.10.16) were compiled from source instead of being the system default versions. I suspect that I might have missed installing certain dependencies. Could you please help identify the possible cause of this problem?
ps. I install Python by the commands:
sudo wget https://www.python.org/ftp/python/3.10.16/Python-3.10.16.tgz
sudo tar xzf Python-3.10.16.tgz
cd Python-3.10.16
sudo ./configure --enable-optimizations
sudo make altinstall
Thank you!