public class GridCoordinate2D extends Object
Modifier and Type | Method and Description |
---|---|
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 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 test1() throws IOException
IOException
public static void test2() throws IOException
IOException
public static void test3() throws IOException
IOException
public static void main(String[] args) throws IOException
IOException
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.