edu.sc.seis.fissuresUtil.bag
Class Rotate

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.bag.Rotate

public class Rotate
extends java.lang.Object

Rotate.java Created: Sun Dec 15 13:43:21 2002


Constructor Summary
Rotate()
           
 
Method Summary
static double dtor(double degree)
           
static double getRadialAzimuth(edu.iris.Fissures.Location staLoc, edu.iris.Fissures.Location evtLoc)
           
static double getTransverseAzimuth(edu.iris.Fissures.Location staLoc, edu.iris.Fissures.Location evtLoc)
           
static edu.iris.Fissures.IfNetwork.ChannelId replaceChannelOrientation(edu.iris.Fissures.IfNetwork.ChannelId chanId, java.lang.String orientation)
           
static void rotate(float[] x, float[] y, java.awt.geom.AffineTransform affine)
          Performs the rotation from the given matrix.
static void rotate(float[] x, float[] y, double radians)
          Rotates the x and y arrays by the given angle in radians.
static void rotate(float[] x, float[] y, float[] z, double theta, double phi)
           
static float[][] rotate(edu.iris.Fissures.seismogramDC.LocalSeismogramImpl x, edu.iris.Fissures.seismogramDC.LocalSeismogramImpl y, double radians)
          rotates the two seismograms by the given angle.
static float[][] rotateGCP(edu.iris.Fissures.seismogramDC.LocalSeismogramImpl x, edu.iris.Fissures.seismogramDC.LocalSeismogramImpl y, edu.iris.Fissures.Location staLoc, edu.iris.Fissures.Location evtLoc)
          rotates the two seismograms to the great circle path transverse (X) and radial (Y).
static edu.iris.Fissures.seismogramDC.LocalSeismogramImpl[] rotateGCP(edu.iris.Fissures.seismogramDC.LocalSeismogramImpl x, edu.iris.Fissures.Orientation xOrient, edu.iris.Fissures.seismogramDC.LocalSeismogramImpl y, edu.iris.Fissures.Orientation yOrient, edu.iris.Fissures.Location staLoc, edu.iris.Fissures.Location evtLoc, java.lang.String transverseCode, java.lang.String radialCode)
           
static double rtod(double radian)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rotate

public Rotate()
Method Detail

rotateGCP

public static edu.iris.Fissures.seismogramDC.LocalSeismogramImpl[] rotateGCP(edu.iris.Fissures.seismogramDC.LocalSeismogramImpl x,
                                                                             edu.iris.Fissures.Orientation xOrient,
                                                                             edu.iris.Fissures.seismogramDC.LocalSeismogramImpl y,
                                                                             edu.iris.Fissures.Orientation yOrient,
                                                                             edu.iris.Fissures.Location staLoc,
                                                                             edu.iris.Fissures.Location evtLoc,
                                                                             java.lang.String transverseCode,
                                                                             java.lang.String radialCode)
                                                                      throws edu.iris.Fissures.FissuresException,
                                                                             IncompatibleSeismograms
Throws:
edu.iris.Fissures.FissuresException
IncompatibleSeismograms

replaceChannelOrientation

public static edu.iris.Fissures.IfNetwork.ChannelId replaceChannelOrientation(edu.iris.Fissures.IfNetwork.ChannelId chanId,
                                                                              java.lang.String orientation)

rotateGCP

public static float[][] rotateGCP(edu.iris.Fissures.seismogramDC.LocalSeismogramImpl x,
                                  edu.iris.Fissures.seismogramDC.LocalSeismogramImpl y,
                                  edu.iris.Fissures.Location staLoc,
                                  edu.iris.Fissures.Location evtLoc)
                           throws edu.iris.Fissures.FissuresException,
                                  IncompatibleSeismograms
rotates the two seismograms to the great circle path transverse (X) and radial (Y). It is assumed that the two seismograms orientation are perpendicular to each other and are oriented in the east, x and north, y, directions. They must also have the same number of data points.

Throws:
edu.iris.Fissures.FissuresException
IncompatibleSeismograms

getRadialAzimuth

public static double getRadialAzimuth(edu.iris.Fissures.Location staLoc,
                                      edu.iris.Fissures.Location evtLoc)

getTransverseAzimuth

public static double getTransverseAzimuth(edu.iris.Fissures.Location staLoc,
                                          edu.iris.Fissures.Location evtLoc)

rotate

public static float[][] rotate(edu.iris.Fissures.seismogramDC.LocalSeismogramImpl x,
                               edu.iris.Fissures.seismogramDC.LocalSeismogramImpl y,
                               double radians)
                        throws edu.iris.Fissures.FissuresException,
                               IncompatibleSeismograms
rotates the two seismograms by the given angle. It is assumed that the two seismograms orientation are perpendicular to each other and that the sense of the rotation is from x towards y.

Throws:
IncompatibleSeismograms
edu.iris.Fissures.FissuresException

rotate

public static void rotate(float[] x,
                          float[] y,
                          double radians)
                   throws IncompatibleSeismograms
Rotates the x and y arrays by the given angle in radians. The x and y axis are assumed to be perpendicular. Theta, in radians, is positive from x towards y, and so a rotation of PI/2 puts x into y and -y into x.

Throws:
IncompatibleSeismograms

rotate

public static void rotate(float[] x,
                          float[] y,
                          java.awt.geom.AffineTransform affine)
                   throws IncompatibleSeismograms
Performs the rotation from the given matrix. It is assumed to be a pure rotation matrix (no translation) and the translation components of the affine transform are ignored if present.

Throws:
IncompatibleSeismograms

rotate

public static void rotate(float[] x,
                          float[] y,
                          float[] z,
                          double theta,
                          double phi)

dtor

public static double dtor(double degree)

rtod

public static double rtod(double radian)