Flatten shouldn't automatically normalize
See original GitHub issueProblem description
Currently, lc.flatten() will return a normalized light curve, but this isn’t always desired.
Example
from lightkurve import search_lightcurvefile
lcf = search_lightcurvefile("kic 6922244", quarter=4).download()
pdcsap = lcf.PDCSAP_FLUX
pdcsap.scatter() # makes scatter plot with y in electron counts per second
pdcsap.flatten().scatter() # makes scatter plot of flattened light curve but y is normalized.
Expected behavior
I expected a flattened light curve still in electron counts per second, but after flattening found that the lightcurve had also been normalized.
Environment
- platform (e.g. Linux, OSX, Windows): OSX 10.14.6
- lightkurve version (e.g. 1.0b6): 1.3.0
- installation method (e.g. pip, conda, source): pip
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Maybe Normalizing Isn't Normal - Coding Horror
Normalization provides better performance. (You're automatically measuring all the queries that flow through your software, right?)
Read more >Normalize should not need to define an inverse() method #7320
The user does not specify an inverse function. In this case we have to do something automatically. There are multiple criteria but something ......
Read more >Normalize audio files in Logic Pro - Apple Support
Normalize audio files in Logic Pro. Normalization raises the peak level of an audio file by a specified amount—typically to its highest possible...
Read more >Why Is "Normalize" a Dirty Word? - Sweetwater
If you want to start an argument, say that normalizing is good. Then again, sometimes it is —but sometimes it isn't, and it...
Read more >When should you not normalize data in machine learning?
So normalization in statistics basically means: I have dataset 1 with possible values from 0-1000 randomly distributed. I have dataset 2 with possible...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think I agree, I think there are some questions tho:
Hi there! 👋 Thank you for opening your first Lightkurve issue! 🙏 One of our maintainers will get back to you as soon as possible. 👩🚀 We love that you are using Lightkurve and appreciate your feedback. 👍