public abstract 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 |
findNameVariableWithStandardNameAndDimension(NetcdfDataset ds,
String standard_name,
Dimension outer,
Formatter errlog) |
static Structure |
findNestedStructure(Structure s)
Find first nested structure
|
static Structure |
findStructureWithDimensions(NetcdfDataset ds,
Dimension dim0,
Dimension dim1)
Find structure variable of rank 2 with the 2 given dimensions
(or) Find structure variable of rank 1 with the 1 given dimension
|
static Evaluator.VarAtt |
findVariableWithAttribute(NetcdfDataset ds,
String attName)
Find first variable with given attribute name
|
static Variable |
findVariableWithAttributeAndDimension(NetcdfDataset ds,
String att_name,
String att_value,
Dimension outer,
Formatter errlog) |
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
|
static String |
getVariableName(NetcdfDataset ds,
String key,
Formatter errlog)
Find the variable pointed to by key
|
static boolean |
hasNetcdf3RecordStructure(NetcdfDataset ds)
Does this dataset have a record structure? netcdf-3 specific
|
static boolean |
isEffectivelyScaler(Variable v) |
public static String findNameVariableWithStandardNameAndDimension(NetcdfDataset ds, String standard_name, Dimension outer, Formatter errlog)
public static Variable findVariableWithAttributeAndDimension(NetcdfDataset ds, String att_name, String att_value, Dimension outer, Formatter errlog)
public static boolean isEffectivelyScaler(Variable v)
public static Evaluator.VarAtt findVariableWithAttribute(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 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 dimension (ok to be null)public static Structure findNestedStructure(Structure s)
s
- in this structurepublic static boolean hasNetcdf3RecordStructure(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 hereCopyright © 1999–2019 UCAR/Unidata. All rights reserved.