org.opensha.commons.data.siteData.util
Class MeanTopoSlopeCalculator
java.lang.Object
org.opensha.commons.data.siteData.util.MeanTopoSlopeCalculator
public class MeanTopoSlopeCalculator
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeanTopoSlopeCalculator
public MeanTopoSlopeCalculator(SiteData<Double> topoSlopeProvider)
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 circleradius - - radius in KMgridSpacing - - 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