Package uk.ac.rdg.resc.edal.grid
Interface HorizontalGrid
-
- All Superinterfaces:
DiscreteDomain<HorizontalPosition,GridCell2D>,DiscreteHorizontalDomain<GridCell2D>,Domain<HorizontalPosition>,HorizontalDomain,Serializable
- All Known Subinterfaces:
RectilinearGrid,RegularGrid,StaggeredHorizontalGrid
- All Known Implementing Classes:
AbstractCurvilinearGrid,AbstractHorizontalGrid,AbstractTransformedGrid,CdmTransformedGrid,DefinedStaggeredGrid,DerivedStaggeredGrid,LookUpTableGrid,MapDomain,RectilinearGridImpl,RegularGridImpl
public interface HorizontalGrid extends DiscreteHorizontalDomain<GridCell2D>, Serializable
A two-dimensional grid in the horizontal plane that is referenced to a 2D horizontal coordinate reference system. If each individual grid axis is aligned with the axes of the CRS, theRectilinearGridclass can be used.- Author:
- Jon Blower
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object obj)GridCoordinates2DfindIndexOf(HorizontalPosition position)Finds the index of the specified position within this domainArray2D<GridCell2D>getDomainObjects()Returns anArrayof domain objects that comprise this domain.intgetXSize()intgetYSize()inthashCode()longsize()Returns the size of this domain.-
Methods inherited from interface uk.ac.rdg.resc.edal.domain.HorizontalDomain
getBoundingBox, getCoordinateReferenceSystem, getGeographicBoundingBox
-
-
-
-
Method Detail
-
getDomainObjects
Array2D<GridCell2D> getDomainObjects()
Description copied from interface:DiscreteDomainReturns anArrayof domain objects that comprise this domain.- Specified by:
getDomainObjectsin interfaceDiscreteDomain<HorizontalPosition,GridCell2D>
-
size
long size()
Returns the size of this domain. Equivalent togetXSize() * getYSize()- Specified by:
sizein interfaceDiscreteHorizontalDomain<GridCell2D>
-
getXSize
int getXSize()
- Returns:
- The size of the x-axis
-
getYSize
int getYSize()
- Returns:
- The size of the y-axis
-
findIndexOf
GridCoordinates2D findIndexOf(HorizontalPosition position)
Finds the index of the specified position within this domain- Parameters:
position- The position to find the index of- Returns:
- A
GridCoordinates2Dobject representing the index of the position within the domain, ornullif the position is outside the domain.
-
-