Hi, I'm running pyRAF 2.1.15 with DS9 7.6, on Ubuntu 18.04. I'm trying to use imalign, and it refuses to shift my image. The command executes, but it just outputs the image as it was before. Here's my lpar:
PHP Formatted Code
input
= "image1.fits" Input images
reference
= "image2.fits" Reference image
coords
= "image2.fits.coo.3" Reference coordinates
file
output
= "aimage1.fits" Output images
(shifts
= "") Initial shifts
file
(boxsize
= 11) Size of the small centering box
(bigbox
= 15) Size of the big centering box
(negative
= no
) Are the features negative ?
(background
= INDEF
) Reference background level
(lower
= INDEF
) Lower threshold
for data
(upper
= INDEF
) Upper threshold
for data
(niterate
= 3) Maximum number of iterations
(tolerance
= 0) Tolerance
for convergence
(maxshift
= INDEF
) Maximum acceptable pixel shift
(shiftimages
= yes
) Shift the images ?
(interp_type
= "linear") Interpolant
(boundary_typ
= "nearest") Boundary type
(constant = 0.0) Constant for constant boundary extension
(trimimages
= yes
) Trim the shifted images ?
(verbose
= yes
) Print the centers
, shifts
, and
trim section ?
(list = )
(mode
= "ql")
My coords file contains a lot of reference objects, but a fair amount give the error message "Warning: failed to converge near (2040,1853)" or something similar. After it's gone through all the reference objects, here's the output for shifts and trims:
PHP Formatted Code
#Shifts Image X-shift Err Y-shift Err N Internal
image1
.fits
0.189 (0.009) 0.576 (0.009) 753 (0.114,0.119)
# Shifting images:
Images not trimmed
! Trim section is undefined
.
So it's clear that pyRAF is actually calculating the shifts, just not shifting or trimming the images. The strangest part is that I had run this exact same command, only with a different input/output image, everything else the same, and it worked perfectly. Between running those two commands I had changed nothing, so I wonder if the data is just behaving oddly. Any help is appreciated.