obsmax / srfpython Goto Github PK
View Code? Open in Web Editor NEWcompute surface wave dispersion curves in python using Herrmann's codes
compute surface wave dispersion curves in python using Herrmann's codes
Thanks for your great work.
There is a minor problem: I could not install the program!
Is there any python 3 version of the program available?
Hello, I have a short question. Is it possible to invert a model with a fluid layer on top? It can calculate the disp curves. So I am curious why the inversion fails for this case.
In CPS I can invert for VS having a water layer as the top layer.
VP =1.5 km/s VS=0 km/s and PR=inf or not defined or ignored for that specific layer.
Best regards
I have run the contents of the tutorial in ipython and it seems to work fine. Where do I input my cross correlated files and other parameters like station coordinates in order to calculate the dispersion curves. It is not very clear what to do after the tutorial.
Hello,
I've just installed your package and I ran into a problem importing the library.
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 4
1 # -----------------------
2 # import all components of srfpython
3 # -----------------------
----> 4 from srfpython import *
File [c:\users\j.andres\anaconda3\srfpython\srfpython\__init__.py:1](file:///C:/users/j.andres/anaconda3/srfpython/srfpython/__init__.py#line=0)
----> 1 from srfpython.Herrmann.Herrmann import check_herrmann_codes, recompile_src, HerrmannCaller, Curve
2 from srfpython.depthdisp.depthmodels import depthmodel1D, depthmodel, depthmodel_from_mod96string, \
3 depthmodel_from_mod96, depthmodel_from_arrays, depthspace, gardner74, brocher2005
4 from srfpython.depthdisp.dispcurves import Claw, Ulaw, freqspace, \
5 surf96reader, surf96reader_from_surf96string, surf96reader_from_arrays
File [c:\users\j.andres\anaconda3\srfpython\srfpython\Herrmann\Herrmann.py:10](file:///C:/users/j.andres/anaconda3/srfpython/srfpython/Herrmann/Herrmann.py#line=9)
8 from numpy import log
9 import numpy as np
---> 10 from srfpython.utils import Timer, TimeOutError, Timeout
11 from srfpython.depthdisp.dispcurves import groupbywtm, igroupbywtm
14 """
15 program to compute surface wave dispersion curves, Maximilien Lehujeur, 01/11/2017
16 see documentation in function dispersion
(...)
19 WARNING : This module calls fortran programs, make sure they are compiled correctly before calling
20 """
File [c:\users\j.andres\anaconda3\srfpython\srfpython\utils.py:3](file:///C:/users/j.andres/anaconda3/srfpython/srfpython/utils.py#line=2)
1 import time
2 import signal
----> 3 import imp
4 import os
5 import sys
ModuleNotFoundError: No module named 'imp'
Seems that Imp has been deprecated as per the documentation. So if you create a new anaconda environment for instance you should be installing Python 3.11 to make the library work.
I believe this should be stated somewhere in the installation manual, until the code is upgraded to be compatible with Python 3.12
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.