ucar.nc2.ft.point.standard
Class Evaluator
java.lang.Object
ucar.nc2.ft.point.standard.Evaluator
public class Evaluator
- extends Object
Helper routines for Nested Tables
- Since:
- Apr 23, 2008
- Author:
- caron
Method Summary |
static Dimension |
getDimension(NetcdfDataset ds,
String key,
Formatter errlog)
|
static String |
getDimensionName(NetcdfDataset ds,
String key,
Formatter errlog)
|
static FeatureType |
getFeatureType(NetcdfDataset ds,
String key,
Formatter errlog)
Turn the key into a String and return the corresponding featureType, if any. |
static String |
getLiteral(NetcdfDataset ds,
String key,
Formatter errlog)
Translate key to value |
static String |
getNameOfVariableWithAttribute(NetcdfDataset ds,
String attName,
String attValue)
|
static String |
getNameOfVariableWithAttribute(Structure struct,
String attName,
String attValue)
|
static Structure |
getNestedStructure(Structure s)
|
static Structure |
getStructureWithDimensions(NetcdfDataset ds,
Dimension dim0,
Dimension dim1)
|
String |
getValue()
|
static String |
getVariableAttributeValue(NetcdfDataset ds,
String attName)
|
static String |
getVariableName(NetcdfDataset ds,
String key,
Formatter errlog)
|
static Variable |
getVariableWithAttribute(NetcdfDataset ds,
String attName)
|
static Variable |
getVariableWithAttribute(Structure struct,
String attName,
String attValue)
|
static Variable |
getVariableWithAttributeValue(NetcdfDataset ds,
String attName,
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 |
getFeatureType
public static FeatureType getFeatureType(NetcdfDataset ds,
String key,
Formatter errlog)
- Turn the key into a String and return the corresponding featureType, if any.
- Parameters:
ds
- look in this datsetkey
- if starts with ":", replace with value of global attributeerrlog
- error messages here
- Returns:
- featureType, or null
getLiteral
public static String getLiteral(NetcdfDataset ds,
String key,
Formatter errlog)
- Translate key to value
- Parameters:
ds
- look in this datsetkey
- if starts with ":", look for global attributeerrlog
- error messages here
- Returns:
- return global attribute value or the key itself
getVariableName
public static String getVariableName(NetcdfDataset ds,
String key,
Formatter errlog)
getVariableWithAttribute
public static Variable getVariableWithAttribute(NetcdfDataset ds,
String attName)
getVariableWithAttributeValue
public static Variable getVariableWithAttributeValue(NetcdfDataset ds,
String attName,
String attValue)
getVariableAttributeValue
public static String getVariableAttributeValue(NetcdfDataset ds,
String attName)
getNameOfVariableWithAttribute
public static String getNameOfVariableWithAttribute(NetcdfDataset ds,
String attName,
String attValue)
getNameOfVariableWithAttribute
public static String getNameOfVariableWithAttribute(Structure struct,
String attName,
String attValue)
getVariableWithAttribute
public static Variable getVariableWithAttribute(Structure struct,
String attName,
String attValue)
getDimensionName
public static String getDimensionName(NetcdfDataset ds,
String key,
Formatter errlog)
getDimension
public static Dimension getDimension(NetcdfDataset ds,
String key,
Formatter errlog)
getStructureWithDimensions
public static Structure getStructureWithDimensions(NetcdfDataset ds,
Dimension dim0,
Dimension dim1)
getNestedStructure
public static Structure getNestedStructure(Structure s)
hasRecordStructure
public static boolean hasRecordStructure(NetcdfDataset ds)
getValue
public String getValue()
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.