ucar.nc2.iosp.grads
Class GradsEnsembleDimension

java.lang.Object
  extended by ucar.nc2.iosp.grads.GradsDimension
      extended by ucar.nc2.iosp.grads.GradsEnsembleDimension

public class GradsEnsembleDimension
extends GradsDimension

Extension of GradsDimension to handle the complexities of ensembles

Author:
Don Murray, CU-CIRES

Field Summary
static String ENS_TEMPLATE_ID
          ensemble filename template
static String NAMES
          ensemble names identifier
 
Fields inherited from class ucar.nc2.iosp.grads.GradsDimension
LEVELS, LINEAR
 
Constructor Summary
GradsEnsembleDimension(String name, int size, String mapping)
          Create a new ensemble dimension holder
 
Method Summary
 List<String> getEnsembleNames()
          Get the ensemble member names
protected  double[] makeLevelValues()
          Make the level values from the specifications
 String replaceFileTemplate(String filespec, int ensIndex)
          Replace the ensemble template parameter in a filename
 
Methods inherited from class ucar.nc2.iosp.grads.GradsDimension
addLevel, getLevels, getName, getSize, getType, getUnit, getValues, setUnit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAMES

public static final String NAMES
ensemble names identifier

See Also:
Constant Field Values

ENS_TEMPLATE_ID

public static final String ENS_TEMPLATE_ID
ensemble filename template

See Also:
Constant Field Values
Constructor Detail

GradsEnsembleDimension

public GradsEnsembleDimension(String name,
                              int size,
                              String mapping)
Create a new ensemble dimension holder

Parameters:
name - the dimension name
size - the dimension size
mapping - the dimension mapping type
Method Detail

getEnsembleNames

public List<String> getEnsembleNames()
Get the ensemble member names

Returns:
the list of names

makeLevelValues

protected double[] makeLevelValues()
Make the level values from the specifications

Overrides:
makeLevelValues in class GradsDimension
Returns:
the level values

replaceFileTemplate

public String replaceFileTemplate(String filespec,
                                  int ensIndex)
Replace the ensemble template parameter in a filename

Parameters:
filespec - the file template
ensIndex - the ensemble index
Returns:
the filled in template


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.