waqasbhatti / astrobase

Python modules for light curve work and variable star astronomy
MIT License
55 stars 12 forks source link

Added mean and niterations to sigma clipping #40

Closed joshuawallace closed 6 years ago

joshuawallace commented 6 years ago

Added functionality to sigmaclip_magseries() so that clipping can be based around the mean instead of the median, and so iterative sigma clipping can be given a maximum number of iterations to perform.

joshuawallace commented 6 years ago

I used the updated sigclip_magseries with a real light curve using both meanormedian='mean' and niterations=3 and got behavior as expected, verified with an outside sigclip calculation. Just a further verification.

joshuawallace commented 6 years ago

I made the requested changes and committed to the patch-2 branch on my fork. I don't see a pull request button popping up anywhere, does the new commit automatically appear in the pull request?

waqasbhatti commented 6 years ago

Looks good now. Thanks!