Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a method on Spectrogram for cropping, both by time and frequency #72

Open
hayesla opened this issue Oct 17, 2022 · 1 comment
Open

Comments

@hayesla
Copy link
Member

hayesla commented Oct 17, 2022

Describe the feature

It would be useful to be able to crop a Spectrogram over a region of interest, such as time or in frequency. An example would be the fact that a lot of sources provide daily spectrogram data and you're only interested in a time region close to a flare etc.

You may also want to crop by frequency.

Proposed solution

Scope for this? if so should it just be .crop_freq() or .crop_time() or truncate()

@samaloney
Copy link
Contributor

samaloney commented Nov 11, 2022

Do you want to actually crop the entire object or only for plotting? If it's to crop the entire object this would push me towards using ndcube as a base then that could accomplish that with wcs and crop ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants