Package ucar.unidata.data
Class VarInfo
java.lang.Object
ucar.unidata.data.VarInfo
Class Variable Holds info about track variables
- Version:
- $Revision: 1.4 $
- Author:
- IDV Development Team
-
Constructor Summary
ConstructorsConstructorDescriptionctorctorctorctorctorctor -
Method Summary
Modifier and TypeMethodDescriptionGet the Category property.get descboolean
Get the IsNumeric property.double
Get the MissingValue property.getName()
get the nameGet the RealType property.get the namegetUnit()
Get the Unit property.static VarInfo
getVarInfo
(String variableName, List<VarInfo> variables) Utility to find the variable with the given namevoid
setCategory
(String value) Set the Category property.void
setIsNumeric
(boolean value) Set the IsNumeric property.void
setMissingValue
(double value) Set the MissingValue property.void
setRealType
(RealType value) Set the RealType property.void
Set the Unit property.toString()
to string
-
Constructor Details
-
VarInfo
ctor- Parameters:
name
- namedesc
- descunit
- unit
-
VarInfo
ctor- Parameters:
name
- namedesc
- desccategory
- the category of the varunit
- unit
-
VarInfo
ctor- Parameters:
name
- namedesc
- desccategory
- the category of the varunit
- unitmissingValue
- missing value
-
VarInfo
ctor- Parameters:
name
- nameunit
- unit
-
VarInfo
ctor- Parameters:
name
- nameunits
- unit string
-
VarInfo
ctor- Parameters:
name
- namedesc
- descriptionunits
- unit string
-
-
Method Details
-
getVarInfo
Utility to find the variable with the given name- Parameters:
variableName
- The namevariables
- List of variables to look into- Returns:
- The variable.
-
getName
get the name- Returns:
- name
-
getShortName
get the name- Returns:
- name
-
getDescription
get desc- Returns:
- desc
-
setCategory
Set the Category property.- Parameters:
value
- The new value for Category
-
getCategory
Get the Category property.- Returns:
- The Category
-
toString
to string -
setIsNumeric
public void setIsNumeric(boolean value) Set the IsNumeric property.- Parameters:
value
- The new value for IsNumeric
-
getIsNumeric
public boolean getIsNumeric()Get the IsNumeric property.- Returns:
- The IsNumeric
-
setRealType
Set the RealType property.- Parameters:
value
- The new value for RealType
-
getRealType
Get the RealType property.- Returns:
- The RealType
-
setUnit
Set the Unit property.- Parameters:
value
- The new value for Unit
-
getUnit
Get the Unit property.- Returns:
- The Unit
-
setMissingValue
public void setMissingValue(double value) Set the MissingValue property.- Parameters:
value
- The new value for MissingValue
-
getMissingValue
public double getMissingValue()Get the MissingValue property.- Returns:
- The MissingValue
-