public class CoordinateAxis1DTime extends CoordinateAxis1D
Modifier and Type | Class and Description |
---|---|
static class |
CoordinateAxis1DTime.Builder<T extends CoordinateAxis1DTime.Builder<T>> |
CoordinateAxis.AxisComparator
defaultCoordsSizeToCache, defaultSizeToCache, permitCaching
Modifier and Type | Method and Description |
---|---|
static CoordinateAxis1DTime.Builder<?> |
builder()
Get Builder for this class that allows subclassing.
|
static CoordinateAxis1DTime |
factory(NetcdfDataset ncd,
VariableDS org,
Formatter errMessages) |
int |
findTimeIndexFromCalendarDate(CalendarDate d)
Given a Date, find the corresponding time index on the time coordinate axis.
|
CalendarDate |
getCalendarDate(int idx)
Get the the ith CalendarDate.
|
CalendarDateRange |
getCalendarDateRange()
Get calendar date range
|
List<CalendarDate> |
getCalendarDates()
Get the list of datetimes in this coordinate as CalendarDate objects.
|
CalendarDate[] |
getCoordBoundsDate(int i) |
CalendarDate |
getCoordBoundsMidpointDate(int i) |
List<ucar.nc2.util.NamedObject> |
getNames()
Get the list of names, to be used for user selection.
|
TimeUnit |
getTimeResolution()
only if isRegular() LOOK REDO
|
boolean |
hasCalendarDate(CalendarDate date)
See if the given CalendarDate appears as a coordinate
|
CoordinateAxis1DTime |
section(Range r)
Create a new CoordinateAxis1D as a section of this CoordinateAxis1D.
|
CoordinateAxis1DTime.Builder<?> |
toBuilder()
Turn into a mutable Builder.
|
copyNoCache, findCoordElement, findCoordElementBounded, getBound1, getBound2, getCoordBounds, getCoordBoundsMidpoint, getCoordEdge, getCoordEdges, getCoordName, getCoordValue, getCoordValues, getIncrement, getMaxEdgeValue, getMaxValue, getMinEdgeValue, getMinValue, getStart, isContiguous, isInterval, isRegular
equals, fromVariableDS, getAxisType, getBoundaryRef, getCalendarFromAttribute, getInfo, getPositive, getUnitsString, hashCode, isIndependentCoordinate, isNumeric
applyScaleOffset, applyScaleOffset, convert, convertMissing, convertMissing, convertUnsigned, convertUnsigned, getCoordinateSystems, getDatasetLocation, getDescription, getEnhanceMode, getFillValue, getMissingDataArray, getMissingValues, getNetcdfFile, getOffset, getOriginalDataType, getOriginalName, getOriginalVariable, getScaledOffsetType, getScaleFactor, getSignedness, getUnsignedConversionType, getValidMax, getValidMin, hasFillValue, hasMissing, hasMissingValue, hasScaleOffset, hasValidData, isFillValue, isInvalidData, isMissing, isMissingValue, lookupEnumString, readToStream, reallyRead, reallyRead, showScaleMissingProxy, toStringDebug
attributes, compareTo, createNewCache, findAttribute, findAttributeString, findDimensionIndex, getDataType, getDimension, getDimensions, getDimensionsString, getElementSize, getEnumTypedef, getFileTypeId, getFullName, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getParentGroup, getParentStructure, getRanges, getRank, getShape, getShape, getShapeAsSection, getSize, getSizeToCache, getSPobject, hasCachedData, isCaching, isCoordinateVariable, isMemberOfStructure, isMetadata, isScalar, isUnlimited, isVariableLength, read, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, reduce, section, section, slice, toString
getFullName, getShortName
addCoordinateSystem, removeCoordinateSystem
getShortName
filter, findAttributeDouble, findAttributeIgnoreCase, findAttributeInteger, getName, hasAttribute, hasAttributeIgnoreCase, isEmpty, iterator
forEach, spliterator
public static CoordinateAxis1DTime.Builder<?> builder()
public static CoordinateAxis1DTime factory(NetcdfDataset ncd, VariableDS org, Formatter errMessages) throws IOException
IOException
public int findTimeIndexFromCalendarDate(CalendarDate d)
d
- date to look forUnsupportedOperationException
- is no time axis or isDate() falsepublic CalendarDate getCalendarDate(int idx)
idx
- indexpublic CalendarDateRange getCalendarDateRange()
public List<CalendarDate> getCalendarDates()
public CalendarDate[] getCoordBoundsDate(int i)
public CalendarDate getCoordBoundsMidpointDate(int i)
public List<ucar.nc2.util.NamedObject> getNames()
CoordinateAxis1D
getNames
in class CoordinateAxis1D
public TimeUnit getTimeResolution() throws Exception
Exception
- on bad unit stringpublic boolean hasCalendarDate(CalendarDate date)
date
- test thispublic CoordinateAxis1DTime section(Range r) throws InvalidRangeException
CoordinateAxis1D
section
in class CoordinateAxis1D
r
- the section rangeInvalidRangeException
- if IllegalRangepublic CoordinateAxis1DTime.Builder<?> toBuilder()
Variable
toBuilder
in class CoordinateAxis1D