Closed leoniechevalier closed 7 years ago
Can you give a little more details about the exact problem you are having? Or better yet a plot or two to demonstrate what's going wrong.
For instance, are you facing a python runtime error, or the returned fits are vastly wrong etc..
As it turned out my fitting issue were largely related to my dataset (now hopefully fixed). I attached the slightly changed notebook and data. It now returns more believable values. Archive.zip
Fantastic. Do you want to tell us how you figured out the issue during code review?
distance bins (arcmin) : [ 0.25 0.55 0.775 1. 1.23333333] density:[ 40.10704566 20.61779945 22.40304184 11.93662073 7.09745016]
The offset that was still present was due to a missing normalisation factor. The code was outputting the average surface density at the effective radius and not the surface density at the effective radius. The code now produces very good fits
A couple of problems on how to use python to fit a sersic profile. the code works on synthetic data but produces odd results for my dataset.
Archive.zip