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

Example usage of notebooks/wiggle.py #2

Closed
snitramodranoel opened this issue Aug 22, 2016 · 2 comments
Closed

Example usage of notebooks/wiggle.py #2

snitramodranoel opened this issue Aug 22, 2016 · 2 comments

Comments

@snitramodranoel
Copy link

Hi, I have been trying to understand your wiggle.py implementation of wiggle charts since I've reached this source code from a post on StackExchange. I was wondering if you could add a small dataset (two traces would do it) so that I could inspect the contents of the frame input argument to wiggle().

Thank you very much.

@stuliveshere
Copy link
Owner

the dataset is an SU (seismic unix) which has been directly mapped into numpy using a numpy structured array defined in PySeis.su.

but for this case you can hack a dtype directly, since the array only has 2 fields

  • 'ns': number of samples
  • 'trace': defines the trace format, i.e.('trace', ('f4',ns))

Hope that helps.

@snitramodranoel
Copy link
Author

It helps a lot @stuliveshere

Thank you very much.

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

No branches or pull requests

2 participants