org.opensha.nshmp.sha.calc
Class UHS_SACalculator

java.lang.Object
  extended by org.opensha.nshmp.sha.calc.UHS_SACalculator

public class UHS_SACalculator
extends java.lang.Object

Title: UHS_SACalculator

Description: Computes the values for the Ss and S1 for the given location or territory in USA.

Version:
1.0
Author:
Ned Field, Nitin Gupta , E.V.Leyendecker

Field Summary
protected  float gridSpacing
           
protected  java.text.DecimalFormat latLonFormat
           
protected static java.lang.String SA_TITLE
          Some static String for the data printing
 
Constructor Summary
UHS_SACalculator()
           
 
Method Summary
 XY_DataSetList getSA(java.lang.String selectedRegion, java.lang.String selectedEdition, double latitude, double longitude, java.lang.String spectraType)
           
 XY_DataSetList getSA(java.lang.String selectedRegion, java.lang.String selectedEdition, java.lang.String zipCode, java.lang.String spectraType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gridSpacing

protected float gridSpacing

SA_TITLE

protected static final java.lang.String SA_TITLE
Some static String for the data printing

See Also:
Constant Field Values

latLonFormat

protected java.text.DecimalFormat latLonFormat
Constructor Detail

UHS_SACalculator

public UHS_SACalculator()
Method Detail

getSA

public XY_DataSetList getSA(java.lang.String selectedRegion,
                            java.lang.String selectedEdition,
                            double latitude,
                            double longitude,
                            java.lang.String spectraType)
Parameters:
latitude - double
longitude - double
Returns:
ArbitrarilyDiscretizedFunc

getSA

public XY_DataSetList getSA(java.lang.String selectedRegion,
                            java.lang.String selectedEdition,
                            java.lang.String zipCode,
                            java.lang.String spectraType)
                     throws ZipCodeErrorException
Parameters:
zipCode -
Returns:
Throws:
ZipCodeErrorException