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 synthetic data generator function #13

Open
leouieda opened this issue Mar 19, 2024 · 0 comments
Open

Create a synthetic data generator function #13

leouieda opened this issue Mar 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@leouieda
Copy link
Member

Description of the desired feature:

We'll need to test the method and provide examples using synthetic data. It would be great to have a function that can generate these synthetic data using randomly placed dipoles. The data would look something like this:

image

This is based on code from this notebook: https://github.com/compgeolab/micromag-euler-dipole/blob/main/code/02_complex_synthetic.ipynb

Requirements:

  • The dipoles should be distributed somewhat randomly (uniform distribution).
  • The dipole moments should be random (gaussian around a specified direction and intensity).

The function can be called multiple times to generate synthetics with 2 or more grain populations.

Possible function design:

def synthetic_random_dipoles(region, spacing, inclination, declination, angular_std, intensity, intensity_std):
    ...
    return data, dipole_coordinates, dipole_moments

Here region = [xmin, xmax, ymin, ymax, zmin, zmax], spacing is the grid spacing of the data, inclination and declination are the mean direction, intensity is the dipole moment intensity, and the _std are the standard deviations for the gaussian distributions.

Are you willing to help implement and maintain this feature?

I'll let @YagoMCastro do it 😉

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