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

Ability to slice on an FC Dataset #212

Open
kkappler opened this issue Jun 11, 2024 · 0 comments
Open

Ability to slice on an FC Dataset #212

kkappler opened this issue Jun 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kkappler
Copy link
Collaborator

Context:

If a run is very long, and we have already stored the FCs for the whole run, it would be nice to be able to slice a sub-spectrogram out of the mth5.

I'm not sure where this would go -- the functionality would be similar to the function RunGroup's to_run_ts() method in mth5/mth5/groups/run.py, which takes optional start, end keyword arguments.

but it could perhaps go into to_xarray() method in mth5/mth5/groups/fourier_coefficients.py

In this case, because the FC Dataset is 2-dimensional (time and frequency) ideally we could slice on either of these dimensions, so the kwargs could be start, end, frequency_min, frequency_max for example

@kkappler kkappler mentioned this issue Jul 4, 2024
2 tasks
@kkappler kkappler added the enhancement New feature or request label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant