question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Diffraction spikes show artifacts after shifting by shiftnd

See original GitHub issue

Hi,

I’m trying to shift some CCD FITS images using chi2_shift then shiftnd. The x and y offsets between two images are calculated without any problem. However, when I try to shift my images with shiftnd the new images show some artifacts. There are diffraction spikes around the bright(ish) targets, and these features are shifted in a very strange way. Here is a plot, where the upper panel shows the original image and the bottom shows the shifted.

image

I can see a periodicity with a period of 1 pixel in the spikes which is introduced by shiftnd. This affects the photometry in a bad way. My only solution is to use integer offsets, but this means +/- 0.5 pixel uncertainty, which is greater than I can accept. Has anyone encountered this issue? Any solution?

Thanks

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
astrobattycommented, Feb 2, 2021

I checked all the stars and all of these problematic cases have at least one saturated pixel, that is the problem. Thanks for the suggestions.

0reactions
keflavichcommented, Jan 28, 2021

I think this is coming from a couple of super-bright, maybe saturated pixels? If they are genuinely saturated, try replacing them with the local median, then re-shifting. If they’re not saturated and the star really is that bright, I’m afraid you have some dynamic range issues and I’m not 100% sure how to deal with them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Diffraction spike
Diffraction spikes are lines radiating from bright light sources, causing what is known as the starburst effect or sunstars in photographs and in...
Read more >
Issues · keflavich/image_registration
Diffraction spikes show artifacts after shifting by shiftnd. #29 opened on Jan 26, 2021 by astrobatty · 6 · shift() not working. #26...
Read more >
Diffraction Spike-Like Artifact? - Beginning Deep Sky Imaging
Hello All, after stacking my M45 data I noticed that some of the stars have a green diffraction spike like pattern and a...
Read more >
Why do the spikes that shoot out of stars form perfect ...
The diffraction caused by the support rods ultimately shifts light in the final image to places where it did not originally exist. For...
Read more >
How to Make [Legit] Diffraction Spikes on Stars with a ...
Shown to the left in this exposure of the bright star Antares, diffraction spikes are artifacts that show themselves on brighter stars in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found