Package edu.sc.seis.TauP.cmdline.args
Class SeismicSourceArgs
- java.lang.Object
-
- edu.sc.seis.TauP.cmdline.args.SeismicSourceArgs
-
- Direct Known Subclasses:
AmplitudeArgs
public class SeismicSourceArgs extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static float
DEFAULT_MW
static java.lang.String
DEFAULT_MW_STR
static int
DEFAULT_NUM_FREQUENCIES
-
Constructor Summary
Constructors Constructor Description SeismicSourceArgs()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
calcRadiationPat(double azimuth, double takeoffDeg)
Calculate radiation pattern terms, Fp, Fsv, Fsh for the given fault orientation and az,takeoff.static double[]
calcRadiationPatDeg(double strike, double dip, double rake, double azimuth, double takeoff)
static double[]
calcRadiationPatRadian(double strike, double dip, double rake, double azimuth, double takeoff)
Calculate radiation pattern terms, Fp, Fsv, Fsh for the given fault orientation and az,takeoff.float
getAttenuationFrequency()
double
getMoment()
float
getMw()
int
getNumFrequencies()
java.util.List<java.lang.Float>
getStrikeDipRake()
boolean
hasStrikeDipRake()
void
setMw(float mw)
void
setStrikeDipRake(java.util.List<java.lang.Float> sdr)
void
validateArguments()
void
validateArgumentsForAmplitude(ModelArgs modelArgs, java.util.List<RayCalculateable> rayList)
-
-
-
Field Detail
-
DEFAULT_MW
public static final float DEFAULT_MW
- See Also:
- Constant Field Values
-
DEFAULT_MW_STR
public static final java.lang.String DEFAULT_MW_STR
- See Also:
- Constant Field Values
-
DEFAULT_NUM_FREQUENCIES
public static final int DEFAULT_NUM_FREQUENCIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
setMw
public void setMw(float mw)
-
getMw
public float getMw()
-
getMoment
public double getMoment()
-
getAttenuationFrequency
public float getAttenuationFrequency()
-
getNumFrequencies
public int getNumFrequencies()
-
setStrikeDipRake
public void setStrikeDipRake(java.util.List<java.lang.Float> sdr)
-
hasStrikeDipRake
public boolean hasStrikeDipRake()
-
getStrikeDipRake
public java.util.List<java.lang.Float> getStrikeDipRake()
-
calcRadiationPat
public double[] calcRadiationPat(double azimuth, double takeoffDeg)
Calculate radiation pattern terms, Fp, Fsv, Fsh for the given fault orientation and az,takeoff.- Parameters:
azimuth
- azimuth to receiver in degreestakeoffDeg
- takeoff angle in degrees- Returns:
- Fp, Fsv, Fsh
-
calcRadiationPatDeg
public static double[] calcRadiationPatDeg(double strike, double dip, double rake, double azimuth, double takeoff)
-
calcRadiationPatRadian
public static double[] calcRadiationPatRadian(double strike, double dip, double rake, double azimuth, double takeoff)
Calculate radiation pattern terms, Fp, Fsv, Fsh for the given fault orientation and az,takeoff. ALl in radians.- Parameters:
strike
- fault strike in radiandip
- fault dip in radianrake
- fault rake in radianazimuth
- azimuth to receiver in radiantakeoff
- takeoff angle in radian- Returns:
- Fp, Fsv, Fsh
-
validateArguments
public void validateArguments()
-
validateArgumentsForAmplitude
public void validateArgumentsForAmplitude(ModelArgs modelArgs, java.util.List<RayCalculateable> rayList) throws TauPException
- Throws:
TauPException
-
-