Package ucar.nc2
Interface VariableSimpleIF
-
- All Superinterfaces:
Comparable<VariableSimpleIF>
- All Known Subinterfaces:
RadialDatasetSweep.RadialVariable
,VariableIF
- All Known Implementing Classes:
AbstractRadialAdapter.MyRadialVariableAdapter
,CoordinateAxis
,CoordinateAxis1D
,CoordinateAxis1DTime
,CoordinateAxis2D
,Coverage
,DODSGrid
,DODSStructure
,DODSVariable
,Sequence
,SequenceDS
,SimpleGeometryFeature
,Structure
,StructureDS
,StructurePseudo
,StructurePseudo2Dim
,StructurePseudoDS
,Variable
,VariableDS
,VariableSimpleAdapter
,VariableSimpleImpl
,VariableSimpleSubclass
public interface VariableSimpleIF extends Comparable<VariableSimpleIF>
A lightweight abstraction of a Variable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description AttributeContainer
attributes()
Attributes for the variable.Attribute
findAttributeIgnoreCase(String name)
Deprecated.Use attributes()List<Attribute>
getAttributes()
Deprecated.Use attributes()DataType
getDataType()
Variable's data typeString
getDescription()
description of the VariableList<Dimension>
getDimensions()
Dimension List.String
getFullName()
full, backslash escaped name of the data VariableString
getName()
Deprecated.use getFullName or getShortNameint
getRank()
Variable rankint[]
getShape()
Variable shapeString
getShortName()
short name of the data VariableString
getUnitsString()
Units of the Variable.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getName
@Deprecated String getName()
Deprecated.use getFullName or getShortNameName 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().- Returns:
- name of the data Variable
-
getFullName
String getFullName()
full, backslash escaped name of the data Variable- Returns:
- full, backslash escaped name of the data Variable
-
getShortName
String getShortName()
short name of the data Variable- Returns:
- short name of the data Variable
-
getDescription
String getDescription()
description of the Variable- Returns:
- description of the Variable, or null if none.
-
getUnitsString
String getUnitsString()
Units of the Variable. These should be udunits compatible if possible- Returns:
- Units of the Variable, or null if none.
-
getRank
int getRank()
Variable rank- Returns:
- Variable rank
-
getShape
int[] getShape()
Variable shape- Returns:
- Variable shape
-
getDimensions
List<Dimension> getDimensions()
Dimension List. empty for a scalar variable.- Returns:
- List of ucar.nc2.Dimension, ImmutableList in ver6
-
getDataType
DataType getDataType()
Variable's data type- Returns:
- Variable's data type
-
attributes
AttributeContainer attributes()
Attributes for the variable.
-
getAttributes
@Deprecated List<Attribute> getAttributes()
Deprecated.Use attributes()Attributes for the variable.- Returns:
- List of type ucar.nc2.Attribute
-
findAttributeIgnoreCase
@Deprecated Attribute findAttributeIgnoreCase(String name)
Deprecated.Use attributes()find the attribute for the variable with the given name, ignoring case.- Parameters:
name
- attribute name- Returns:
- the attribute for the variable with the given name, or null if not found.
-
-