flaredetector: add markFlare function
This commit is contained in:
@@ -52,6 +52,10 @@ def plotFlareFits(ax, fits):
|
|||||||
for fit in fits:
|
for fit in fits:
|
||||||
ax.plot(fit["FlareFitTime"], fit["FlareFit"], "g--")
|
ax.plot(fit["FlareFitTime"], fit["FlareFit"], "g--")
|
||||||
|
|
||||||
|
def markFlare(ax, fits, flux):
|
||||||
|
for fit in fits:
|
||||||
|
ax.plot(fit["FlareFitTime"], flux[fit["StandardIndex"]], color="red")
|
||||||
|
|
||||||
def getFlareRange(flux, peakIndex):
|
def getFlareRange(flux, peakIndex):
|
||||||
minInd = -np.inf
|
minInd = -np.inf
|
||||||
maxInd = np.inf
|
maxInd = np.inf
|
||||||
|
|||||||
Reference in New Issue
Block a user