spacetelescope / imexam

imexam is a python tool for simple image examination, and plotting, with similar functionality to IRAF's imexamine
http://imexam.readthedocs.io
BSD 3-Clause "New" or "Revised" License
74 stars 45 forks source link

Using imexamine with MEF file and different extensions #249

Open prdurrell opened 2 years ago

prdurrell commented 2 years ago

Hi; I am having an issue with using imexamine on an MEF HST image. When I load some specific extension into ds9 it displays just fine, but when I load imexamine, it appears to be looking at a different (default?) extension. For example: viewer.load_fits('./ACS_flc/stuff_crclean.fits[1]')
viewer.scale()
viewer=imexam.connect( ). This all works fine (except 'r' is still not working correctly)

However, when I try a different image extension from the same image (eg. from an ACS image):

viewer.load_fits('./ACS_flc/stuff_crclean.fits[4]')
viewer.scale()
viewer=imexam.connect( )

the extension 4 image will display, but when using 'e', 'j', 'k', 'r', etc, it does NOT show the correct data -- it may be referring to extension [1], which I was not looking at. (for example, placing the cursor on a bright star on the displayed image [4] will show nothing but noise) Perhaps I should be defining something else in imexam.connect(), but not sure what.

Note: using imexamine 0.9.1, python 3.9.12 Pat Durrell