public class Evaluator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Evaluator.VarAtt |
Modifier and Type | Method and Description |
---|---|
static String |
findNameOfVariableWithAttributeValue(NetcdfDataset ds,
String attName,
String attValue)
Find first variable with given attribute name and value
|
static String |
findNameOfVariableWithAttributeValue(Structure struct,
String attName,
String attValue)
Find first member variable in this struct with given attribute name and value
|
static Structure |
findNestedStructure(Structure s)
Find first nested structure
|
static Structure |
findStructureWithDimensions(NetcdfDataset ds,
Dimension dim0,
Dimension dim1)
Find structure variable of rank 2 withe the nameed dimensions
|
static String |
findVariableAttributeValue(NetcdfDataset ds,
String attName)
Find first variable with given attribute name, return attribute value
|
static Evaluator.VarAtt |
findVariableWithAttribute(NetcdfDataset ds,
String attName)
Find first variable with given attribute name
|
static Variable |
findVariableWithAttributeValue(NetcdfDataset ds,
String attName,
String attValue)
Find first variable with given attribute name and value.
|
static Variable |
findVariableWithAttributeValue(Structure struct,
String attName,
String attValue)
Find first member variable in this struct with given attribute name and value
|
static Dimension |
getDimension(NetcdfDataset ds,
String key,
Formatter errlog)
Find the dimension pointed to by key
|
static String |
getDimensionName(NetcdfDataset ds,
String key,
Formatter errlog)
Find the dimension pointed to by key
|
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
|
String |
getValue() |
static String |
getVariableName(NetcdfDataset ds,
String key,
Formatter errlog)
Find the variable pointed to by key
|
static boolean |
hasRecordStructure(NetcdfDataset ds)
Does this dataset have a record structure? netcdf-3 specific
|
public static Evaluator.VarAtt findVariableWithAttribute(NetcdfDataset ds, String attName)
ds
- in this datasetattName
- attribute name, case insensitivepublic static String findVariableAttributeValue(NetcdfDataset ds, String attName)
ds
- in this datasetattName
- attribute name, case insensitivepublic static Variable findVariableWithAttributeValue(NetcdfDataset ds, String attName, String attValue)
ds
- in this datasetattName
- attribute name, case insensitiveattValue
- attribute value, case sensitivepublic static String findNameOfVariableWithAttributeValue(NetcdfDataset ds, String attName, String attValue)
ds
- in this datasetattName
- attribute name, case insensitiveattValue
- attribute value, case sensitivepublic static String findNameOfVariableWithAttributeValue(Structure struct, String attName, String attValue)
struct
- in this structureattName
- attribute name, case insensitiveattValue
- attribute value, case sensitivepublic static Variable findVariableWithAttributeValue(Structure struct, String attName, String attValue)
struct
- in this structureattName
- attribute name, case insensitiveattValue
- attribute value, case sensitivepublic static Structure findStructureWithDimensions(NetcdfDataset ds, Dimension dim0, Dimension dim1)
ds
- in this datasetdim0
- first dimensiondim1
- second dimensionpublic static Structure findNestedStructure(Structure s)
s
- in this structurepublic static boolean hasRecordStructure(NetcdfDataset ds)
ds
- in this datasetpublic static String getLiteral(NetcdfDataset ds, String key, Formatter errlog)
ds
- look in this datasetkey
- if starts with ":", look for global attributeerrlog
- error messages herepublic static FeatureType getFeatureType(NetcdfDataset ds, String key, Formatter errlog)
ds
- look in this datsetkey
- if starts with ":", replace with value of global attributeerrlog
- error messages herepublic static String getVariableName(NetcdfDataset ds, String key, Formatter errlog)
ds
- in this datasetkey
- may be variable name or ":gatt" where gatt is local attribute whose value is the variable nameerrlog
- error messages herepublic static Dimension getDimension(NetcdfDataset ds, String key, Formatter errlog)
ds
- in this datasetkey
- may be dimension name or ":gatt" where gatt is local attribute whose value is the dimension nameerrlog
- error messages herepublic static String getDimensionName(NetcdfDataset ds, String key, Formatter errlog)
ds
- in this datasetkey
- may be dimension name or ":gatt" where gatt is local attribute whose value is the dimension nameerrlog
- error messages herepublic String getValue()
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.