Component Orientations when retrieving Seismograms

Hi All,

When obtaining data using a client (such as iris through obspy.fdsn), how do I get the azimuth of the different components? For Channels NEZ, this isn't a problem of course.
For BH1 and BH2 channels with arbitrary orientations, however, how do I obtain the azimuth of each component (using obspy.fdsn.client.get_waveform for instance). Is this information contained in the Stream or Trace? Extracting this same data from a SEED volume typically fills in the CMPAZ header value.

Thanks very much,
Andrew

The component orientation is in the station channel information (azimuth and dip).

http://docs.obspy.org/packages/autogen/obspy.station.channel.Channel.html#obspy.station.channel.Channel

Regards,
Brad

The latest master also contains functionality to rotate arbitrarily arranged three component recordings to ZNE:

http://docs.obspy.org/master/packages/autogen/obspy.signal.rotate.rotate2ZNE.html

It unfortunately does not have nice interface to StationXML yet.

Cheers!

Lion