public class CoverageImpl extends Object implements Coverage
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VariableSimpleIF o) |
Attribute |
findAttributeIgnoreCase(String name)
find the attribute for the variable with the given name, ignoring case.
|
String |
findAttValueIgnoreCase(String attName,
String defaultValue)
Convenience function; lookup Attribute value by name.
|
List<Attribute> |
getAttributes()
Attributes for the variable.
|
CoverageCS |
getCoordinateSystem()
get the Coverage's Coordinate System.
|
DataType |
getDataType()
Variable's data type
|
String |
getDescription()
description of the Variable
|
List<Dimension> |
getDimensions()
Returns a List of Dimension containing the dimensions used by this Coverage.
|
String |
getFullName()
full, backslash escaped name of the data Variable
|
String |
getInfo()
human readable information about this Coverage.
|
String |
getName()
Name of the data Variable.
|
int |
getRank()
Variable rank
|
int[] |
getShape()
Variable shape
|
String |
getShortName()
short name of the data Variable
|
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).
|
String |
toString() |
public String getName()
VariableSimpleIF
getName
in interface NamedObject
getName
in interface VariableSimpleIF
public String getFullName()
VariableSimpleIF
getFullName
in interface VariableSimpleIF
public String getShortName()
VariableSimpleIF
getShortName
in interface VariableSimpleIF
public String getDescription()
VariableSimpleIF
getDescription
in interface NamedObject
getDescription
in interface VariableSimpleIF
public 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 List<Attribute> getAttributes()
VariableSimpleIF
getAttributes
in interface VariableSimpleIF
public Attribute findAttributeIgnoreCase(String name)
VariableSimpleIF
findAttributeIgnoreCase
in interface VariableSimpleIF
name
- attribute namepublic String findAttValueIgnoreCase(String attName, String defaultValue)
Coverage
findAttValueIgnoreCase
in interface Coverage
attName
- name of the attributedefaultValue
- if not found, use this as the defaultpublic 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 String getInfo()
Coverage
public int compareTo(VariableSimpleIF o)
compareTo
in interface Comparable<VariableSimpleIF>
public Array readData(CoverageCS.Subset subset) throws IOException, InvalidRangeException
Coverage
readData
in interface Coverage
subset
- subset that you want. Must be created through this.getCoordinateSystem().makeSubset()IOException
- on io errorInvalidRangeException
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.