public class GradsTimeDimension extends GradsDimension
LEVELS, LINEAR
Constructor and Description |
---|
GradsTimeDimension(java.lang.String name,
int size,
java.lang.String mapping)
Create new GradsTimeDimension
|
Modifier and Type | Method and Description |
---|---|
static boolean |
hasTimeTemplate(java.lang.String template)
Does this file definition have a time template in it?
|
protected double[] |
makeLevelValues()
Make the level values from the specifications
|
GradsTimeStruct |
makeTimeStruct(int timeIndex)
Make a time struct from the index.
|
java.lang.String |
replaceFileTemplate(java.lang.String filespec,
int timeIndex)
Replace the time template parameters in a filename
|
public GradsTimeDimension(java.lang.String name, int size, java.lang.String mapping)
name
- the dimension namesize
- the dimension sizemapping
- the dimension mapping typeprotected double[] makeLevelValues()
makeLevelValues
in class GradsDimension
public GradsTimeStruct makeTimeStruct(int timeIndex)
timeIndex
- the time value indexpublic java.lang.String replaceFileTemplate(java.lang.String filespec, int timeIndex)
filespec
- the file templatetimeIndex
- the time indexpublic static boolean hasTimeTemplate(java.lang.String template)
template
- the file template