|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.data.siteData.AbstractSiteData<Double>
org.opensha.commons.data.siteData.impl.WaldAllenGlobalVs30
public class WaldAllenGlobalVs30
| Field Summary | |
|---|---|
static double |
arcSecondSpacing
|
static String |
COEFF_ACTIVE_NAME
|
static String |
COEFF_CUSTOM_NAME
|
static String |
COEFF_FUNC_PARAM_NAME
|
static String |
COEFF_SELECT_PARAM_NAME
|
static String |
COEFF_STABLE_NAME
|
static String |
DEM_SELECT_DEFAULT
|
static String |
DEM_SELECT_PARAM_NAME
|
static String |
DEM_SRTM30
|
static String |
DEM_SRTM30_PLUS
|
static Boolean |
INTERPOLATE_PARAM_DEFAULT
|
static String |
INTERPOLATE_PARAM_NAME
|
static String |
NAME
|
static String |
SHORT_NAME
|
static double |
spacing
|
| Fields inherited from interface org.opensha.commons.data.siteData.SiteData |
|---|
TYPE_DEPTH_TO_1_0, TYPE_DEPTH_TO_2_5, TYPE_ELEVATION, TYPE_FLAG_INFERRED, TYPE_FLAG_MEASURED, TYPE_TOPOGRAPHIC_SLOPE, TYPE_VS30, TYPE_WILLS_CLASS, XML_METADATA_NAME |
| Constructor Summary | |
|---|---|
WaldAllenGlobalVs30()
|
|
| Method Summary | |
|---|---|
static ArbitrarilyDiscretizedFunc |
createActiveCoefficients()
Creates function for active tectonic regions from Allen & Wald 2008 |
static ArbitrarilyDiscretizedFunc |
createStableCoefficients()
Creates function for stable tectonic regions from Wald & Allen 2007 |
static WaldAllenGlobalVs30 |
fromXMLParams(Element paramsElem)
|
Region |
getApplicableRegion()
This gives the applicable region for this data set. |
Location |
getClosestDataLocation(Location loc)
Get the location of the closest data point |
ArbitrarilyDiscretizedFunc |
getCoeffFunctionClone()
|
String |
getDataMeasurementType()
Get the measurement type for this data, such as "Measured" or "Inferred" |
String |
getDataType()
Get the data type of this dataset |
String |
getMetadata()
Returns the metadata for this dataset. |
String |
getName()
Get the name of this dataset |
double |
getResolution()
This gives the resolution of the dataset in degrees, or 0 for infinite resolution. |
String |
getShortName()
Get the short name of this dataset |
Double |
getValue(Location loc)
Get the value at the closest location |
ArrayList<Double> |
getValues(LocationList locs)
Returns a list of the values at each location. |
protected void |
initParamListEditor()
|
boolean |
isValueValid(Double el)
Returns true if the value is valid, and not NaN, N/A, or equivelant for the data type |
static void |
main(String[] args)
|
void |
parameterChange(ParameterChangeEvent event)
Function that must be implemented by all Listeners for ParameterChangeEvents. |
static void |
printMapping(ArbitrarilyDiscretizedFunc func)
|
void |
setActiveCoefficients()
Helper method for setting active coefficients |
void |
setCoeffFunction(ArbitrarilyDiscretizedFunc func)
|
void |
setInterpolateValues(boolean interpolate)
Helper method for setting interpolation. |
void |
setStableCoefficients()
Helper method for setting stable coefficients |
| Methods inherited from class org.opensha.commons.data.siteData.AbstractSiteData |
|---|
addXMLParameters, certifyMinMaxBasinDepth, certifyMinMaxVs30, fromXMLMetadata, getAdjustableParameterList, getAnnotatedValue, getAnnotatedValues, getParameterListEditor, hasDataForLocation, initDefaultBasinParams, initDefaultVS30Params, toXMLMetadata, toXMLMetadata |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
public static final String SHORT_NAME
public static final double arcSecondSpacing
public static final double spacing
public static final String COEFF_SELECT_PARAM_NAME
public static final String COEFF_ACTIVE_NAME
public static final String COEFF_STABLE_NAME
public static final String COEFF_CUSTOM_NAME
public static final String COEFF_FUNC_PARAM_NAME
public static final String INTERPOLATE_PARAM_NAME
public static final Boolean INTERPOLATE_PARAM_DEFAULT
public static final String DEM_SELECT_PARAM_NAME
public static final String DEM_SRTM30
public static final String DEM_SRTM30_PLUS
public static final String DEM_SELECT_DEFAULT
| Constructor Detail |
|---|
public WaldAllenGlobalVs30()
throws IOException
IOException| Method Detail |
|---|
public static ArbitrarilyDiscretizedFunc createActiveCoefficients()
public static ArbitrarilyDiscretizedFunc createStableCoefficients()
public Region getApplicableRegion()
SiteData
getApplicableRegion in interface SiteData<Double>
public Location getClosestDataLocation(Location loc)
throws IOException
SiteData
getClosestDataLocation in interface SiteData<Double>IOExceptionpublic String getMetadata()
SiteData
getMetadata in interface SiteData<Double>public String getName()
SiteData
getName in interface NamedgetName in interface SiteData<Double>public double getResolution()
SiteData
getResolution in interface SiteData<Double>public String getShortName()
SiteData
getShortName in interface SiteData<Double>public String getDataType()
SiteData
getDataType in interface SiteData<Double>public String getDataMeasurementType()
SiteData
getDataMeasurementType in interface SiteData<Double>
public Double getValue(Location loc)
throws IOException
SiteData
getValue in interface SiteData<Double>IOException
public ArrayList<Double> getValues(LocationList locs)
throws IOException
AbstractSiteData
getValues in interface SiteData<Double>getValues in class AbstractSiteData<Double>IOExceptionpublic void setInterpolateValues(boolean interpolate)
interpolate - - if true, linearly interpolate vs30 valuespublic void setActiveCoefficients()
public void setStableCoefficients()
public boolean isValueValid(Double el)
SiteData
isValueValid in interface SiteData<Double>public void parameterChange(ParameterChangeEvent event)
ParameterChangeListener
parameterChange in interface ParameterChangeListenerevent - The Event which triggered this function callpublic void setCoeffFunction(ArbitrarilyDiscretizedFunc func)
public ArbitrarilyDiscretizedFunc getCoeffFunctionClone()
public static void printMapping(ArbitrarilyDiscretizedFunc func)
protected void initParamListEditor()
initParamListEditor in class AbstractSiteData<Double>
public static void main(String[] args)
throws IOException
IOException
public static WaldAllenGlobalVs30 fromXMLParams(Element paramsElem)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||