I have a dataframe ‘df’ in csv which contains time [MJD] in first column, flux in second column, and flux with error in third column. I plotted light curve plotting time along x-axis and flux with its error along y-axis. Now I want to fit the sum of exponentials to the given plot.What can be the suitable python code?
I attempted to analyze the sum of exponentials equations. I calculated the rise time by subtracting the start time from the peak flux time, and the decay time by subtracting the peak flux time from the end time (when the data returns to a lower state). However, the resulting curve does not exhibit the expected exponential behavior; it does not show a proper rising and decaying curve.
Rajendra Neupane is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.