|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.analysis.ProbabilityDistHistogramPlotter
public class ProbabilityDistHistogramPlotter
This class generates excel sheets for probability contribution of each A-Fault source and some B-Faults (San Gregorio Connected, Greenville Connected, Green Valley Connected, Mount Diablo Thrust) in different regions (WG02, NoCal, SoCal, RELM) and for different durations. The method generateProbContributionsExcelSheet() is used to make excel sheets. The generated excel sheets can then be used to make histogram plots and other plots for UCERF2 report. A detailed explanation for generating the excel sheets and figures for UCERF2 report was emailed to Ned. Since various excel sheets were generated, I ran this program multiple times on Mac Server. Every time I ran this program, I called generateProbContributionsExcelSheet() with different parameters. Please see the main() for different parameters which were passed to generateProbContributionsExcelSheet().
| Field Summary | |
|---|---|
static String |
A_FAULTS
|
static String |
B_FAULTS
|
static String |
BACKGROUND
|
static String |
C_ZONES
|
static String |
NON_CA_B_FAULTS
|
static String |
TOTAL
|
| Constructor Summary | |
|---|---|
ProbabilityDistHistogramPlotter()
|
|
| Method Summary | |
|---|---|
void |
addMinMaxAvgSheet(String inputFileName)
It reads the input file as created by generateProbContributionsExcelSheet() method and adds an additional sheet with min, max, mean for each column. |
void |
generateProbContributionsExcelSheet(boolean isTimeDependent,
double duration,
String fileName,
Region region)
Make probability contribution excel sheet from various branches for a given region and duration. |
ArrayList |
getCurveFunctionList()
|
ArrayList<PlotCurveCharacterstics> |
getPlottingFeatures()
|
double |
getUserMaxX()
|
double |
getUserMaxY()
|
double |
getUserMinX()
|
double |
getUserMinY()
|
String |
getXAxisLabel()
|
boolean |
getXLog()
|
String |
getYAxisLabel()
|
boolean |
getYLog()
|
boolean |
isCustomAxis()
|
static void |
main(String[] args)
|
void |
mkHistogramSheet(String inputFileName,
String outputFileName)
It reads the input file as created by generateProbContributionsExcelSheet() method and generates min, max, mean and a histogram function for each column in the sheet. |
void |
plotAperiodicity_ComparisonProbPlot(double mag,
String fileName,
String sourceType)
Plot Aperiodicity histograms for aperiodicity values: 0.3, 0.5, 0.7 |
void |
plotAprioiMoBal_ComparisonPlot(double mag,
String fileName,
String sourceType)
Plot Apriori and MoBal comparison histograms. |
void |
plotEmpiricalBPT_ComparisonProbPlot(double mag,
String fileName,
String sourceType)
Plot stacked histograms for BPT vs Empirical plots |
void |
plotHistogramsForMagAndSource(double minMag,
String fileName,
String sourceType)
Plot Histogram for a particular source or total prob |
void |
plotMagAreaComparisonProbPlot(double mag,
String fileName,
String sourceType)
Plot stacked histograms for Ellsworth B and Hans-Bakun 2002 Magnitude Area Relationship |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String A_FAULTS
public static final String B_FAULTS
public static final String NON_CA_B_FAULTS
public static final String C_ZONES
public static final String BACKGROUND
public static final String TOTAL
| Constructor Detail |
|---|
public ProbabilityDistHistogramPlotter()
| Method Detail |
|---|
public void generateProbContributionsExcelSheet(boolean isTimeDependent,
double duration,
String fileName,
Region region)
minMag -
public void plotMagAreaComparisonProbPlot(double mag,
String fileName,
String sourceType)
fileName -
public void plotAperiodicity_ComparisonProbPlot(double mag,
String fileName,
String sourceType)
fileName -
public void plotAprioiMoBal_ComparisonPlot(double mag,
String fileName,
String sourceType)
fileName -
public void plotEmpiricalBPT_ComparisonProbPlot(double mag,
String fileName,
String sourceType)
fileName - public void addMinMaxAvgSheet(String inputFileName)
inputFileName -
public void mkHistogramSheet(String inputFileName,
String outputFileName)
inputFileName - outputFileName -
public void plotHistogramsForMagAndSource(double minMag,
String fileName,
String sourceType)
minMag - fileName - sourceType - It can be A_Faults, B_Faults, Non_CA_B_Faults, C-Zones, Background, Total.
These are constant values as defined in this classpublic ArrayList getCurveFunctionList()
public boolean getXLog()
public boolean getYLog()
public String getXAxisLabel()
public String getYAxisLabel()
public ArrayList<PlotCurveCharacterstics> getPlottingFeatures()
public boolean isCustomAxis()
public double getUserMinX()
public double getUserMaxX()
public double getUserMinY()
public double getUserMaxY()
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||