public class CoordinateAxis1DTime extends CoordinateAxis1D
CoordinateAxis.AxisComparator
Variable.Cache
axisSizeToCache, axisType, boundaryRef, isContiguous, ncd, positive
orgDataType, orgName, orgVar
attributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, hashCode, isMetadata, isVariableLength, ncfile, permitCaching, proxyReader, shape, shapeAsSection, sizeToCache, spiObject
annotations, dodsname, group, immutable, parentstruct, shortName, sort
Modifier and Type | Method and Description |
---|---|
protected Variable |
copy() |
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) |
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
|
CoordinateAxis1DTime |
section(Range r)
Create a new CoordinateAxis1D as a section of this CoordinateAxis1D.
|
copyNoCache, correctLongitudeWrap, findCoordElement, findCoordElement, findCoordElementBounded, getBound1, getBound2, getCoordBounds, getCoordEdge, getCoordEdges, getCoordName, getCoordValue, getCoordValues, getIncrement, getMaxValue, getMinValue, getStart, isContiguous, isInterval, isRegular
equals, factory, getAxisType, getBoundaryRef, getCalendarFromAttribute, getInfo, getPositive, getUnitsString, hashCode, isCoordinateVariable, isNumeric, setAxisType, setBoundaryRef, setPositive
_read, _read, addCoordinateSystem, clearCoordinateSystems, convertEnums, convertScaleOffsetMissing, convertScaleOffsetMissing, convertScaleOffsetMissing, convertScaleOffsetMissing, convertScaleOffsetMissing, convertScaleOffsetMissing, enhance, getCoordinateSystems, getDatasetLocation, getDescription, getEnhanceMode, getMissingDataArray, getOriginalDataType, getOriginalName, getOriginalVariable, getUseNaNs, getValidMax, getValidMin, hasCachedDataRecurse, hasFillValue, hasInvalidData, hasMissing, hasMissingValue, hasScaleOffset, isFillValue, isInvalidData, isMissing, isMissingFast, isMissingValue, lookupEnumString, readToStream, reallyRead, reallyRead, removeCoordinateSystem, setCaching, setFillValueIsMissing, setInvalidDataIsMissing, setMissingDataIsMissing, setName, setOriginalVariable, setUnitsString, setUseNaNs, showScaleMissingProxy, toStringDebug
addAll, addAttribute, compareTo, createNewCache, extraInfo, findAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDAPName, getDAPName, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getElementSize, getEnumTypedef, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNetcdfFile, getParentGroup, getProxyReader, getRanges, getRank, getScalarData, getShape, getShape, getShapeAll, getShapeAsSection, getShapeNotScalar, getSize, getSizeToCache, getSPobject, hasCachedData, hashCodeShow, invalidateCache, isCaching, isImmutable, isMetadata, isScalar, isUnknownLength, isUnlimited, isUnsigned, 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, setUnsigned, setValues, setValues, slice, toString, writeCDL, writeCDL
annotate, getAnnotation, getAnnotations, getDODSName, getFullName, getFullNameEscaped, getGroup, getImmutable, getName, getParentStructure, getShortName, getSort, isMemberOfStructure, localhash, setDODSName, setImmutable, setParentStructure, setShortName, setSort, unwrap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDataType, getDimension, getDimensions, getDimensionsAll, getElementSize, getEnumTypedef, getFullName, getFullNameEscaped, getNameAndDimensions, getParentGroup, getParentStructure, getRanges, getRank, getShape, getShapeAsSection, getShortName, getSize, isMemberOfStructure, isMetadata, isScalar, isUnlimited, isUnsigned, isVariableLength, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, section
getName
public static CoordinateAxis1DTime factory(NetcdfDataset ncd, VariableDS org, java.util.Formatter errMessages) throws java.io.IOException
java.io.IOException
protected Variable copy()
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 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)