|
||||||||||
| 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.LogicTreeMFDsPlotter
public class LogicTreeMFDsPlotter
This is used for plotting various logic tree MFDs. It generates MFDs for each source type for each branch in UCERF2. The MFDs are saved in a text file. Actually, this class can generate the MFD files and also plot (using JFreeChart) after reading those files. To Generate the files, use the generateMFDsData() method call. To plot the MFDs from files, use the method plotMFDs(). The main() function of this class provides valuable insight into this.
| Constructor Summary | |
|---|---|
LogicTreeMFDsPlotter()
|
|
| Method Summary | |
|---|---|
protected void |
doWeightedSum(String constantParamName,
Object value,
SummedMagFreqDist aFaultTotMFD,
SummedMagFreqDist bFaultTotCharMFD,
SummedMagFreqDist bFaultTotGRMFD,
SummedMagFreqDist nonCA_B_FaultsTotMFD,
SummedMagFreqDist totMFD)
Do Weighted Sum |
void |
generateMFDsData(String path)
This method caclulates MFDs for all logic tree branches and saves them to files. |
protected double |
getCumRateAt6_5(IncrementalMagFreqDist mfd)
Cum rate at 6.5 |
ArrayList |
getCurveFunctionList()
|
protected double |
getMaxMag()
Max Mag |
protected double |
getMinMag()
Min Mag |
protected int |
getNumMags()
Get num Mag |
protected ArrayList<EvenlyDiscretizedFunc> |
getObsCumMFD(UCERF2 ucerf2)
Get Observed Cum MFD |
protected ArrayList<ArbitrarilyDiscretizedFunc> |
getObsIncrMFD(UCERF2 ucerf2)
Get Observed Incr MFD |
ArrayList |
getPlottingFeatures()
|
protected IncrementalMagFreqDist |
getTotal_A_FaultsMFD(UCERF2 ucerf2)
Get A_Faults MFD |
protected IncrementalMagFreqDist |
getTotal_B_FaultsCharMFD(UCERF2 ucerf2)
Get B_Faults Char MFD |
protected IncrementalMagFreqDist |
getTotal_B_FaultsGR_MFD(UCERF2 ucerf2)
Get B_Faults GR MFD |
protected IncrementalMagFreqDist |
getTotal_BackgroundMFD(UCERF2 ucerf2)
Get Background MFD |
protected IncrementalMagFreqDist |
getTotal_C_ZoneMFD(UCERF2 ucerf2)
Get C-Zones MFD |
protected IncrementalMagFreqDist |
getTotal_NonCA_B_FaultsMFD(UCERF2 ucerf2)
Get Non CA B_Faults MFD |
protected IncrementalMagFreqDist |
getTotalMFD(UCERF2 ucerf2)
Get Total MFD |
double |
getUserMaxX()
|
double |
getUserMaxY()
|
double |
getUserMinX()
|
double |
getUserMinY()
|
String |
getXAxisLabel()
|
boolean |
getXLog()
|
String |
getYAxisLabel()
|
boolean |
getYLog()
|
boolean |
isCustomAxis()
|
static void |
main(String[] args)
|
void |
plotMFDs(String path,
boolean isCumulative)
Plot MFDs using Jfreechart. |
protected void |
readMFDsFromFile(String fileName,
ArrayList<IncrementalMagFreqDist> mfdList,
boolean isNSHMP02)
Read MFDs from file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ArrayList<IncrementalMagFreqDist> aFaultMFDsList
protected ArrayList<IncrementalMagFreqDist> bFaultCharMFDsList
protected ArrayList<IncrementalMagFreqDist> bFaultGRMFDsList
protected ArrayList<IncrementalMagFreqDist> totMFDsList
protected ArrayList<IncrementalMagFreqDist> nonCA_B_FaultsMFDsList
protected static final String A_FAULTS_MFD_FILENAME
protected static final String B_FAULTS_CHAR_MFD_FILENAME
protected static final String B_FAULTS_GR_MFD_FILENAME
protected static final String NON_CA_B_FAULTS_MFD_FILENAME
protected static final String TOT_MFD_FILENAME
protected final PlotCurveCharacterstics PLOT_CHAR1
protected final PlotCurveCharacterstics PLOT_CHAR2
protected final PlotCurveCharacterstics PLOT_CHAR3
protected final PlotCurveCharacterstics PLOT_CHAR10
protected final PlotCurveCharacterstics PLOT_CHAR4
protected final PlotCurveCharacterstics PLOT_CHAR5
protected final PlotCurveCharacterstics PLOT_CHAR6
protected final PlotCurveCharacterstics PLOT_CHAR7
protected final PlotCurveCharacterstics PLOT_CHAR8
protected final PlotCurveCharacterstics PLOT_CHAR9
protected ArrayList funcs
protected ArrayList<PlotCurveCharacterstics> plottingFeaturesList
protected UCERF2 ucerf2
| Constructor Detail |
|---|
public LogicTreeMFDsPlotter()
| Method Detail |
|---|
public void generateMFDsData(String path)
path -
protected void readMFDsFromFile(String fileName,
ArrayList<IncrementalMagFreqDist> mfdList,
boolean isNSHMP02)
fileName - mfdList - protected double getMinMag()
protected double getMaxMag()
protected int getNumMags()
public ArrayList getPlottingFeatures()
getPlottingFeatures in interface GraphWindowAPIpublic ArrayList getCurveFunctionList()
getCurveFunctionList in interface GraphWindowAPIprotected double getCumRateAt6_5(IncrementalMagFreqDist mfd)
mfd -
protected ArrayList<EvenlyDiscretizedFunc> getObsCumMFD(UCERF2 ucerf2)
ucerf2 -
protected ArrayList<ArbitrarilyDiscretizedFunc> getObsIncrMFD(UCERF2 ucerf2)
ucerf2 -
protected IncrementalMagFreqDist getTotal_A_FaultsMFD(UCERF2 ucerf2)
ucerf2 -
protected IncrementalMagFreqDist getTotal_C_ZoneMFD(UCERF2 ucerf2)
ucerf2 -
protected IncrementalMagFreqDist getTotal_BackgroundMFD(UCERF2 ucerf2)
ucerf2 -
protected IncrementalMagFreqDist getTotal_B_FaultsCharMFD(UCERF2 ucerf2)
ucerf2 -
protected IncrementalMagFreqDist getTotal_B_FaultsGR_MFD(UCERF2 ucerf2)
ucerf2 -
protected IncrementalMagFreqDist getTotal_NonCA_B_FaultsMFD(UCERF2 ucerf2)
ucerf2 -
protected IncrementalMagFreqDist getTotalMFD(UCERF2 ucerf2)
ucerf2 -
public void plotMFDs(String path,
boolean isCumulative)
protected void doWeightedSum(String constantParamName,
Object value,
SummedMagFreqDist aFaultTotMFD,
SummedMagFreqDist bFaultTotCharMFD,
SummedMagFreqDist bFaultTotGRMFD,
SummedMagFreqDist nonCA_B_FaultsTotMFD,
SummedMagFreqDist totMFD)
paramIndex - paramName - value - weight - aFaultMFD - bFaultMFD - totMFD - public boolean getXLog()
getXLog in interface GraphWindowAPIpublic boolean getYLog()
getYLog in interface GraphWindowAPIpublic String getXAxisLabel()
getXAxisLabel in interface GraphWindowAPIpublic String getYAxisLabel()
getYAxisLabel in interface GraphWindowAPIpublic boolean isCustomAxis()
isCustomAxis in interface GraphWindowAPIpublic double getUserMinX()
getUserMinX in interface GraphWindowAPIpublic double getUserMaxX()
getUserMaxX in interface GraphWindowAPIpublic double getUserMinY()
getUserMinY in interface GraphWindowAPIpublic double getUserMaxY()
getUserMaxY in interface GraphWindowAPIpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||