org.opensha.commons.data.siteData.util
Class MeanTopoSlopeCalculator

java.lang.Object
  extended by org.opensha.commons.data.siteData.util.MeanTopoSlopeCalculator

public class MeanTopoSlopeCalculator
extends Object


Constructor Summary
MeanTopoSlopeCalculator(SiteData<Double> topoSlopeProvider)
           
 
Method Summary
 double getMeanSlope(GriddedRegion region)
           
 double getMeanSlope(Location loc, double radius, double gridSpacing)
          Get mean topographic slope for a circular region around the given location
 double getMeanSlope(LocationList locs)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeanTopoSlopeCalculator

public MeanTopoSlopeCalculator(SiteData<Double> topoSlopeProvider)
Method Detail

getMeanSlope

public double getMeanSlope(Location loc,
                           double radius,
                           double gridSpacing)
                    throws IOException
Get mean topographic slope for a circular region around the given location

Parameters:
loc - - location for center of circle
radius - - radius in KM
gridSpacing - - grid spacing in degrees
Returns:
Throws:
IOException

getMeanSlope

public double getMeanSlope(GriddedRegion region)
                    throws IOException
Throws:
IOException

getMeanSlope

public double getMeanSlope(LocationList locs)
                    throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException