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

Support slicing for Profile objects #114

Open
wtbarnes opened this issue Sep 15, 2020 · 0 comments
Open

Support slicing for Profile objects #114

wtbarnes opened this issue Sep 15, 2020 · 0 comments

Comments

@wtbarnes
Copy link
Member

Similar to how Strand profiles can be parsed in the time dimension, one should also be able to slice Profile objects in the spatial dimension. This would make it easy to just do an index on a Profile and then compute the EM distribution over only part of the loop (near the apex say). As an example,

s = Strand('/hydrad')
p = s[100]
p[10:150].column_emission_measure()

If we do this, we should consider caching the data matrices so that they are not read every time you take a slice.

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

1 participant