SunPy: Improving Radiospectra Functionality and Interoperability [Dhanush sai Mudari]#16
Open
dhanushsaimudari wants to merge 3 commits intoOpenAstronomy:mainfrom
Open
SunPy: Improving Radiospectra Functionality and Interoperability [Dhanush sai Mudari]#16dhanushsaimudari wants to merge 3 commits intoOpenAstronomy:mainfrom
dhanushsaimudari wants to merge 3 commits intoOpenAstronomy:mainfrom
Conversation
…and Interoperability
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.
Requirements
sunpy/radiospectra#170
sunpy/radiospectra#172
Description
This proposal aims to improve the Spectrogram data structure by making it more aware of physical coordinates such as time and frequency. This would allow users to work with data using real-world values instead of only array indices.
This will involve extending how time and frequency axes are stored in GenericSpectrogram, and implementing mapping logic to translate between coordinates and indices.
Another important part of the project is background subtraction. From my understanding, real radio data contains various sources of noise and baseline signals. I plan to implement a few commonly used background subtraction methods (such as median or percentile-based approaches) and design an API that also allows users to provide their own custom methods.
I also plan to improve visualization, especially for cases where data has have gaps or irregular sampling. Finally, I will create example notebooks to demonstrate how these features can be used in practice.
I would also like to explore coordinate-based slicing with tolerance, which allows users to query approximate physical values. This can be useful when working with real observational data where exact alignment is not always possible.
Cc: @samaloney @hayesla