ucar.nc2.ft.point.standard
Class Evaluator

java.lang.Object
  extended by ucar.nc2.ft.point.standard.Evaluator

public class Evaluator
extends java.lang.Object

Helper routines for Nested Tables

Since:
Apr 23, 2008
Author:
caron

Method Summary
static Dimension getDimension(NetcdfDataset ds, java.lang.String key, java.util.Formatter errlog)
           
static FeatureType getFeatureType(NetcdfDataset ds, java.lang.String key, java.util.Formatter errlog)
          Turn the key into a String and return the corresponding featureType, if any.
static java.lang.String getLiteral(NetcdfDataset ds, java.lang.String key, java.util.Formatter errlog)
          Translate key to value
static Structure getStructureWithDimensions(NetcdfDataset ds, Dimension dim0, Dimension dim1)
           
 java.lang.String getValue()
           
static java.lang.String getVariableName(NetcdfDataset ds, java.lang.String key, java.util.Formatter errlog)
           
static java.lang.String getVariableWithAttribute(NetcdfDataset ds, java.lang.String attName, java.lang.String attValue)
           
static java.lang.String getVariableWithAttribute(Structure struct, java.lang.String attName, java.lang.String attValue)
           
static boolean hasRecordStructure(NetcdfDataset ds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFeatureType

public static FeatureType getFeatureType(NetcdfDataset ds,
                                         java.lang.String key,
                                         java.util.Formatter errlog)
Turn the key into a String and return the corresponding featureType, if any.

Parameters:
ds - look in this datset
key - if starts with ":", replace with value of global attribute
errlog - error messages here
Returns:
featureType, or null

getLiteral

public static java.lang.String getLiteral(NetcdfDataset ds,
                                          java.lang.String key,
                                          java.util.Formatter errlog)
Translate key to value

Parameters:
ds - look in this datset
key - if starts with ":", look for global attribute
errlog - error messages here
Returns:
return global attribute value or the key itself

getVariableName

public static java.lang.String getVariableName(NetcdfDataset ds,
                                               java.lang.String key,
                                               java.util.Formatter errlog)

getVariableWithAttribute

public static java.lang.String getVariableWithAttribute(NetcdfDataset ds,
                                                        java.lang.String attName,
                                                        java.lang.String attValue)

getVariableWithAttribute

public static java.lang.String getVariableWithAttribute(Structure struct,
                                                        java.lang.String attName,
                                                        java.lang.String attValue)

getDimension

public static Dimension getDimension(NetcdfDataset ds,
                                     java.lang.String key,
                                     java.util.Formatter errlog)

getStructureWithDimensions

public static Structure getStructureWithDimensions(NetcdfDataset ds,
                                                   Dimension dim0,
                                                   Dimension dim1)

hasRecordStructure

public static boolean hasRecordStructure(NetcdfDataset ds)

getValue

public java.lang.String getValue()