public class CoordinateAxis1DTime extends CoordinateAxis1D
CoordinateAxis.AxisComparatorVariable.CacheaxisType, boundaryRef, isContiguous, ncd, positiveorgDataType, orgName, orgVarattributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, group, isMetadata, isVariableLength, ncfile, parent, proxyReader, shape, shapeAsSection, shortName, sizeToCache, spiObject| 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.
|
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
|
CoordinateAxis1D |
section(Range r)
Create a new CoordinateAxis1D as a section of this CoordinateAxis1D.
|
copyNoCache, findCoordElement, findCoordElement, findCoordElementBounded, getBound1, getBound2, getCoordEdge, getCoordEdges, getCoordEdges, getCoordName, getCoordValue, getCoordValues, getIncrement, getMaxValue, getMinValue, getStart, isContiguous, isInterval, isRegularequals, factory, getAxisType, getBoundaryRef, getInfo, getPositive, getUnitsString, hashCode, 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, toStringDebugaddAttribute, clone, compareTo, createNewCache, extraInfo, findAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDAPName, getDAPName, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getElementSize, getEnumTypedef, getFullName, getFullNameEscaped, getName, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getParentGroup, getParentStructure, getProxyReader, getRanges, getRank, getScalarData, getShape, getShape, getShapeAll, getShapeAsSection, getShortName, getSize, getSizeToCache, getSPobject, hasCachedData, invalidateCache, isCaching, isCoordinateVariable, isImmutable, isMemberOfStructure, isMetadata, isScalar, isUnknownLength, isUnlimited, isUnsigned, isVariableLength, read, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, readToByteChannel, remove, removeAttribute, removeAttributeIgnoreCase, resetDimensions, resetShape, section, section, setCachedData, setCachedData, setDataType, setDimension, setDimensions, setDimensions, setDimensionsAnonymous, setElementSize, setEnumTypedef, setImmutable, setIsScalar, setParentGroup, setParentStructure, setProxyReader, setSizeToCache, setSPobject, setValues, setValues, slice, toString, writeCDL, writeCDLfinalize, getClass, notify, notifyAll, wait, wait, waitfindAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDataType, getDimension, getDimensions, getDimensionsAll, getElementSize, getFullName, getFullNameEscaped, getNameAndDimensions, getParentGroup, getParentStructure, getRanges, getRank, getShape, getShapeAsSection, getShortName, getSize, isCoordinateVariable, isMemberOfStructure, isMetadata, isScalar, isUnlimited, isUnsigned, isVariableLength, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, sectiongetNamecompareTopublic static CoordinateAxis1DTime factory(NetcdfDataset ncd, VariableDS org, Formatter errMessages) throws IOException
IOExceptionprotected Variable copy()
copy in class CoordinateAxis1Dpublic CoordinateAxis1D 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 Date[] getTimeDates()
public Date getTimeDate(int idx)
public DateRange getDateRange()
public int findTimeIndexFromDate(Date d)
public boolean hasTime(Date date)
Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.