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

source amplitude from HDF5 file #372

Closed
stevengj opened this issue Jun 8, 2018 · 0 comments
Closed

source amplitude from HDF5 file #372

stevengj opened this issue Jun 8, 2018 · 0 comments
Assignees

Comments

@stevengj
Copy link
Collaborator

stevengj commented Jun 8, 2018

The sources already allow you to specify an amp_fun that gives an arbitrary function of space for the amplitude. Might be nice to layer a higher-level function on top of this that reads in a grid of values from an HDF5 file and creates an amp_fun that interpolates into this grid. (Much like the epsilon_file feature.)

This could be put as a helper method into the fields object, I guess, a new method of add_volume_source, where you pass a filename and a dataset name instead of A. (You would still pass an amp parameter to allow you to multiply the values in the file by an overall scale factor.)

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