signal rotation

Hi everyone,

I need to rotate a signal based on the dip and azimuth.

example pseudo-code:

if stream_orientation == 'Z' and dip == 90: (following SEED protocol)
   #reverse signal
   stream.data=-1*stream.data #(is there a function for that, instead of multiply with -1)

if stream_orientation == 'N' and azm != 0:
   stream.rotate() # need to rotate data to North position

if stream_orientation == 'E' and azm != 90:
   stream.rotate() # need to rotate data to East position

Are there any obspy functions for reversing and rotating?

I checked this link, but still: http://docs.obspy.org/packages/autogen/obspy.core.stream.Stream.rotate.html#obspy.core.stream.Stream.rotate

Thank you in advance,

Hi Nikolaos,

there is a pull request related to your problem:
https://github.com/obspy/obspy/pull/569

It has not been merged into master yet, any feedback/testing on this is
welcome.

best,
Tobias

Hello Everybody;

I am trying to install obspy within the anaconda environment, which comes with many packages I need. When I run easy_install obspy I get an error, it does not find the c nor fortran compilers. I do have the path to both in /usr/local/bin. Is there a way to force easy_install or pip to look at the path /usr/local/bin to find the compilers ?

Thank you for your help;

Javier Fco. Pacheco
OVSICORI-UNA

Dear Javier,

my guess its just an system path issue - however why don't you ask in
the anaconda mailing list as it seems to be installation related - or
even better pledge the guys at continuum.io to include ObsPy directly
into Anaconda :slight_smile:

Cheers,
Robert

Hello Everybody;

I am trying to install obspy within the anaconda environment, which
comes with many packages I need. When I run easy_install obspy I
get an error, it does not find the c nor fortran compilers. I do
have the path to both in /usr/local/bin. Is there a way to force
easy_install or pip to look at the path /usr/local/bin to find the
compilers ?

Thank you for your help;

Javier Fco. Pacheco OVSICORI-UNA
_______________________________________________ obspy-users mailing
list obspy-users@lists.swapbytes.de
http://lists.swapbytes.de/mailman/listinfo/obspy-users

- --
Dr. Robert Barsch

EGU Office Munich
Luisenstr. 37
80333 Munich
Germany

Phone: +49-89-21806565
Fax: +49-89-218017855
eMail: barsch@egu.eu