@Immutable public class GridAxis1DTime extends GridAxis1D
| Modifier and Type | Class and Description |
|---|---|
static class |
GridAxis1DTime.Builder<T extends GridAxis1DTime.Builder<T>> |
GridAxis.DependenceType, GridAxis.Spacingattributes, axisType, dependenceType, dependsOn, description, isSubset, name, resolution, spacing, units| Modifier | Constructor and Description |
|---|---|
protected |
GridAxis1DTime(GridAxis1DTime.Builder<?> builder) |
| Modifier and Type | Method and Description |
|---|---|
protected GridAxis1DTime.Builder<?> |
addLocalFieldsToBuilder(GridAxis1DTime.Builder<? extends GridAxis1DTime.Builder<?>> b) |
static CalendarDate |
addOffset(CalendarDate runDate,
double offset,
String offsetUnits)
Get the time from the runtime and offset
|
static GridAxis1DTime.Builder<?> |
builder() |
static GridAxis1DTime.Builder<?> |
builder(VariableDS vds)
A builder taking fields from a VariableDS
|
boolean |
equals(Object o) |
int |
findTimeIndexFromCalendarDate(CalendarDate d)
Given a Date, find the corresponding time index on the time coordinate axis.
|
Calendar |
getCalendar()
Get the Calendar used by this axis.
|
CalendarDate |
getCalendarDate(int idx)
Get the the ith coordinate CalendarDate.
|
CalendarDateRange |
getCalendarDateRange()
Get the calendar date range
|
com.google.common.collect.ImmutableList<CalendarDate> |
getCalendarDates()
Get the list of coordinates as CalendarDates.
|
CalendarDateUnit |
getCalendarDateUnit()
Get the CalendarDateUnit
|
CalendarDate[] |
getCoordBoundsDate(int i)
Get the bounds of the ith coordinate as a CalendarDate[2].
|
CalendarDate |
getCoordBoundsMidpointDate(int i)
Get the midpoint of the ith coordinate as a CalendarDate.
|
double |
getOffsetInTimeUnits(CalendarDate start,
CalendarDate end)
Use the CalendarDateUnit to find the difference between two CalendarDates.
|
CalendarDate |
getRefDate()
Get Reference Date of the CalendarDateUnit (not the runtime)
|
String |
getSummary() |
TimeHelper |
getTimeHelper() |
boolean |
hasCalendarDate(CalendarDate date)
See if the given CalendarDate appears as a coordinate
|
int |
hashCode() |
CalendarDate |
makeDate(double value)
Use the CalendarDateUnit to make a CalendarDate from a value.
|
CalendarDate |
makeDateInTimeUnits(CalendarDate start,
double addTo)
Use the CalendarDateUnit to add a value to the given CalendarDate.
|
double |
makeValue(CalendarDate date)
Use the CalendarDateUnit to make a value from a CalendarDate.
|
GridAxis |
subset(GridSubset params,
Formatter errLog)
Create a subset of this axis based on the SubsetParams.
|
GridAxis1DTime.Builder<?> |
toBuilder() |
void |
toString(Formatter f,
Indent indent) |
addLocalFieldsToBuilder, getCoordBoundsAsArray, getCoordEdge1, getCoordEdge2, getCoordEdgeMinMax, getCoordInterval, getCoordMidpoint, getCoordsAsArray, getEndValue, getNcoords, getRange, getRangeIterator, getStartValue, getValues, isAscending, iterator, subsetDependentaddLocalFieldsToBuilder, attributes, compareTo, getAxisType, getDependenceType, getDependsOn, getDescription, getName, getResolution, getSpacing, getUnits, isInterval, isRegular, isSubset, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected GridAxis1DTime(GridAxis1DTime.Builder<?> builder)
public com.google.common.collect.ImmutableList<CalendarDate> getCalendarDates()
public CalendarDate getCalendarDate(int idx)
public CalendarDateRange getCalendarDateRange()
public double makeValue(CalendarDate date)
public TimeHelper getTimeHelper()
public int findTimeIndexFromCalendarDate(CalendarDate d)
d - date to look forpublic boolean hasCalendarDate(CalendarDate date)
public CalendarDate[] getCoordBoundsDate(int i)
public CalendarDate getCoordBoundsMidpointDate(int i)
public static CalendarDate addOffset(CalendarDate runDate, double offset, String offsetUnits)
public CalendarDateUnit getCalendarDateUnit()
public CalendarDate getRefDate()
public double getOffsetInTimeUnits(CalendarDate start, CalendarDate end)
public CalendarDate makeDateInTimeUnits(CalendarDate start, double addTo)
public Calendar getCalendar()
public CalendarDate makeDate(double value)
@Nullable public GridAxis subset(GridSubset params, Formatter errLog)
GridAxissubset in class GridAxis1Dpublic String getSummary()
getSummary in class GridAxis1Dpublic void toString(Formatter f, Indent indent)
toString in class GridAxis1Dpublic boolean equals(Object o)
equals in class GridAxis1Dpublic int hashCode()
hashCode in class GridAxis1Dpublic GridAxis1DTime.Builder<?> toBuilder()
toBuilder in class GridAxis1Dprotected GridAxis1DTime.Builder<?> addLocalFieldsToBuilder(GridAxis1DTime.Builder<? extends GridAxis1DTime.Builder<?>> b)
public static GridAxis1DTime.Builder<?> builder(VariableDS vds)
public static GridAxis1DTime.Builder<?> builder()