Package ucar.nc2.grid
Class GridAxisPoint
- java.lang.Object
-
- ucar.nc2.grid.GridAxis<Number>
-
- ucar.nc2.grid.GridAxisPoint
-
- All Implemented Interfaces:
Comparable<GridAxis<Number>>
,Iterable<Number>
@Immutable public class GridAxisPoint extends GridAxis<Number> implements Iterable<Number>
Point Grid coordinates. When representing Lon coordinates, use projection latlon, not constrained to +/- 180 like LatLonPoint, and must be monotonic.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GridAxisPoint.Builder<T extends GridAxisPoint.Builder<T>>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
binarySearch(double want)
Public by accident.static GridAxisPoint.Builder<?>
builder()
Get Builder for this class that allows subclassing.boolean
equals(Object o)
double
getCoordDouble(int index)
The same as getCoordinate(), cast to a double.Number
getCoordinate(int index)
The nominal value of the coordinate.CoordInterval
getCoordInterval(int index)
CoordIntervals are midway between the point, cast to a double.int
getNominalSize()
Nominal in the sense that it may not match the materialized data array.Range
getSubsetRange()
For subsets, the range in the original axis that constitutes the subset.int
hashCode()
Iterator<Number>
iterator()
Optional<GridAxisPoint>
subset(GridSubset params, Formatter errlog)
Create a logically subset of this GridAxis.GridAxisPoint.Builder<?>
toBuilder()
-
Methods inherited from class ucar.nc2.grid.GridAxis
attributes, compareTo, getAxisType, getDependenceType, getDependsOn, getDescription, getName, getResolution, getSpacing, getUnits, isInterval, isRegular, toString
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getNominalSize
public int getNominalSize()
Description copied from class:GridAxis
Nominal in the sense that it may not match the materialized data array.- Specified by:
getNominalSize
in classGridAxis<Number>
-
subset
public Optional<GridAxisPoint> subset(GridSubset params, Formatter errlog)
Description copied from class:GridAxis
Create a logically subset of this GridAxis.
-
getSubsetRange
public Range getSubsetRange()
Description copied from class:GridAxis
For subsets, the range in the original axis that constitutes the subset.- Specified by:
getSubsetRange
in classGridAxis<Number>
-
getCoordinate
public Number getCoordinate(int index)
Description copied from class:GridAxis
The nominal value of the coordinate.- Specified by:
getCoordinate
in classGridAxis<Number>
-
getCoordInterval
public CoordInterval getCoordInterval(int index)
CoordIntervals are midway between the point, cast to a double.- Specified by:
getCoordInterval
in classGridAxis<Number>
-
getCoordDouble
public double getCoordDouble(int index)
The same as getCoordinate(), cast to a double.- Specified by:
getCoordDouble
in classGridAxis<Number>
-
binarySearch
public int binarySearch(double want)
Description copied from class:GridAxis
Public by accident.- Specified by:
binarySearch
in classGridAxis<Number>
-
toBuilder
public GridAxisPoint.Builder<?> toBuilder()
-
builder
public static GridAxisPoint.Builder<?> builder()
Get Builder for this class that allows subclassing.
-
-