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 boolean
contains(GeoPosition position)
HorizontalPosition
getCentre()
org.joda.time.Chronology
getChronology()
Polygon
getFootprint()
GridDomain
getGrid()
Extent<org.joda.time.DateTime>
getTimeExtent()
VerticalCrs
getVerticalCrs()
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:
contains
in interfaceDomain<GeoPosition>
- Returns:
- true if the given position is contained within this domain.
-
getCentre
public HorizontalPosition getCentre()
- Specified by:
getCentre
in interfaceGridCell4D
- Returns:
- the centre of the grid cell in horizontal space
-
getFootprint
public Polygon getFootprint()
- Specified by:
getFootprint
in interfaceGridCell4D
- Returns:
- the footprint of this grid cell in horizontal space.
-
getTimeExtent
public Extent<org.joda.time.DateTime> getTimeExtent()
- Specified by:
getTimeExtent
in interfaceGridCell4D
- Returns:
- the range of valid times in the time axis of parent grid
-
getChronology
public org.joda.time.Chronology getChronology()
- Specified by:
getChronology
in interfaceGridCell4D
- Returns:
- the
Chronology
used in this grid cell
-
getVerticalExtent
public Extent<Double> getVerticalExtent()
- Specified by:
getVerticalExtent
in interfaceGridCell4D
- Returns:
- the range of valid integers in the vertical axis of parent grid
-
getVerticalCrs
public VerticalCrs getVerticalCrs()
- Specified by:
getVerticalCrs
in interfaceGridCell4D
- Returns:
- the
VerticalCrs
associated with thisGridCell4D
-
getGrid
public GridDomain getGrid()
- Specified by:
getGrid
in interfaceGridCell4D
- Returns:
- the parent grid of this grid cell
-
-