public abstract class Evaluator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Evaluator.VarAtt |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
findNameOfVariableWithAttributeValue(NetcdfDataset ds,
java.lang.String attName,
java.lang.String attValue)
Find first variable with given attribute name and value
|
static java.lang.String |
findNameVariableWithStandardNameAndDimension(NetcdfDataset ds,
java.lang.String standard_name,
Dimension outer,
java.util.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,
java.lang.String attName)
Find first variable with given attribute name
|
static Variable |
findVariableWithAttributeAndDimension(NetcdfDataset ds,
java.lang.String att_name,
java.lang.String att_value,
Dimension outer,
java.util.Formatter errlog) |
static Variable |
findVariableWithAttributeValue(NetcdfDataset ds,
java.lang.String attName,
java.lang.String attValue)
Find first variable with given attribute name and value.
|
static Variable |
findVariableWithAttributeValue(Structure struct,
java.lang.String attName,
java.lang.String attValue)
Find first member variable in this struct with given attribute name and value
|
static Dimension |
getDimension(NetcdfDataset ds,
java.lang.String key,
java.util.Formatter errlog)
Find the dimension pointed to by key
|
static java.lang.String |
getDimensionName(NetcdfDataset ds,
java.lang.String key,
java.util.Formatter errlog)
Find the dimension pointed to by key
|
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 java.lang.String |
getVariableName(NetcdfDataset ds,
java.lang.String key,
java.util.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 java.lang.String findNameVariableWithStandardNameAndDimension(NetcdfDataset ds, java.lang.String standard_name, Dimension outer, java.util.Formatter errlog)
public static Variable findVariableWithAttributeAndDimension(NetcdfDataset ds, java.lang.String att_name, java.lang.String att_value, Dimension outer, java.util.Formatter errlog)
public static boolean isEffectivelyScaler(Variable v)
public static Evaluator.VarAtt findVariableWithAttribute(NetcdfDataset ds, java.lang.String attName)
ds
- in this datasetattName
- attribute name, case insensitivepublic static Variable findVariableWithAttributeValue(NetcdfDataset ds, java.lang.String attName, java.lang.String attValue)
ds
- in this datasetattName
- attribute name, case insensitiveattValue
- attribute value, case sensitivepublic static java.lang.String findNameOfVariableWithAttributeValue(NetcdfDataset ds, java.lang.String attName, java.lang.String attValue)
ds
- in this datasetattName
- attribute name, case insensitiveattValue
- attribute value, case sensitivepublic static Variable findVariableWithAttributeValue(Structure struct, java.lang.String attName, java.lang.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 java.lang.String getLiteral(NetcdfDataset ds, java.lang.String key, java.util.Formatter errlog)
ds
- look in this datasetkey
- if starts with ":", look for global attributeerrlog
- error messages herepublic static FeatureType getFeatureType(NetcdfDataset ds, java.lang.String key, java.util.Formatter errlog)
ds
- look in this datsetkey
- if starts with ":", replace with value of global attributeerrlog
- error messages herepublic static java.lang.String getVariableName(NetcdfDataset ds, java.lang.String key, java.util.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, java.lang.String key, java.util.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 java.lang.String getDimensionName(NetcdfDataset ds, java.lang.String key, java.util.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 here