public class CoordinateAxis1DTime extends CoordinateAxis1D
CoordinateAxis.AxisComparatorVariable.CacheaxisSizeToCache, axisType, boundaryRef, isContiguous, ncd, positiveorgDataType, orgName, orgVarattributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, hashCode, isMetadata, isVariableLength, ncfile, permitCaching, proxyReader, shape, shapeAsSection, sizeToCache, spiObjectannotations, dodsname, group, immutable, parentstruct, shortName, sort| Modifier and Type | Method and Description |
|---|---|
protected Variable |
copy() |
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.
|
copyNoCache, correctLongitudeWrap, findCoordElement, findCoordElement, findCoordElementBounded, getBound1, getBound2, getCoordBounds, getCoordBoundsMidpoint, getCoordEdge, getCoordEdges, getCoordName, getCoordValue, getCoordValues, getIncrement, getMaxEdgeValue, getMaxValue, getMinEdgeValue, getMinValue, getStart, isContiguous, isInterval, isRegularequals, factory, getAxisType, getBoundaryRef, getCalendarFromAttribute, getInfo, getPositive, getUnitsString, hashCode, isIndependentCoordinate, isNumeric, setAxisType, setBoundaryRef, setPositive_read, _read, addCoordinateSystem, 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, compareTo, createNewCache, extraInfo, findAttribute, findAttributeIgnoreCase, findAttValueIgnoreCase, findDimensionIndex, getAttributeContainer, getAttributes, getDAPName, getDAPName, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getElementSize, getEnumTypedef, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getParentGroup, getProxyReader, getRanges, getRank, getScalarData, getShape, getShape, getShapeAll, getShapeAsSection, getShapeNotScalar, getSize, getSizeToCache, getSPobject, hasCachedData, hashCodeShow, 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, writeCDL, writeCDLannotate, annotation, getDODSName, getFullName, getFullNameEscaped, getGroup, getImmutable, getName, getParentStructure, getShortName, getSort, isMemberOfStructure, localhash, setDODSName, setParentStructure, setShortName, setSort, unwrapclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDataType, getDimension, getDimensions, getDimensionsAll, getElementSize, getEnumTypedef, getFullName, getFullNameEscaped, getNameAndDimensions, getParentGroup, getParentStructure, getRanges, getRank, getShape, getShapeAsSection, getShortName, getSize, isCoordinateVariable, isMemberOfStructure, isMetadata, isScalar, isUnlimited, isVariableLength, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, sectiongetNamecompareTogetNamepublic static CoordinateAxis1DTime factory(NetcdfDataset ncd, VariableDS org, Formatter errMessages) throws IOException
IOExceptionprotected Variable copy()
copy in class CoordinateAxis1Dpublic 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)