Dip and azimuth information using arclink client

Hello,

Does anybody know how to get the dip and azimuth information when using arclink client from obspy?

I do not find this information in the attached response and I do not know how to get it.

Here is my program:

from obspy.clients.arclink.client import Client as arclink_client

client = arclink_client(user=UserID)
st = client.get_waveforms(net,station,locid,comp,T1,T2,attach_response=True)

Regards,
Coralie

Hi Coralie,

sorry for the late reply.

You can get dataless SEED files from ArcLink with:

client.save_response(filename="dataless.seed", network="BW",

station="MANZ", location="", channel="EHZ", starttime=t, endtime=t+10)

You can then read the resulting file with ObsPy and access the channel
level information:

obspy.read_inventory("dataless.seed")[0][0][0]

Channel 'EHZ', Location ''
Time range: 2006-01-01T00:00:00.000000Z - 2015-10-21T12:00:00.000000Z
Latitude: 49.99, Longitude: 12.11, Elevation: 635.0 m, Local Depth:
0.0 m
Azimuth: 0.00 degrees from north, clockwise
Dip: -90.00 degrees down from horizontal
Sampling Rate: 200.00 Hz
Sensor (Description): STS-2 (None)
Response information available

Hope it helps,

Lion

Hi All,
I am following this tutorial of yours to calculate PPSDs (https://docs.obspy.org/tutorial/code_snippets/probabilistic_power_spectral_density.html) and getting the following error. How do I fix it? Thanks!

print(ppsd.times[:2])

What obspy version are you using?

(Also please use an appropriate subject when posting on the list please
and ideally do not use the "reply" button when starting a new topic as
some people have a threaded view in their mail clients :wink:

T

Thanks. I am using version 1.1.1

What obspy version are you using?

(Also please use an appropriate subject when posting on the list please
and ideally do not use the “reply” button when starting a new topic as
some people have a threaded view in their mail clients :wink:

T

Actually, this is indeed something that has changed at some point, we had a deprecation warning for one release cycle but we overlooked to adapt the Tutorial. It is fixed in master now.

https://github.com/obspy/obspy/commit/6e6d1b5f44bb72eec38b1ab86d4a8c368776736f

cheers,
Tobias

Thanks Tobias!

Januka

Januka Attanayake

Research Fellow | Earthquake Seismology
Homepage: https://sites.google.com/site/janukaattanayake

School of Earth Sciences | McCoy Bldg. 200
University of Melbourne | Parkville 3010 VIC
Australia

Actually, this is indeed something that has changed at some point, we
had a deprecation warning for one release cycle but we overlooked to
adapt the Tutorial. It is fixed in master now.

https://github.com/obspy/obspy/commit/6e6d1b5f44bb72eec38b1ab86d4a8c368776736f

cheers,
Tobias