cross spectrum and ploting recpies#65
Open
kashish2210 wants to merge 3 commits intoStingraySoftware:mainfrom
Open
cross spectrum and ploting recpies#65kashish2210 wants to merge 3 commits intoStingraySoftware:mainfrom
kashish2210 wants to merge 3 commits intoStingraySoftware:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #65 +/- ##
===========================================
- Coverage 88.06% 70.53% -17.54%
===========================================
Files 5 7 +2
Lines 1081 2654 +1573
===========================================
+ Hits 952 1872 +920
- Misses 129 782 +653 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
was not working as expected and updated some plotting methods
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this pr consists of cross-spectrum, timing analysis, and plotting recipes:
So the methods included here as :
i am using these functions to determine whether it's an averaged or a single cross-spectrum
now plotting:
simple plot direct
csandacsor
u can add a frequency range to:
Cross power spectrum
Phase lag spectrum
Time lag spectrum
Coherence function
Real and imaginary parts
PDS comparison
You can have a comprehensive 6-panel analysis of all plots via:
Coherence with confidence levels
Time lag with error bars and reference values
Phase lag with error bars and reference values
Time lag with rebinning
Compare two light curves
plot(lc1, lc2)Normalization comparison (requires an array of differently normalized CrossSpectra)
Rebinning comparison (original vs rebinned)
Log rebinning comparison
geometric rebinning comparison
integer rebinning comparison
noise analysis
signal to noise
noise compare
white noise
output: same as amplitude :)
phase lag errors
noise timeline (I created for study purposes)
noise properties
significant_detections
tagging @matteobachetti , @fjebaker , @stefanocovino
I know I have made a huge pr (apology for this), but this pr covers full cross-spectrum analysis and docs, and tests, that's why much bigger
These functions are functions I really liked since they are automatic in nature : )