Package uk.ac.rdg.resc.edal.grid
Class SimpleGridCell4D
- java.lang.Object
-
- uk.ac.rdg.resc.edal.grid.SimpleGridCell4D
-
- All Implemented Interfaces:
Domain<GeoPosition>,GridCell4D
public class SimpleGridCell4D extends Object implements GridCell4D
-
-
Constructor Summary
Constructors Constructor Description SimpleGridCell4D(GridCell2D hGridCell, Extent<Double> vExtent, VerticalCrs vCrs, Extent<org.joda.time.DateTime> tExtent, org.joda.time.Chronology chronology, GridDomain grid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(GeoPosition position)HorizontalPositiongetCentre()org.joda.time.ChronologygetChronology()PolygongetFootprint()GridDomaingetGrid()Extent<org.joda.time.DateTime>getTimeExtent()VerticalCrsgetVerticalCrs()Extent<Double>getVerticalExtent()
-
-
-
Constructor Detail
-
SimpleGridCell4D
public SimpleGridCell4D(GridCell2D hGridCell, Extent<Double> vExtent, VerticalCrs vCrs, Extent<org.joda.time.DateTime> tExtent, org.joda.time.Chronology chronology, GridDomain grid)
-
-
Method Detail
-
contains
public boolean contains(GeoPosition position)
- Specified by:
containsin interfaceDomain<GeoPosition>- Returns:
- true if the given position is contained within this domain.
-
getCentre
public HorizontalPosition getCentre()
- Specified by:
getCentrein interfaceGridCell4D- Returns:
- the centre of the grid cell in horizontal space
-
getFootprint
public Polygon getFootprint()
- Specified by:
getFootprintin interfaceGridCell4D- Returns:
- the footprint of this grid cell in horizontal space.
-
getTimeExtent
public Extent<org.joda.time.DateTime> getTimeExtent()
- Specified by:
getTimeExtentin interfaceGridCell4D- Returns:
- the range of valid times in the time axis of parent grid
-
getChronology
public org.joda.time.Chronology getChronology()
- Specified by:
getChronologyin interfaceGridCell4D- Returns:
- the
Chronologyused in this grid cell
-
getVerticalExtent
public Extent<Double> getVerticalExtent()
- Specified by:
getVerticalExtentin interfaceGridCell4D- Returns:
- the range of valid integers in the vertical axis of parent grid
-
getVerticalCrs
public VerticalCrs getVerticalCrs()
- Specified by:
getVerticalCrsin interfaceGridCell4D- Returns:
- the
VerticalCrsassociated with thisGridCell4D
-
getGrid
public GridDomain getGrid()
- Specified by:
getGridin interfaceGridCell4D- Returns:
- the parent grid of this grid cell
-
-