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

How to perform multi-mode dispersion curve inversion? #24

Open
liaohaiyang1534 opened this issue Sep 6, 2024 · 1 comment
Open

How to perform multi-mode dispersion curve inversion? #24

liaohaiyang1534 opened this issue Sep 6, 2024 · 1 comment

Comments

@liaohaiyang1534
Copy link

Could you or anyone who sees this issue provide a program example?

Any advice would be appreciated.

@keurfonluu
Copy link
Owner

Hi,

You can specify the mode when you define the dispersion curves to invert, e.g.,

curves = [
    Curve(period0, velocity0, 0, "rayleigh", "phase"),  # 0: fundamental
    Curve(period1, velocity1, 1, "rayleigh", "phase"),  # 1: mode 1
    Curve(period2, velocity2, 2, "rayleigh", "phase"),  # 2: mode 2
]
res = model.invert(curves)

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