public class GridTimeCoord extends Object implements Comparable<GridTimeCoord>
Modifier and Type | Class and Description |
---|---|
protected class |
GridTimeCoord.TimeCoordWithInterval |
Modifier and Type | Field and Description |
---|---|
protected Date |
baseDate |
protected int |
constantInterval |
protected int[] |
coordData |
protected boolean |
refDateDiffers |
protected int |
seq |
protected List<GridTimeCoord.TimeCoordWithInterval> |
timeIntvs |
protected List<Date> |
times |
protected String |
timeUdunit |
protected int |
timeUnit |
Modifier | Constructor and Description |
---|---|
protected |
GridTimeCoord(List<GridRecord> records,
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
|
String |
getCoord(int i) |
String |
getName()
Get the name
|
boolean |
isInterval()
is this a mixed interval ?
Only true for Grib
|
protected boolean |
matchTimes(List<GridRecord> records)
match time values - can this list of GridRecords use this coordinate?
|
protected int seq
protected String timeUdunit
protected int timeUnit
protected Date baseDate
protected boolean refDateDiffers
protected List<GridTimeCoord.TimeCoordWithInterval> timeIntvs
protected int constantInterval
protected int[] coordData
protected GridTimeCoord(List<GridRecord> records, String where)
records
- records to usewhere
- file location for warn messageprotected boolean matchTimes(List<GridRecord> records)
records
- list of recordspublic String getName()
public int findIndex(GridRecord record)
record
- the GridRecordpublic boolean isInterval()
public String getCoord(int i)
public int compareTo(GridTimeCoord o)
compareTo
in interface Comparable<GridTimeCoord>
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.