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,
java.util.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
|
java.util.List<CalendarDate> |
getCalendarDates()
Get the list of datetimes in this coordinate as CalendarDate objects.
|
CalendarDate[] |
getCoordBoundsDate(int i) |
CalendarDate |
getCoordBoundsMidpointDate(int i) |
java.util.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, convertMissing, convertMissing, convertUnsigned, convertUnsigned, convertUnsigned, fillValueIsMissing, getCoordinateSystems, getDatasetLocation, getDescription, getEnhanceMode, getFillValue, getMissingDataArray, getMissingValues, getNetcdfFile, getOffset, getOriginalDataType, getOriginalName, getOriginalVariable, getScaledOffsetType, getScaleFactor, getSignedness, getUnsignedConversionType, getValidMax, getValidMin, hasFillValue, hasMissing, hasMissingValue, hasScaleOffset, hasValidData, invalidDataIsMissing, isFillValue, isInvalidData, isMissing, isMissingValue, lookupEnumString, missingDataIsMissing, 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
public static CoordinateAxis1DTime.Builder<?> builder()
public static CoordinateAxis1DTime factory(NetcdfDataset ncd, VariableDS org, java.util.Formatter errMessages) throws java.io.IOException
java.io.IOException
public int findTimeIndexFromCalendarDate(CalendarDate d)
d
- date to look forjava.lang.UnsupportedOperationException
- is no time axis or isDate() falsepublic CalendarDate getCalendarDate(int idx)
idx
- indexpublic CalendarDateRange getCalendarDateRange()
public java.util.List<CalendarDate> getCalendarDates()
public CalendarDate[] getCoordBoundsDate(int i)
public CalendarDate getCoordBoundsMidpointDate(int i)
public java.util.List<ucar.nc2.util.NamedObject> getNames()
CoordinateAxis1D
getNames
in class CoordinateAxis1D
public TimeUnit getTimeResolution() throws java.lang.Exception
java.lang.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