org.opensha.commons.util.binFile
Class GeolocatedRectangularBinaryMesh2DCalculator

java.lang.Object
  extended by org.opensha.commons.util.binFile.BinaryMesh2DCalculator
      extended by org.opensha.commons.util.binFile.GeolocatedRectangularBinaryMesh2DCalculator

public class GeolocatedRectangularBinaryMesh2DCalculator
extends BinaryMesh2DCalculator


Nested Class Summary
 
Nested classes/interfaces inherited from class org.opensha.commons.util.binFile.BinaryMesh2DCalculator
BinaryMesh2DCalculator.DataType, BinaryMesh2DCalculator.MeshOrder
 
Field Summary
static boolean D
           
 
Fields inherited from class org.opensha.commons.util.binFile.BinaryMesh2DCalculator
nx, ny
 
Constructor Summary
GeolocatedRectangularBinaryMesh2DCalculator(BinaryMesh2DCalculator.DataType numType, int nx, int ny, double minLat, double minLon, double gridSpacing)
          Creates a new GeolocatedRectangularBinaryMesh2DCalculator assuming that the data starts at the bottom left corner of the region (at minLat, minLon) and is ordered fast-X-Y.
 
Method Summary
 Location calcClosestLocation(double lat, double lon)
           
 Location calcClosestLocation(Location loc)
           
 long calcClosestLocationFileIndex(double lat, double lon)
           
 long calcClosestLocationFileIndex(Location loc)
           
 long calcClosestLocationIndex(double lat, double lon)
           
 long calcClosestLocationIndex(Location loc)
           
 long[] calcClosestLocationIndices(double lat, double lon)
           
 long[] calcClosestLocationIndices(Location loc)
           
 Region getApplicableRegion()
           
 double getGridSpacing()
           
 Location getLocationForPoint(long x, long y)
           
 double getMaxLat()
           
 double getMaxLon()
           
 double getMinLat()
           
 double getMinLon()
           
 boolean isStartBottom()
           
 boolean isStartLeft()
           
 boolean isWrapLat()
           
 boolean isWrapLon()
           
 void setStartBottom(boolean startBottom)
           
 void setStartLeft(boolean startLeft)
           
 
Methods inherited from class org.opensha.commons.util.binFile.BinaryMesh2DCalculator
calcFileIndex, calcFileX, calcFileY, calcMeshIndex, calcMeshX, calcMeshY, getMaxFilePos, getMeshOrder, getNX, getNY, getType, setMeshOrder, setNX, setNY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

D

public static final boolean D
See Also:
Constant Field Values
Constructor Detail

GeolocatedRectangularBinaryMesh2DCalculator

public GeolocatedRectangularBinaryMesh2DCalculator(BinaryMesh2DCalculator.DataType numType,
                                                   int nx,
                                                   int ny,
                                                   double minLat,
                                                   double minLon,
                                                   double gridSpacing)
Creates a new GeolocatedRectangularBinaryMesh2DCalculator assuming that the data starts at the bottom left corner of the region (at minLat, minLon) and is ordered fast-X-Y.

Parameters:
numType -
nx -
ny -
minLat -
minLon -
gridSpacing -
Method Detail

calcClosestLocationIndices

public long[] calcClosestLocationIndices(Location loc)

calcClosestLocationIndices

public long[] calcClosestLocationIndices(double lat,
                                         double lon)

calcClosestLocationIndex

public long calcClosestLocationIndex(Location loc)

calcClosestLocationIndex

public long calcClosestLocationIndex(double lat,
                                     double lon)

calcClosestLocationFileIndex

public long calcClosestLocationFileIndex(Location loc)

calcClosestLocationFileIndex

public long calcClosestLocationFileIndex(double lat,
                                         double lon)

getLocationForPoint

public Location getLocationForPoint(long x,
                                    long y)

calcClosestLocation

public Location calcClosestLocation(Location loc)

calcClosestLocation

public Location calcClosestLocation(double lat,
                                    double lon)

getMinLat

public double getMinLat()

getMaxLat

public double getMaxLat()

getMinLon

public double getMinLon()

getMaxLon

public double getMaxLon()

getGridSpacing

public double getGridSpacing()

isStartBottom

public boolean isStartBottom()

setStartBottom

public void setStartBottom(boolean startBottom)

isStartLeft

public boolean isStartLeft()

setStartLeft

public void setStartLeft(boolean startLeft)

getApplicableRegion

public Region getApplicableRegion()

isWrapLat

public boolean isWrapLat()

isWrapLon

public boolean isWrapLon()