Post Reply 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug(?) with constant background subtraction
08-24-2010, 18:40
Post: #1
Bug(?) with constant background subtraction

I have noticed a surprising behaviour in the way SWarp (2.17.6) subtracts a constant background level supplied via the BACK_DEFAULT keyword, and thought it might not be the way it was intended it to be.

It seems that SWarp is first scaling the image (including applying flux corrections due to astrometric distortion of the pixels) before subtracting the constant background.

Since I am supplying the background level of the input images (which I would guess is what most people would do), this means that the resampled images are imperfectly subtracted. This is only a small effect (sub-percent-level due to the astrometric effect) in the images I have, but since they have a very large background level it makes a mess of the mosaic.

For now I will just subtract the background before supplying the images to SWarp, but i thought it was worth mentioning in case it causes confusion for anyone else.


Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Bug(?) with constant background subtraction - dgb - 08-24-2010 18:40

Forum Jump:

User(s) browsing this thread: 1 Guest(s)