public class GridTimeCoord extends java.lang.Object implements java.lang.Comparable<GridTimeCoord>
Modifier and Type | Class and Description |
---|---|
protected static class |
GridTimeCoord.TimeCoordWithInterval |
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
baseDate |
protected int |
constantInterval |
protected int[] |
coordData |
protected boolean |
refDateDiffers |
protected int |
seq |
protected java.util.List<GridTimeCoord.TimeCoordWithInterval> |
timeIntvs |
protected java.util.List<java.util.Date> |
times |
protected java.lang.String |
timeUdunit |
protected int |
timeUnit |
Modifier | Constructor and Description |
---|---|
protected |
GridTimeCoord(java.util.List<GridRecord> records,
java.lang.String where)
Create a new GridTimeCoord from the list of GridRecord
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(GridTimeCoord o) |
int |
findIndex(GridRecord record)
Find the index of a GridRecord in the list of times
|
java.lang.String |
getCoord(int i) |
java.lang.String |
getName()
Get the name
|
boolean |
isInterval()
is this a mixed interval ?
Only true for Grib
|
protected boolean |
matchTimes(java.util.List<GridRecord> records)
match time values - can this list of GridRecords use this coordinate?
|
protected int seq
protected java.lang.String timeUdunit
protected int timeUnit
protected java.util.Date baseDate
protected boolean refDateDiffers
protected java.util.List<java.util.Date> times
protected java.util.List<GridTimeCoord.TimeCoordWithInterval> timeIntvs
protected int constantInterval
protected int[] coordData
protected GridTimeCoord(java.util.List<GridRecord> records, java.lang.String where)
records
- records to usewhere
- file location for warn messageprotected boolean matchTimes(java.util.List<GridRecord> records)
records
- list of recordspublic java.lang.String getName()
public int findIndex(GridRecord record)
record
- the GridRecordpublic boolean isInterval()
public java.lang.String getCoord(int i)
public int compareTo(GridTimeCoord o)
compareTo
in interface java.lang.Comparable<GridTimeCoord>