4
$\begingroup$

I would like to re-align an image using a reference image (taken from GAIA). I am aware of the software Koords developed by the Karma team: https://www.atnf.csiro.au/computing/software/karma/

Unfortunately, the software crashes (with segmentation fault) everytime I try to add a source in either image. Is there a more up-to-date version of this tool? Or simply a different tool?

Update: Thank you for the responses! I will try to better explain exactly what I am trying to do :)

I have an X-ray image taken from Chandra and a GAIA-Aligned HST image. I know that the pointing for the X-ray image is off by ~.5 arcsec or so. I want to re-align the X-ray image so that any X-ray point sources match their optical counter parts using the GAIA-Aligned HST image as my reference. I hope this helps!

$\endgroup$
7
  • 1
    $\begingroup$ Can you tell us some more details about your environment? What machine are you working on? What version of the software are you using? What does the segfault say? $\endgroup$ Sep 4, 2019 at 17:07
  • 1
    $\begingroup$ Drizzlepac package in python can do that for you. $\endgroup$ Sep 4, 2019 at 17:58
  • $\begingroup$ I am not entire sure how to answer the question about my environment... I am using Ubuntu 18.04. As for the software, I am using Karma-1.7.25. I downloaded both the common and amd64 gzip files and followed the instructions for installation that are written in the README file.. The software appears to work OK after reseting my computer HOWEVER I still receive a segmentation fault if I middle click AFTER doing any zooming.... $\endgroup$ Sep 5, 2019 at 15:51
  • $\begingroup$ @KornpobBhirombhakdi I am familiar with drizzlepac, but I am unaware of its ability to do what I am looking for. If I am not mistaken, drizzlepac will use a source finding algorithm to find point sources in each image and then try to match them automatically. Is there a way to manually choose the point source we want for alignment, like with Koords? My concern is that I need to align an image in the X-rays with a HST image... $\endgroup$ Sep 5, 2019 at 16:58
  • $\begingroup$ @CarterRhea. I am not familiar with Koords. For drizzlepac, it can combine and generate a new image that contains the same information from a set of input images. You can choose the output image to be aligned pixel-by-pixel with respect to a reference image by using a keyword. This still can be done even with only one input image. However, with difference in the plate scale (i.e., arcsec/pix), which sounds likely to be the issue here with images from different facilities, I do not know if drizzlepac would be capable for this task It would help if you can explain more about what you mean by $\endgroup$ Sep 5, 2019 at 18:48

1 Answer 1

4
$\begingroup$

I ended up making my own small code that you can find here: https://github.com/crhea93/AstronomyTools/blob/master/Astrometry/Correction.py

Essentially, after inputting at least 3 matching target (found by eye in DS9 for example), the program will calculate the mean offset and apply it to the target image. The output is a new fits file of the target image with the proper correction.

$\endgroup$
1
  • $\begingroup$ Yes, that is one way to go if there is no rotation between images. You might want to add more sources to check if the XY shift is enough for the transformation. $\endgroup$ Sep 28, 2019 at 1:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .