Package ucar.nc2.ft2.coverage
Class TimeOffsetAxis
- java.lang.Object
-
- ucar.nc2.ft2.coverage.CoverageCoordAxis
-
- ucar.nc2.ft2.coverage.CoverageCoordAxis1D
-
- ucar.nc2.ft2.coverage.TimeOffsetAxis
-
- All Implemented Interfaces:
Comparable<CoverageCoordAxis>
public class TimeOffsetAxis extends CoverageCoordAxis1D
A new way to handle 2D time, a runtime axis with orthogonal offset values, so time = (runtime x offset). This class represents the offset values, which must be the same for each runtime. A Time2DCoordSys has a runtime and a TimeOffsetAxis, and manages the 2D time.- Since:
- 8/13/2015
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ucar.nc2.ft2.coverage.CoverageCoordAxis
CoverageCoordAxis.DependenceType, CoverageCoordAxis.Spacing
-
-
Field Summary
-
Fields inherited from class ucar.nc2.ft2.coverage.CoverageCoordAxis1D
crange, 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 TimeOffsetAxis(CoverageCoordAxisBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoverageCoordAxis
copy()
CalendarDate
makeDate(CalendarDate runDate, double val)
Optional<CoverageCoordAxis>
subset(double minValue, double maxValue, int stride)
Optional<CoverageCoordAxis>
subset(SubsetParams params)
Optional<TimeOffsetAxis>
subsetFromTime(SubsetParams params, CalendarDate runDate)
-
Methods inherited from class ucar.nc2.ft2.coverage.CoverageCoordAxis1D
getCoord, getCoordBoundsAsArray, getCoordEdge1, getCoordEdge2, getCoordEdgeFirst, getCoordEdgeLast, getCoordMidpoint, getCoordObject, getCoordsAsArray, getCoordValueNames, getRange, getRangeIterator, getSummary, isAscending, iterator, subsetBuilder, subsetByIndex, subsetByIntervals, subsetDependent, toString
-
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
-
-
-
-
Constructor Detail
-
TimeOffsetAxis
public TimeOffsetAxis(CoverageCoordAxisBuilder builder)
-
-
Method Detail
-
copy
public CoverageCoordAxis copy()
- Overrides:
copy
in classCoverageCoordAxis1D
-
subsetFromTime
public Optional<TimeOffsetAxis> subsetFromTime(SubsetParams params, CalendarDate runDate)
-
makeDate
public CalendarDate makeDate(CalendarDate runDate, double val)
-
subset
public Optional<CoverageCoordAxis> subset(SubsetParams params)
- Overrides:
subset
in classCoverageCoordAxis1D
-
subset
public Optional<CoverageCoordAxis> subset(double minValue, double maxValue, int stride)
- Overrides:
subset
in classCoverageCoordAxis1D
-
-