@Immutable public abstract class CoordinateTimeAbstract extends Object implements Coordinate
Coordinate.Type| Modifier and Type | Field and Description |
|---|---|
static CalendarDateFactory |
cdf |
protected int |
code |
static String |
MIXED_INTERVALS |
protected String |
name |
protected ucar.nc2.time.CalendarDate |
refDate |
protected int[] |
time2runtime |
protected ucar.nc2.time.CalendarPeriod |
timeUnit |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
int |
getMasterRuntimeIndex(int timeIdx) |
String |
getName() |
int |
getNCoords() |
double |
getOffsetInTimeUnits(ucar.nc2.time.CalendarDate start) |
ucar.nc2.time.CalendarDate |
getRefDate() |
int[] |
getTime2runtime() |
String |
getTimeUdUnit() |
ucar.nc2.time.CalendarPeriod |
getTimeUnit() |
String |
getUnit() |
CoordinateTimeAbstract |
makeBestFromComplete()
Implements coverting a "complete best" to a "monotonic best".
|
protected abstract CoordinateTimeAbstract |
makeBestFromComplete(int[] best,
int n) |
abstract ucar.nc2.time.CalendarDateRange |
makeCalendarDateRange(ucar.nc2.time.Calendar cal) |
void |
setName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalcDistributions, estMemorySize, getIndex, getSize, getType, getValue, getValues, showCoords, showInfopublic static final String MIXED_INTERVALS
public static CalendarDateFactory cdf
protected final int code
protected final ucar.nc2.time.CalendarPeriod timeUnit
protected final ucar.nc2.time.CalendarDate refDate
protected final int[] time2runtime
protected String name
public int getCode()
getCode in interface Coordinatepublic String getUnit()
getUnit in interface Coordinatepublic String getTimeUdUnit()
public String getName()
getName in interface Coordinatepublic void setName(String name)
public ucar.nc2.time.CalendarDate getRefDate()
public ucar.nc2.time.CalendarPeriod getTimeUnit()
public int[] getTime2runtime()
public int getMasterRuntimeIndex(int timeIdx)
public int getNCoords()
getNCoords in interface Coordinatepublic double getOffsetInTimeUnits(ucar.nc2.time.CalendarDate start)
public CoordinateTimeAbstract makeBestFromComplete()
protected abstract CoordinateTimeAbstract makeBestFromComplete(int[] best, int n)
public abstract ucar.nc2.time.CalendarDateRange makeCalendarDateRange(ucar.nc2.time.Calendar cal)