org.opensha.nshmp.sha.data
Class SiteInterpolation

java.lang.Object
  extended by org.opensha.nshmp.sha.data.SiteInterpolation

public class SiteInterpolation
extends Object

Title: SiteInterpolation

Description: This class finds the 4 nearest locations to a given location. Then using the bi-linear interpolation finds the values at this given location.

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

Constructor Summary
SiteInterpolation()
           
 
Method Summary
 double getGridSpacing()
          Returns the gridSpacing
 int getNumPeriods()
          Returns the num of Periods
 float[] getPeriods()
          Returns the Periods Values as read from the file
 ArbitrarilyDiscretizedFunc getPeriodValuesForLocation(String fileName, DataRecord record, double latitude, double longitude)
           
 void printRegionBounds(DataRecord record, String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteInterpolation

public SiteInterpolation()
Method Detail

getPeriodValuesForLocation

public ArbitrarilyDiscretizedFunc getPeriodValuesForLocation(String fileName,
                                                             DataRecord record,
                                                             double latitude,
                                                             double longitude)

printRegionBounds

public void printRegionBounds(DataRecord record,
                              String fileName)

getGridSpacing

public double getGridSpacing()
Returns the gridSpacing

Returns:
float

getNumPeriods

public int getNumPeriods()
Returns the num of Periods

Returns:
int

getPeriods

public float[] getPeriods()
Returns the Periods Values as read from the file

Returns:
float[]