photutils icon indicating copy to clipboard operation
photutils copied to clipboard

Why averaging for high harmonics in build_ellipse_model

Open asterg1122 opened this issue 3 weeks ago • 5 comments

photutils version: 1.12.0 In file isophote/model.py, Line 124, Col 64

image

There is a "/ 4.0" in the calculation of harm (contribution to isophote intensity from high harmonics) that takes the average of the term $A_3\sin(3\phi)+B_3\cos(3\phi)+A_4\sin(4\phi)+B_4\cos(4\phi)$. But according to the formula, that term is directly added into the intensity.

image

Even though the isophote intensity is weighted and added to the overlapping four pixels, the total intensity is intens + harm and seems not to need any averaging for harm. So I wonder why it gets averaged. Thank you very much!

asterg1122 avatar Jun 13 '24 16:06 asterg1122