Package ucar.nc2.ft2.coverage
Class Coverage
- java.lang.Object
-
- ucar.nc2.ft2.coverage.Coverage
-
- All Implemented Interfaces:
Comparable<VariableSimpleIF>,IsMissingEvaluator,VariableSimpleIF
public class Coverage extends Object implements VariableSimpleIF, IsMissingEvaluator
Coverage - aka Grid or GeoGrid. Immutable after setCoordSys() is called.- Since:
- 7/11/2015
-
-
Field Summary
Fields Modifier and Type Field Description protected CoverageReaderreaderprotected Objectuser
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeContainerattributes()Attributes for the variable.intcompareTo(VariableSimpleIF o)AttributefindAttributeIgnoreCase(String name)find the attribute for the variable with the given name, ignoring case.List<Attribute>getAttributes()Attributes for the variable.CoverageCoordSysgetCoordSys()StringgetCoordSysName()DataTypegetDataType()Variable's data typeStringgetDescription()description of the VariableList<Dimension>getDimensions()Dimension List.StringgetFullName()full, backslash escaped name of the data VariableStringgetIndependentAxisNamesOrdered()StringgetName()Name of the data Variable.intgetRank()Variable rankint[]getShape()Variable shapeStringgetShortName()short name of the data VariablelonggetSizeInBytes()StringgetUnitsString()Units of the Variable.ObjectgetUserObject()booleanhasMissing()true if there may be missing databooleanisMissing(double val)if val is a missing data valueGeoReferencedArrayreadData(SubsetParams subset)StringtoString()voidtoString(Formatter f, Indent indent)
-
-
-
Field Detail
-
reader
protected final CoverageReader reader
-
user
protected final Object user
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:VariableSimpleIFName of the data Variable. Not that this is technically ambiguous v-a-v short or full name; however, since this is a Variable interface, one must assume that it is intended to be getFullName().- Specified by:
getNamein interfaceVariableSimpleIF- Returns:
- name of the data Variable
-
getDataType
public DataType getDataType()
Description copied from interface:VariableSimpleIFVariable's data type- Specified by:
getDataTypein interfaceVariableSimpleIF- Returns:
- Variable's data type
-
attributes
public AttributeContainer attributes()
Description copied from interface:VariableSimpleIFAttributes for the variable.- Specified by:
attributesin interfaceVariableSimpleIF
-
getAttributes
public List<Attribute> getAttributes()
Description copied from interface:VariableSimpleIFAttributes for the variable.- Specified by:
getAttributesin interfaceVariableSimpleIF- Returns:
- List of type ucar.nc2.Attribute
-
findAttributeIgnoreCase
public Attribute findAttributeIgnoreCase(String name)
Description copied from interface:VariableSimpleIFfind the attribute for the variable with the given name, ignoring case.- Specified by:
findAttributeIgnoreCasein interfaceVariableSimpleIF- Parameters:
name- attribute name- Returns:
- the attribute for the variable with the given name, or null if not found.
-
getUnitsString
public String getUnitsString()
Description copied from interface:VariableSimpleIFUnits of the Variable. These should be udunits compatible if possible- Specified by:
getUnitsStringin interfaceVariableSimpleIF- Returns:
- Units of the Variable, or null if none.
-
getDescription
public String getDescription()
Description copied from interface:VariableSimpleIFdescription of the Variable- Specified by:
getDescriptionin interfaceVariableSimpleIF- Returns:
- description of the Variable, or null if none.
-
getCoordSysName
public String getCoordSysName()
-
getUserObject
public Object getUserObject()
-
getCoordSys
@Nonnull public CoverageCoordSys getCoordSys()
-
getSizeInBytes
public long getSizeInBytes()
-
getIndependentAxisNamesOrdered
public String getIndependentAxisNamesOrdered()
-
hasMissing
public boolean hasMissing()
Description copied from interface:IsMissingEvaluatortrue if there may be missing data- Specified by:
hasMissingin interfaceIsMissingEvaluator- Returns:
- true if there may be missing data
-
isMissing
public boolean isMissing(double val)
Description copied from interface:IsMissingEvaluatorif val is a missing data value- Specified by:
isMissingin interfaceIsMissingEvaluator- Parameters:
val- test this value- Returns:
- true if val is missing data
-
readData
public GeoReferencedArray readData(SubsetParams subset) throws IOException, InvalidRangeException
- Throws:
IOExceptionInvalidRangeException
-
getFullName
public String getFullName()
Description copied from interface:VariableSimpleIFfull, backslash escaped name of the data Variable- Specified by:
getFullNamein interfaceVariableSimpleIF- Returns:
- full, backslash escaped name of the data Variable
-
getShortName
public String getShortName()
Description copied from interface:VariableSimpleIFshort name of the data Variable- Specified by:
getShortNamein interfaceVariableSimpleIF- Returns:
- short name of the data Variable
-
getRank
public int getRank()
Description copied from interface:VariableSimpleIFVariable rank- Specified by:
getRankin interfaceVariableSimpleIF- Returns:
- Variable rank
-
getShape
public int[] getShape()
Description copied from interface:VariableSimpleIFVariable shape- Specified by:
getShapein interfaceVariableSimpleIF- Returns:
- Variable shape
-
getDimensions
public List<Dimension> getDimensions()
Description copied from interface:VariableSimpleIFDimension List. empty for a scalar variable.- Specified by:
getDimensionsin interfaceVariableSimpleIF- Returns:
- List of ucar.nc2.Dimension, ImmutableList in ver6
-
compareTo
public int compareTo(@Nonnull VariableSimpleIF o)- Specified by:
compareToin interfaceComparable<VariableSimpleIF>
-
-