UTCDateTime.strftimemethod. Like most things in Obspy,
UTCDateTimehas pretty handy docs that you should read
Hi @Kevin2020US , for travel times, check out the port of TauP here: https://docs.obspy.org/packages/obspy.taup.html
I have no experience using this, but you can query the IRIS Syngine database like detailed here: https://docs.obspy.org/packages/obspy.clients.syngine.html
I believe both of these are limited to various 1D reference models, so for 3D models you may have to look elsewhere. Hope those prove helpful!
Also, usage questions like this are moving to https://discourse.obspy.org/, where you can search for previously-answered questions (or feel free to ask one yourself). That way, others can find the answers down the road.
if obspy development may be leaning towards one or another in the future
i dont think you have to worry about that, obspy might get used in ML applications, but i dont see it happening the other way around
Im also trying to generate a script exe with PyInstaller, there was an answer to @yhtang1974?
I packaged a python script to exe with Pyinstaller, this script use obspy trace to write a SAC file, and can normally run in Pycharm ,but the exe file throws the following error...
ISOLA-Obspyis a package that uses obspy and the documentaiton hasn't been updated since 2016, so not sure if it is still under development. You should contact the author directly maybe
@ThomasLecocq i wrote few lines of code it shows error like AttributeError: 'str' object has no attribute 'copy' plus i want to save each sliced traces in the sac format or text file...i donot know where i am doing wrong. my code is attached below: `import glob
from obspy import read
from numpy import random
x = random.randint(50)
trace_lenght = 90
for trace in files:
start = tr.stats.starttime + x
stop = tr.stats.starttime+x+trace_length
slicemethod should be quite helpful in that case
@ThomasLecocq I wrote a small code after following the manual of obspy for slicing.But my code only slice first 20 seconds of the given trace, but i need to slice whole 1 hr length continuous trace by shifting 20 seconds....can you please suggest whats wrong with my code ....my code is here `
from obspy import read
for wav in list:
st = read(wav)
start = tr1.stats.starttime
stop = tr1.stats.starttime+20
tr2 = tr1.slice(start,stop)