Git Product home page Git Product logo

srfpython's People

Contributors

mlehujeur avatar obsmax avatar pierricmora avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

srfpython's Issues

Python 3 version

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?

Fluid layer as first layer

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

Input files for the program

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.

Imp package is deprecated in Python 3.12

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.