public class CoordinateAxis1DTime extends CoordinateAxis1D
Modifier and Type | Class and Description |
---|---|
static class |
CoordinateAxis1DTime.Builder<T extends CoordinateAxis1DTime.Builder<T>> |
CoordinateAxis.AxisComparator
Variable.Cache
coords, wasRead
axisType, boundaryRef, isContiguous, ncd, positive
orgDataType, orgName, orgVar
attributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, hashCode, isVariableLength, ncfile, permitCaching, proxyReader, shape, sizeToCache, spiObject
annotations, dodsname, group, immutable, parentstruct, shortName, sort
Modifier | Constructor and Description |
---|---|
protected |
CoordinateAxis1DTime(CoordinateAxis1DTime.Builder<?> builder,
Group parentGroup) |
Modifier and Type | Method and Description |
---|---|
protected CoordinateAxis1DTime.Builder<?> |
addLocalFieldsToBuilder(CoordinateAxis1DTime.Builder<? extends CoordinateAxis1DTime.Builder<?>> b) |
static CoordinateAxis1DTime.Builder<?> |
builder()
Get Builder for this class that allows subclassing.
|
protected CoordinateAxis1DTime |
copy()
Deprecated.
Use
toBuilder() |
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.
|
int |
findTimeIndexFromDate(java.util.Date d)
Deprecated.
use findTimeIndexFromCalendarDate
|
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) |
DateRange |
getDateRange()
Deprecated.
use getCalendarDateRange()
|
java.util.List<NamedObject> |
getNames()
Get the list of names, to be used for user selection.
|
java.util.Date |
getTimeDate(int idx)
Deprecated.
use getCalendarDate()
|
java.util.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(java.util.Date date)
Deprecated.
use hasCalendarDate
|
protected void |
readValues() |
CoordinateAxis1DTime |
section(Range r)
Create a new CoordinateAxis1D as a section of this CoordinateAxis1D.
|
CoordinateAxis1DTime.Builder<?> |
toBuilder()
Turn into a mutable Builder.
|
addLocalFieldsToBuilder, copyNoCache, correctLongitudeWrap, findCoordElement, findCoordElement, findCoordElementBounded, getBound1, getBound2, getCoordBounds, getCoordBoundsMidpoint, getCoordEdge, getCoordEdges, getCoordName, getCoordValue, getCoordValues, getIncrement, getMaxEdgeValue, getMaxValue, getMinEdgeValue, getMinValue, getStart, isContiguous, isInterval, isRegular
addLocalFieldsToBuilder, equals, factory, fromVariableDS, getAxisType, getBoundaryRef, getCalendarFromAttribute, getInfo, getPositive, getUnitsString, hashCode, isIndependentCoordinate, isNumeric, setAxisType, setBoundaryRef, setPositive
_read, _read, addCoordinateSystem, addEnhancement, addLocalFieldsToBuilder, applyScaleOffset, applyScaleOffset, clearCoordinateSystems, convert, convertMissing, convertMissing, convertUnsigned, convertUnsigned, convertUnsigned, enhance, fillValueIsMissing, getCoordinateSystems, getDatasetLocation, getDescription, getEnhanceMode, getFillValue, getMissingDataArray, getMissingValues, getNetcdfFile, getOffset, getOriginalDataType, getOriginalName, getOriginalVariable, getScaledOffsetType, getScaleFactor, getSignedness, getUnsignedConversionType, getValidMax, getValidMin, hasCachedDataRecurse, hasFillValue, hasMissing, hasMissingValue, hasScaleOffset, hasValidData, invalidDataIsMissing, isFillValue, isInvalidData, isMissing, isMissingValue, lookupEnumString, missingDataIsMissing, readToStream, reallyRead, reallyRead, removeCoordinateSystem, removeEnhancement, setCaching, setFillValueIsMissing, setInvalidDataIsMissing, setMissingDataIsMissing, setName, setOriginalVariable, setUnitsString, showScaleMissingProxy, toStringDebug
_readScalarData, addAll, addAttribute, addLocalFieldsToBuilder, attributes, compareTo, createNewCache, extraInfo, findAttribute, findAttributeDouble, findAttributeIgnoreCase, findAttributeInteger, findAttributeString, findDimensionIndex, getAttributes, getDAPName, getDAPName, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getElementSize, getEnumTypedef, getFileTypeId, getFullName, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getParentGroup, getParentGroupOrRoot, getParentStructure, getProxyReader, getRanges, getRank, getScalarData, getShape, getShape, getShapeAll, getShapeAsSection, getSize, getSizeToCache, getSPobject, hasCachedData, invalidateCache, isCaching, isCoordinateVariable, isEmpty, isImmutable, isMemberOfStructure, 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, writeCDL, writeCDL
annotate, annotation, getDODSName, getFullNameEscaped, getGroup, getImmutable, getName, getShortName, getSort, localhash, setDODSName, setParentStructure, setShortName, setSort, unwrap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFullName, getShortName
getName, getShortName
filter, findAttValueIgnoreCase, getName, hasAttribute, hasAttributeIgnoreCase, iterator
protected CoordinateAxis1DTime(CoordinateAxis1DTime.Builder<?> builder, Group parentGroup)
public static CoordinateAxis1DTime factory(NetcdfDataset ncd, VariableDS org, java.util.Formatter errMessages) throws java.io.IOException
java.io.IOException
@Deprecated protected CoordinateAxis1DTime copy()
toBuilder()
copy
in class CoordinateAxis1D
public CoordinateAxis1DTime section(Range r) throws InvalidRangeException
CoordinateAxis1D
section
in class CoordinateAxis1D
r
- the section rangeInvalidRangeException
- if IllegalRangepublic CalendarDate getCalendarDate(int idx)
idx
- indexpublic CalendarDateRange getCalendarDateRange()
public java.util.List<NamedObject> getNames()
CoordinateAxis1D
getNames
in class CoordinateAxis1D
public TimeUnit getTimeResolution() throws java.lang.Exception
java.lang.Exception
- on bad unit stringpublic int findTimeIndexFromCalendarDate(CalendarDate d)
d
- date to look forjava.lang.UnsupportedOperationException
- is no time axis or isDate() falsepublic boolean hasCalendarDate(CalendarDate date)
date
- test thispublic java.util.List<CalendarDate> getCalendarDates()
public CalendarDate[] getCoordBoundsDate(int i)
public CalendarDate getCoordBoundsMidpointDate(int i)
protected void readValues()
readValues
in class CoordinateAxis1D
public java.util.Date[] getTimeDates()
public java.util.Date getTimeDate(int idx)
public DateRange getDateRange()
public int findTimeIndexFromDate(java.util.Date d)
public boolean hasTime(java.util.Date date)
public CoordinateAxis1DTime.Builder<?> toBuilder()
Variable
toBuilder
in class CoordinateAxis1D
protected CoordinateAxis1DTime.Builder<?> addLocalFieldsToBuilder(CoordinateAxis1DTime.Builder<? extends CoordinateAxis1DTime.Builder<?>> b)
public static CoordinateAxis1DTime.Builder<?> builder()