public class GridCoordinate2D extends Object
| Constructor and Description |
|---|
GridCoordinate2D(ucar.nc2.dataset.CoordinateAxis2D latCoord,
ucar.nc2.dataset.CoordinateAxis2D lonCoord) |
| Modifier and Type | Method and Description |
|---|---|
static void |
doOne(GridCoordinate2D g2d,
double wantLat,
double wantLon) |
boolean |
findCoordElement(double wantLat,
double wantLon,
int[] rectIndex) |
boolean |
findCoordElementForce(double wantLat,
double wantLon,
int[] rectIndex) |
boolean |
findCoordElementNoForce(double wantLat,
double wantLon,
int[] rectIndex)
Find the best index for the given lat,lon point.
|
static void |
main(String[] args) |
static void |
test1() |
static void |
test2() |
static void |
test3() |
public GridCoordinate2D(ucar.nc2.dataset.CoordinateAxis2D latCoord,
ucar.nc2.dataset.CoordinateAxis2D lonCoord)
public boolean findCoordElementForce(double wantLat,
double wantLon,
int[] rectIndex)
public boolean findCoordElement(double wantLat,
double wantLon,
int[] rectIndex)
public boolean findCoordElementNoForce(double wantLat,
double wantLon,
int[] rectIndex)
wantLat - lat of pointwantLon - lon of pointrectIndex - return (row,col) index, or best guess here. may not be nullpublic static void doOne(GridCoordinate2D g2d, double wantLat, double wantLon)
public static void test1()
throws IOException
IOExceptionpublic static void test2()
throws IOException
IOExceptionpublic static void test3()
throws IOException
IOExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.