public class CoordinateAxis1DTime extends CoordinateAxis1D
| Modifier and Type | Class and Description |
|---|---|
static class |
CoordinateAxis1DTime.Builder<T extends CoordinateAxis1DTime.Builder<T>> |
CoordinateAxis.AxisComparatordefaultCoordsSizeToCache, 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.
|
int |
findTimeIndexFromDate(Date d)
Deprecated.
use findTimeIndexFromCalendarDate
|
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) |
DateRange |
getDateRange()
Deprecated.
use getCalendarDateRange()
|
List<NamedObject> |
getNames()
Get the list of names, to be used for user selection.
|
Date |
getTimeDate(int idx)
Deprecated.
use getCalendarDate()
|
Date[] |
getTimeDates()
Deprecated.
use getCalendarDates() to correctly interpret calendars
|
TimeUnit |
getTimeResolution()
only if isRegular() LOOK REDO
|
boolean |
hasCalendarDate(CalendarDate date)
See if the given CalendarDate appears as a coordinate
|
boolean |
hasTime(Date date)
Deprecated.
use hasCalendarDate
|
CoordinateAxis1DTime |
section(Range r)
Create a new CoordinateAxis1D as a section of this CoordinateAxis1D.
|
CoordinateAxis1DTime.Builder<?> |
toBuilder()
Turn into a mutable Builder.
|
copyNoCache, correctLongitudeWrap, findCoordElement, findCoordElement, findCoordElementBounded, getBound1, getBound2, getCoordBounds, getCoordBoundsMidpoint, getCoordEdge, getCoordEdges, getCoordName, getCoordValue, getCoordValues, getIncrement, getMaxEdgeValue, getMaxValue, getMinEdgeValue, getMinValue, getStart, isContiguous, isInterval, isRegularequals, factory, fromVariableDS, getAxisType, getBoundaryRef, getCalendarFromAttribute, getInfo, getPositive, getUnitsString, hashCode, isIndependentCoordinate, isNumeric, setAxisType, setBoundaryRef, setPositiveaddCoordinateSystem, addEnhancement, applyScaleOffset, applyScaleOffset, clearCoordinateSystems, convert, convertMissing, convertMissing, convertUnsigned, convertUnsigned, enhance, getCoordinateSystems, getDatasetLocation, getDescription, getEnhanceMode, getFillValue, getMissingDataArray, getMissingValues, getNetcdfFile, getOffset, getOriginalDataType, getOriginalName, getOriginalVariable, getScaledOffsetType, getScaleFactor, getSignedness, getUnsignedConversionType, getValidMax, getValidMin, hasCachedDataRecurse, hasFillValue, hasMissing, hasMissingValue, hasScaleOffset, hasValidData, isFillValue, isInvalidData, isMissing, isMissingValue, lookupEnumString, readToStream, reallyRead, reallyRead, removeCoordinateSystem, removeEnhancement, setCaching, setFillValueIsMissing, setInvalidDataIsMissing, setMissingDataIsMissing, setName, setOriginalVariable, setUnitsString, showScaleMissingProxy, toStringDebugaddAll, addAttribute, attributes, compareTo, createNewCache, findAttribute, findAttributeDouble, findAttributeIgnoreCase, findAttributeInteger, findAttValueIgnoreCase, findDimensionIndex, getAttributes, getDAPName, getDAPName, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getElementSize, getEnumTypedef, getFileTypeId, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getParentGroup, getProxyReader, getRanges, getRank, getShape, getShape, getShapeAll, getShapeAsSection, getSize, getSizeToCache, getSPobject, hasCachedData, invalidateCache, isCaching, isCoordinateVariable, isImmutable, isMetadata, isScalar, isUnknownLength, isUnlimited, isVariableLength, read, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, readToByteChannel, reduce, remove, removeAttribute, removeAttributeIgnoreCase, resetDimensions, resetShape, section, section, setCachedData, setCachedData, setDataType, setDimension, setDimensions, setDimensions, setDimensionsAnonymous, setElementSize, setEnumTypedef, setImmutable, setIsScalar, setParentGroup, setProxyReader, setSizeToCache, setSPobject, setValues, setValues, slice, toString, writeCDLannotate, annotation, getDODSName, getFullName, getFullNameEscaped, getGroup, getImmutable, getName, getParentStructure, getShortName, getSort, isMemberOfStructure, localhash, setDODSName, setParentStructure, setShortName, setSort, unwrapgetFullName, getShortNamegetFullName, getName, getShortNamegetName, hasAttribute, iteratorforEach, spliteratorpublic static CoordinateAxis1DTime factory(NetcdfDataset ncd, VariableDS org, Formatter errMessages) throws IOException
IOExceptionpublic CoordinateAxis1DTime section(Range r) throws InvalidRangeException
CoordinateAxis1Dsection in class CoordinateAxis1Dr - the section rangeInvalidRangeException - if IllegalRangepublic CalendarDate getCalendarDate(int idx)
idx - indexpublic CalendarDateRange getCalendarDateRange()
public List<NamedObject> getNames()
CoordinateAxis1DgetNames in class CoordinateAxis1Dpublic TimeUnit getTimeResolution() throws Exception
Exception - on bad unit stringpublic int findTimeIndexFromCalendarDate(CalendarDate d)
d - date to look forUnsupportedOperationException - is no time axis or isDate() falsepublic boolean hasCalendarDate(CalendarDate date)
date - test thispublic List<CalendarDate> getCalendarDates()
public CalendarDate[] getCoordBoundsDate(int i)
public CalendarDate getCoordBoundsMidpointDate(int i)
public Date[] getTimeDates()
public Date getTimeDate(int idx)
public DateRange getDateRange()
public int findTimeIndexFromDate(Date d)
public boolean hasTime(Date date)
public CoordinateAxis1DTime.Builder<?> toBuilder()
VariabletoBuilder in class CoordinateAxis1Dpublic static CoordinateAxis1DTime.Builder<?> builder()