githubdoe / DFTFringe

DFTFringe Telescope Mirror interferometry analysis Program.
GNU General Public License v3.0
168 stars 59 forks source link

Average of 16 diameters profile plot has a strange tail (lower value) for the last value on the right side of the profile #168

Open githubdoe opened 3 weeks ago

githubdoe commented 3 weeks ago

Create a simulated wave front with 0 SA. Select the 16 diameters button. The very last value is too small. I suspect the code has a bug that causes it not to add that last diameter (or some diameter) to the sum of all diameters.

I will work on it. I discovered it while working on the percent complete feature and creating spheres for debugging purposes of that feature. profileavgerror

githubdoe commented 3 weeks ago

Because the surface is a matrix of pixels some diameters have more pixels than others inside the outline. Thus you can not use 16 as the divisor. Instead build a map to count how many pixels of each diameter have been used.

That works well and has now been tested. Eventually will add it to dalework. branch.