Package edu.sc.seis.TauP
Class SvgEarth
java.lang.Object
edu.sc.seis.TauP.SvgEarth
Utilities for generating SVG plots of a slice through the earth model.
Used for plotting ray paths or wavefronts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SvgEarthScalingcalcEarthScaleTrans(List<Arrival> arrivalList, DistDepthRange distDepthRange) static SvgEarthScalingcalcEarthScaleTransForPhaseList(List<SeismicPhase> phaseList, DistDepthRange distDepthRange, boolean includeNegDist) static intcalcFontSizeForEarthScale(TauModel tMod, SvgEarthScaling scaleTrans) static SvgEarthScalingcalcZoomScaleTranslate(List<Arrival> arrivals) createBoundingArrivals(List<SeismicPhase> phaseList) static double[]findPierceBoundingBox(double[] distRangeDeg, double[] depthRange, double R) Find bounding box, in cartesian, that contains the distance and depth range.static double[]findPierceBoundingBox(List<Arrival> arrivals) Find the boundaries of a x-y box that contain all pierce points for the arrivals.static StringformatDistRadius(double calcDist, double radius) protected static StringformatDistRadiusAsXY(double calcDist, double radius) static voidprintGmtScriptBeginning(PrintWriter out, String psFile, TauModel tMod, float mapWidth, String mapWidthUnit, boolean onlyNamedDiscon, String toolName, List<String> cmdLineArgs) static voidprintModelAsSVG(PrintWriter out, TauModel tMod, float pixelWidth, SvgEarthScaling scaleTrans, boolean onlyNamedDiscon) static voidprintScriptBeginningSvg(PrintWriter out, TauModel tMod, float pixelWidth, SvgEarthScaling scaleTrans, String toolName, List<String> cmdLineArgs, List<String> colorList, String extraCSS) static voidprintSvgEnd(PrintWriter out) static voidstatic voidprotected static double[]xyForDistRadius(double calcDist, double radius)
-
Constructor Details
-
SvgEarth
public SvgEarth()
-
-
Method Details
-
calcEarthScaleTransForPhaseList
public static SvgEarthScaling calcEarthScaleTransForPhaseList(List<SeismicPhase> phaseList, DistDepthRange distDepthRange, boolean includeNegDist) -
calcEarthScaleTrans
public static SvgEarthScaling calcEarthScaleTrans(List<Arrival> arrivalList, DistDepthRange distDepthRange) -
findPierceBoundingBox
public static double[] findPierceBoundingBox(double[] distRangeDeg, double[] depthRange, double R) Find bounding box, in cartesian, that contains the distance and depth range. Whole earth is [-R, R, -R, R]- Parameters:
distRangeDeg-depthRange-R-- Returns:
- [xmin, xmax, ymin, ymax]
-
findPierceBoundingBox
Find the boundaries of a x-y box that contain all pierce points for the arrivals.- Parameters:
arrivals- to search- Returns:
- array of xmin, xmax, ymin, ymax in x-y coordinates (not dist-depth)
-
createBoundingArrivals
-
printModelAsSVG
public static void printModelAsSVG(PrintWriter out, TauModel tMod, float pixelWidth, SvgEarthScaling scaleTrans, boolean onlyNamedDiscon) -
xyForDistRadius
protected static double[] xyForDistRadius(double calcDist, double radius) -
formatDistRadiusAsXY
-
formatDistRadius
-
calcZoomScaleTranslate
-
printSvgEnding
-
printSvgEndZoom
-
printSvgEnd
-
printGmtScriptBeginning
-
calcFontSizeForEarthScale
-
printScriptBeginningSvg
public static void printScriptBeginningSvg(PrintWriter out, TauModel tMod, float pixelWidth, SvgEarthScaling scaleTrans, String toolName, List<String> cmdLineArgs, List<String> colorList, String extraCSS)
-