Package ucar.nc2.ft2.coverage
Class CoverageCoordAxis1D
- java.lang.Object
-
- ucar.nc2.ft2.coverage.CoverageCoordAxis
-
- ucar.nc2.ft2.coverage.CoverageCoordAxis1D
-
- All Implemented Interfaces:
Comparable<CoverageCoordAxis>
- Direct Known Subclasses:
TimeOffsetAxis
@Immutable public class CoverageCoordAxis1D extends CoverageCoordAxis
Coverage CoordAxis 1D case- Since:
- 7/15/2015
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ucar.nc2.ft2.coverage.CoverageCoordAxis
CoverageCoordAxis.DependenceType, CoverageCoordAxis.Spacing
-
-
Field Summary
Fields Modifier and Type Field Description protected RangeComposite
crange
protected Range
range
-
Fields inherited from class ucar.nc2.ft2.coverage.CoverageCoordAxis
attributes, axisType, dataType, dependenceType, dependsOn, description, endValue, isSubset, name, ncoords, reader, resolution, spacing, startValue, timeHelper, units, values
-
-
Constructor Summary
Constructors Constructor Description CoverageCoordAxis1D(CoverageCoordAxisBuilder builder)
-
Method Summary
-
Methods inherited from class ucar.nc2.ft2.coverage.CoverageCoordAxis
attributes, compareTo, convert, findAttribute, getAttributeContainer, getAttributes, getAxisType, getCalendar, getCalendarDateUnit, getDataType, getDateRange, getDependenceType, getDependsOn, getDependsOnList, getDescription, getEndValue, getHasData, getName, getNcoords, getOffsetInTimeUnits, getRefDate, getResolution, getShape, getSpacing, getStartValue, getUnits, getValues, isInterval, isRegular, isScalar, isSubset, loadValuesIfNeeded, makeDate, makeDateInTimeUnits, setDataset, toString
-
-
-
-
Field Detail
-
range
protected final Range range
-
crange
protected final RangeComposite crange
-
-
Constructor Detail
-
CoverageCoordAxis1D
public CoverageCoordAxis1D(CoverageCoordAxisBuilder builder)
-
-
Method Detail
-
getRangeIterator
public RangeIterator getRangeIterator()
- Overrides:
getRangeIterator
in classCoverageCoordAxis
-
getRange
public Range getRange()
- Overrides:
getRange
in classCoverageCoordAxis
-
toString
public void toString(Formatter f, Indent indent)
- Overrides:
toString
in classCoverageCoordAxis
-
getSummary
public String getSummary()
- Overrides:
getSummary
in classCoverageCoordAxis
-
isAscending
public boolean isAscending()
-
getCoord
public double getCoord(int index)
-
getCoordMidpoint
public double getCoordMidpoint(int index)
-
getCoordEdge1
public double getCoordEdge1(int index)
-
getCoordEdge2
public double getCoordEdge2(int index)
-
getCoordEdgeFirst
public double getCoordEdgeFirst()
-
getCoordEdgeLast
public double getCoordEdgeLast()
-
getCoordsAsArray
public Array getCoordsAsArray()
- Specified by:
getCoordsAsArray
in classCoverageCoordAxis
-
getCoordBoundsAsArray
public Array getCoordBoundsAsArray()
- Specified by:
getCoordBoundsAsArray
in classCoverageCoordAxis
-
subset
public Optional<CoverageCoordAxis> subset(double minValue, double maxValue, int stride)
- Specified by:
subset
in classCoverageCoordAxis
-
getCoordObject
public Object getCoordObject(int index)
-
getCoordValueNames
@Deprecated public List<NamedObject> getCoordValueNames()
Deprecated.will be moved in ver6
-
copy
public CoverageCoordAxis copy()
- Specified by:
copy
in classCoverageCoordAxis
-
subset
public Optional<CoverageCoordAxis> subset(SubsetParams params)
- Specified by:
subset
in classCoverageCoordAxis
-
subsetByIntervals
public Optional<CoverageCoordAxis> subsetByIntervals(List<MAMath.MinMax> lonIntvs, int stride)
-
subsetByIndex
public Optional<CoverageCoordAxis> subsetByIndex(Range range)
-
subsetBuilder
protected Optional<CoverageCoordAxisBuilder> subsetBuilder(SubsetParams params)
-
subsetDependent
public Optional<CoverageCoordAxis> subsetDependent(CoverageCoordAxis1D dependsOn)
- Specified by:
subsetDependent
in classCoverageCoordAxis
-
-