obspy.core.stream.Stream._rotate_specific_channels_to_zne

Stream._rotate_specific_channels_to_zne(network, station, location, channels, inventory)[source]

Rotate three explicitly specified channels to ZNE.

>>> from obspy import read, read_inventory
>>> st = read("/path/to/ffbx_unrotated_gaps.mseed")
>>> inv = read_inventory("/path/to/ffbx.stationxml")
>>> st._rotate_specific_channels_to_zne(
...     "BW", "FFB1", "", ["HHZ", "HH1", "HH2"],
...     inv)  
<obspy.core.stream.Stream object at 0x...>
Parameters:
  • network (str) Network code of channels that should be rotated.
  • station (str) Station code of channels that should be rotated.
  • location (str) Location code of channels that should be rotated.
  • channels (list) The three channel codes of channels that should be rotated.
  • inventory (Inventory or Parser) Inventory or Parser with metadata of channels.