public class GridLatLon2D extends GridHorizCS
GridHorizCoordinateSystem.CoordReturn| Modifier and Type | Method and Description |
|---|---|
Optional<GridHorizCoordinateSystem.CoordReturn> |
findXYindexFromCoord(double x,
double y)
From the (x,y) projection point, find the indices and coordinates of the horizontal 2D grid.
|
ProjectionRect |
getBoundingBox()
Get horizontal bounding box in projection coordinates.
|
String |
getGeoUnits()
Get the horizontal coordinate units, null for latlon.
|
GridAxis2D |
getLatAxis() |
LatLonPoint |
getLatLon(int xindex,
int yindex)
Get the Lat/Lon coordinates of the midpoint of a grid cell, using the x,y indices
|
GridAxis2D |
getLonAxis() |
List<Range> |
getRangesFromLatLonRect(LatLonRect rect)
Get Index Ranges for the given lat, lon bounding box.
|
int[] |
getShape() |
boolean |
isLatLon()
Does this use lat/lon horizontal axes?
|
boolean |
isRegular()
True if both X and Y axes are 1 dimensional and are regularly spaced.
|
create, equals, getHorizStaggerType, getLatLonBoundingBox, getProjection, getXHorizAxis, getYHorizAxis, hashCode, isGlobalLon, subsetpublic int[] getShape()
public GridAxis2D getLatAxis()
public GridAxis2D getLonAxis()
public boolean isLatLon()
GridHorizCoordinateSystemisLatLon in interface GridHorizCoordinateSystemisLatLon in class GridHorizCSpublic boolean isRegular()
GridHorizCoordinateSystemisRegular in interface GridHorizCoordinateSystemisRegular in class GridHorizCS@Nullable public String getGeoUnits()
GridHorizCoordinateSystemgetGeoUnits in interface GridHorizCoordinateSystemgetGeoUnits in class GridHorizCSpublic ProjectionRect getBoundingBox()
GridHorizCoordinateSystemgetBoundingBox in interface GridHorizCoordinateSystemgetBoundingBox in class GridHorizCSpublic LatLonPoint getLatLon(int xindex, int yindex)
GridHorizCSgetLatLon in class GridHorizCSxindex - x indexyindex - y indexpublic Optional<GridHorizCoordinateSystem.CoordReturn> findXYindexFromCoord(double x, double y)
GridHorizCoordinateSystemfindXYindexFromCoord in interface GridHorizCoordinateSystemfindXYindexFromCoord in class GridHorizCSpublic List<Range> getRangesFromLatLonRect(LatLonRect rect) throws InvalidRangeException
GridHorizCSgetRangesFromLatLonRect in class GridHorizCSrect - the requested lat/lon bounding boxInvalidRangeException