public class GridHorizCS extends Object implements GridHorizCoordinateSystem
GridHorizCoordinateSystem.CoordReturn| Modifier and Type | Method and Description |
|---|---|
static GridHorizCS |
create(GridAxis xaxis,
GridAxis yaxis,
Projection projection) |
boolean |
equals(Object o) |
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.
|
String |
getHorizStaggerType()
Horizontal staggering (currently based on WRF).
|
LatLonPoint |
getLatLon(int xindex,
int yindex)
Get the Lat/Lon coordinates of the midpoint of a grid cell, using the x,y indices
|
LatLonRect |
getLatLonBoundingBox()
Get horizontal bounding box in lat, lon coordinates.
|
Projection |
getProjection()
Get the horizontal Projection.
|
List<Range> |
getRangesFromLatLonRect(LatLonRect rect)
Get Index Ranges for the given lat, lon bounding box.
|
GridAxis1D |
getXHorizAxis()
Get the 1D X axis (either GeoX or Lon); null if LatLon2D
|
GridAxis1D |
getYHorizAxis()
Get the 1D Y axis (either GeoY or Lat); null if LatLon2D
|
int |
hashCode() |
boolean |
isGlobalLon()
Is this a global coverage over longitude ?
|
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.
|
List<GridAxis> |
subset(GridSubset params,
Formatter errlog)
Subset both x and y axis based on the given parameters.
|
public static GridHorizCS create(GridAxis xaxis, GridAxis yaxis, @Nullable Projection projection)
@Nullable public GridAxis1D getXHorizAxis()
GridHorizCoordinateSystemgetXHorizAxis in interface GridHorizCoordinateSystem@Nullable public GridAxis1D getYHorizAxis()
GridHorizCoordinateSystemgetYHorizAxis in interface GridHorizCoordinateSystempublic Projection getProjection()
GridHorizCoordinateSystemgetProjection in interface GridHorizCoordinateSystempublic boolean isLatLon()
GridHorizCoordinateSystemisLatLon in interface GridHorizCoordinateSystempublic boolean isGlobalLon()
GridHorizCoordinateSystemisGlobalLon in interface GridHorizCoordinateSystempublic boolean isRegular()
GridHorizCoordinateSystemisRegular in interface GridHorizCoordinateSystem@Nullable public String getGeoUnits()
GridHorizCoordinateSystemgetGeoUnits in interface GridHorizCoordinateSystem@Nullable public String getHorizStaggerType()
GridHorizCoordinateSystemgetHorizStaggerType in interface GridHorizCoordinateSystempublic LatLonRect getLatLonBoundingBox()
GridHorizCoordinateSystemgetLatLonBoundingBox in interface GridHorizCoordinateSystempublic ProjectionRect getBoundingBox()
GridHorizCoordinateSystemgetBoundingBox in interface GridHorizCoordinateSystempublic LatLonPoint getLatLon(int xindex, int yindex)
xindex - x indexyindex - y indexpublic Optional<GridHorizCoordinateSystem.CoordReturn> findXYindexFromCoord(double x, double y)
GridHorizCoordinateSystemfindXYindexFromCoord in interface GridHorizCoordinateSystempublic List<GridAxis> subset(GridSubset params, Formatter errlog)
GridHorizCoordinateSystemsubset in interface GridHorizCoordinateSystempublic List<Range> getRangesFromLatLonRect(LatLonRect rect) throws InvalidRangeException
rect - the requested lat/lon bounding boxInvalidRangeException