public class TimeCoord
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Class and Description |
---|---|
static class |
TimeCoord.Tinv |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equalsData(TimeCoord tother)
Instances that have the same offsetHours/bounds and runtime are equal
|
int |
findIndex(double offsetHour) |
int |
findInterval(double b1,
double b2) |
static TimeCoord |
findTimeCoord(java.util.List<TimeCoord> timeCoords,
TimeCoord want)
Look through timeCoords to see if one matches want.
|
java.lang.String |
getAxisName() |
double[] |
getBound1() |
double[] |
getBound2() |
java.util.List<GridDatasetInv.Grid> |
getGridInventory()
The list of GridDatasetInv.Grid that use this TimeCoord
|
int |
getId()
A unique id for this TimeCoord
|
java.lang.String |
getName() |
int |
getNCoords() |
double[] |
getOffsetTimes()
The list of valid times, in units of hours since the run time
|
CalendarDate |
getRunDate() |
boolean |
isInterval() |
static TimeCoord |
makeUnion(java.util.List<TimeCoord> timeCoords,
CalendarDate baseDate)
Create the union of all the values in the list of TimeCoord, ignoring the TimeCoord's runDate
|
void |
setBounds(double[] bound1,
double[] bound2) |
void |
setBounds(java.util.List<TimeCoord.Tinv> tinvs) |
void |
setId(int id)
Set the unique id for this TimeCoord
|
void |
setOffsetTimes(double[] offset) |
java.lang.String |
toString() |
public static final TimeCoord EMPTY
public CalendarDate getRunDate()
public boolean isInterval()
public java.util.List<GridDatasetInv.Grid> getGridInventory()
public int getId()
public void setId(int id)
id
- id for this TimeCoordpublic java.lang.String getName()
public java.lang.String getAxisName()
public int getNCoords()
public double[] getOffsetTimes()
public double[] getBound1()
public double[] getBound2()
public void setOffsetTimes(double[] offset)
public void setBounds(double[] bound1, double[] bound2)
public void setBounds(java.util.List<TimeCoord.Tinv> tinvs)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equalsData(TimeCoord tother)
tother
- compare this TimeCoord's datapublic int findInterval(double b1, double b2)
public int findIndex(double offsetHour)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public static TimeCoord findTimeCoord(java.util.List<TimeCoord> timeCoords, TimeCoord want)
timeCoords
- look through this listwant
- find equivilentpublic static TimeCoord makeUnion(java.util.List<TimeCoord> timeCoords, CalendarDate baseDate)
timeCoords
- list of TimeCoordbaseDate
- resulting union timeCoord uses this as a base date