Package ucar.nc2.iosp.grads
Class GradsTimeDimension
- java.lang.Object
-
- ucar.nc2.iosp.grads.GradsDimension
-
- ucar.nc2.iosp.grads.GradsTimeDimension
-
public class GradsTimeDimension extends GradsDimension
Class to hold the complexities of the GrADS time dimension
-
-
Field Summary
-
Fields inherited from class ucar.nc2.iosp.grads.GradsDimension
LEVELS, LINEAR
-
-
Constructor Summary
Constructors Constructor Description GradsTimeDimension(String name, int size, String mapping)Create new GradsTimeDimension
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanhasTimeTemplate(String template)Does this file definition have a time template in it?protected double[]makeLevelValues()Make the level values from the specificationsGradsTimeStructmakeTimeStruct(int timeIndex)Make a time struct from the index.StringreplaceFileTemplate(String filespec, int timeIndex)Replace the time template parameters in a filename
-
-
-
Method Detail
-
makeLevelValues
protected double[] makeLevelValues()
Make the level values from the specifications- Overrides:
makeLevelValuesin classGradsDimension- Returns:
- the level values
-
makeTimeStruct
public GradsTimeStruct makeTimeStruct(int timeIndex)
Make a time struct from the index.- Parameters:
timeIndex- the time value index- Returns:
- the corresponding TimeStruct
-
replaceFileTemplate
public String replaceFileTemplate(String filespec, int timeIndex)
Replace the time template parameters in a filename- Parameters:
filespec- the file templatetimeIndex- the time index- Returns:
- the filled in template
- See Also:
- "http://www.iges.org/grads/gadoc/templates.html"
-
hasTimeTemplate
public static boolean hasTimeTemplate(String template)
Does this file definition have a time template in it?- Parameters:
template- the file template- Returns:
- true if it does
-
-