|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.calc.disaggregation.DisaggregationCalculator
public class DisaggregationCalculator
Title: DisaggregationCalculator
Description: This class disaggregates a hazard curve based on the input parameters imr, site and eqkRupforecast. See Bazzurro and Cornell (1999, Bull. Seism. Soc. Am., 89, pp. 501-520) for a complete discussion of disaggregation. The Dbar computed here is for rupture distance. This assumes all sources in the ERF are Poissonian.
Copyright: Copyright (c) 2002
Company:
| Field Summary | |
|---|---|
protected static String |
C
|
protected static boolean |
D
|
static String |
DISAGGREGATION_PLOT_JPG_NAME
|
static String |
DISAGGREGATION_PLOT_NAME
|
static String |
DISAGGREGATION_PLOT_PDF_NAME
|
static String |
DISAGGREGATION_PLOT_PNG_NAME
|
static String |
OPENSHA_SERVLET_URL
|
| Constructor Summary | |
|---|---|
DisaggregationCalculator()
creates the DisaggregationCalculator object |
|
| Method Summary | |
|---|---|
static ArrayList<String> |
createGMTScriptForDisaggregationPlot(DisaggregationPlotData data,
String dir)
Creates the GMT_Script lines |
boolean |
disaggregate(double iml,
Site site,
Map<TectonicRegionType,ScalarIMR> imrMap,
AbstractERF eqkRupForecast,
ParameterList calcParams)
this function performs the disaggregation. |
boolean |
disaggregate(double iml,
Site site,
ScalarIMR imr,
AbstractERF eqkRupForecast,
ParameterList calcParams)
this function performs the disaggregation. |
boolean |
done()
Checks to see if disaggregation calculation for the selected site have been completed. |
String |
getBinData()
Returns the Bin Data in the String format |
int |
getCurrRuptures()
gets the number of current rupture being processed |
DisaggregationPlotData |
getDisaggPlotData()
|
String |
getDisaggregationPlotUsingServlet(String metadata)
Gets the plot image for the Disaggregation |
String |
getDisaggregationSourceInfo()
Returns the disaggregated source list with following info ( in each line) 1)Source Id as given by OpenSHA 2)Name of the Source 3)Rate Contributed by that source 4)Percentage Contribution of the source in Hazard at the site. |
String |
getMeanAndModeInfo()
|
int |
getTotRuptures()
gets the total number of ruptures |
void |
setDistanceRange(double[] distBinEdges)
Setting up the Distance Range |
void |
setDistanceRange(double minDist,
int numDist,
double deltaDist)
Setting up the Distance Range |
void |
setMagRange(double[] magBinEdges)
Setting up the Mag Range |
void |
setMagRange(double minMag,
int numMags,
double deltaMag)
Setting up the Mag Range |
void |
setMaxZAxisForPlot(double zMax)
Sets the Max Z Axis Range value for plotting purposes |
void |
setNumSourcestoShow(int numSources)
Sets the number of sources to be shown in the Disaggregation. |
void |
setShowDistances(boolean showDistances)
Enables/disables calculation and display of source distances in source data list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String C
protected static final boolean D
public static final String OPENSHA_SERVLET_URL
public static final String DISAGGREGATION_PLOT_NAME
public static final String DISAGGREGATION_PLOT_JPG_NAME
public static final String DISAGGREGATION_PLOT_PNG_NAME
public static final String DISAGGREGATION_PLOT_PDF_NAME
| Constructor Detail |
|---|
public DisaggregationCalculator()
IOException| Method Detail |
|---|
public boolean disaggregate(double iml,
Site site,
ScalarIMR imr,
AbstractERF eqkRupForecast,
ParameterList calcParams)
disaggregate in interface DisaggregationCalculatorAPIiml: - the intensity measure level to disaggregatesite: - site parameterimr: - selected IMR objecteqkRupForecast: - selected Earthquake rup forecastcalcParams: - calculation parameters from the HazardCurveCalculator
public boolean disaggregate(double iml,
Site site,
Map<TectonicRegionType,ScalarIMR> imrMap,
AbstractERF eqkRupForecast,
ParameterList calcParams)
DisaggregationCalculatorAPI
disaggregate in interface DisaggregationCalculatorAPIpublic String getDisaggregationSourceInfo()
getDisaggregationSourceInfo in interface DisaggregationCalculatorAPI
public void setMagRange(double minMag,
int numMags,
double deltaMag)
setMagRange in interface DisaggregationCalculatorAPIminMag - double - this is the center of the first binnumMags - intdeltaMag - doublepublic void setMagRange(double[] magBinEdges)
dmagBinEdges - - a double array of the distance-bin edges (in correct order, from low to high)
public void setDistanceRange(double minDist,
int numDist,
double deltaDist)
setDistanceRange in interface DisaggregationCalculatorAPIminDist - double - this is the center of the first binnumDist - intdeltaDist - doublepublic void setDistanceRange(double[] distBinEdges)
setDistanceRange in interface DisaggregationCalculatorAPIdistBinEdges - - a double array of the distance-bin edges (in correct order, from low to high)public void setMaxZAxisForPlot(double zMax)
setMaxZAxisForPlot in interface DisaggregationCalculatorAPIzMax - public int getCurrRuptures()
getCurrRuptures in interface DisaggregationCalculatorAPIpublic int getTotRuptures()
getTotRuptures in interface DisaggregationCalculatorAPIpublic boolean done()
done in interface DisaggregationCalculatorAPIpublic String getMeanAndModeInfo()
getMeanAndModeInfo in interface DisaggregationCalculatorAPIpublic String getBinData()
getBinData in interface DisaggregationCalculatorAPIpublic String getDisaggregationPlotUsingServlet(String metadata)
getDisaggregationPlotUsingServlet in interface DisaggregationCalculatorAPImetadata - String
public DisaggregationPlotData getDisaggPlotData()
public static ArrayList<String> createGMTScriptForDisaggregationPlot(DisaggregationPlotData data,
String dir)
public void setNumSourcestoShow(int numSources)
setNumSourcestoShow in interface DisaggregationCalculatorAPInumSources - intpublic void setShowDistances(boolean showDistances)
DisaggregationCalculatorAPI
setShowDistances in interface DisaggregationCalculatorAPI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||