public class CoverageImpl extends java.lang.Object implements Coverage
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VariableSimpleIF o) |
Attribute |
findAttributeIgnoreCase(java.lang.String name)
find the attribute for the variable with the given name, ignoring case.
|
java.lang.String |
findAttValueIgnoreCase(java.lang.String attName,
java.lang.String defaultValue)
Convenience function; lookup Attribute value by name.
|
java.util.List<Attribute> |
getAttributes()
Attributes for the variable.
|
CoverageCS |
getCoordinateSystem()
get the Coverage's Coordinate System.
|
DataType |
getDataType()
Variable's data type
|
java.lang.String |
getDescription()
description of the Variable
|
java.util.List<Dimension> |
getDimensions()
Returns a List of Dimension containing the dimensions used by this Coverage.
|
java.lang.String |
getFullName()
full, backslash escaped name of the data Variable
|
java.lang.String |
getInfo()
human readable information about this Coverage.
|
java.lang.String |
getName()
Name of the data Variable.
|
int |
getRank()
Variable rank
|
int[] |
getShape()
Variable shape
|
java.lang.String |
getShortName()
short name of the data Variable
|
java.lang.String |
getUnitsString()
Units of the Variable.
|
boolean |
hasMissing()
true if there may be missing data
|
boolean |
isMissing(double val)
if val is missing data
|
Array |
readData(CoverageCS.Subset subset)
This reads an arbitrary data slice, returning the data in
canonical order (rt-e-t-z-y-x).
|
java.lang.String |
toString() |
public java.lang.String getName()
VariableSimpleIF
getName
in interface NamedObject
getName
in interface VariableSimpleIF
public java.lang.String getFullName()
VariableSimpleIF
getFullName
in interface VariableSimpleIF
public java.lang.String getShortName()
VariableSimpleIF
getShortName
in interface VariableSimpleIF
public java.lang.String getDescription()
VariableSimpleIF
getDescription
in interface NamedObject
getDescription
in interface VariableSimpleIF
public java.lang.String getUnitsString()
VariableSimpleIF
getUnitsString
in interface VariableSimpleIF
public int getRank()
VariableSimpleIF
getRank
in interface VariableSimpleIF
public int[] getShape()
VariableSimpleIF
getShape
in interface VariableSimpleIF
public DataType getDataType()
VariableSimpleIF
getDataType
in interface VariableSimpleIF
public java.util.List<Attribute> getAttributes()
VariableSimpleIF
getAttributes
in interface VariableSimpleIF
public Attribute findAttributeIgnoreCase(java.lang.String name)
VariableSimpleIF
findAttributeIgnoreCase
in interface VariableSimpleIF
name
- attribute namepublic java.lang.String findAttValueIgnoreCase(java.lang.String attName, java.lang.String defaultValue)
Coverage
findAttValueIgnoreCase
in interface Coverage
attName
- name of the attributedefaultValue
- if not found, use this as the defaultpublic java.util.List<Dimension> getDimensions()
Coverage
getDimensions
in interface Coverage
getDimensions
in interface VariableSimpleIF
public CoverageCS getCoordinateSystem()
Coverage
getCoordinateSystem
in interface Coverage
public boolean hasMissing()
Coverage
hasMissing
in interface IsMissingEvaluator
hasMissing
in interface Coverage
public boolean isMissing(double val)
Coverage
isMissing
in interface IsMissingEvaluator
isMissing
in interface Coverage
val
- test this valuepublic java.lang.String getInfo()
Coverage
public int compareTo(VariableSimpleIF o)
compareTo
in interface java.lang.Comparable<VariableSimpleIF>
public java.lang.String toString()
toString
in class java.lang.Object
public Array readData(CoverageCS.Subset subset) throws java.io.IOException, InvalidRangeException
Coverage
readData
in interface Coverage
subset
- subset that you want. Must be created through this.getCoordinateSystem().makeSubset()java.io.IOException
- on io errorInvalidRangeException