Package ucar.nc2.constants
Enum AxisType
- java.lang.Object
-
- java.lang.Enum<AxisType>
-
- ucar.nc2.constants.AxisType
-
- All Implemented Interfaces:
Serializable
,Comparable<AxisType>
public enum AxisType extends Enum<AxisType>
Enumeration of Coordinate Axis types. These are used for tagging georeferencing axes. Do not change the ordering of these enums, as they are used in protobuf messages, only add new ones onto the end. TODO: remove dependency on ordering.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Dimension
Ensemble
GeoX
GeoY
GeoZ
Height
Lat
Lon
Pressure
RadialAzimuth
RadialDistance
RadialElevation
RunTime
SimpleGeometryID
SimpleGeometryX
SimpleGeometryY
SimpleGeometryZ
Spectral
Time
TimeOffset
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
axisOrder()
axis ordering: runTime - ensemble - time - z - y - x or elev - azimuth - distanceString
getCFAxisName()
static AxisType
getType(String name)
Find the AxisType that matches this name.boolean
isHoriz()
boolean
isTime()
boolean
isVert()
static AxisType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AxisType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RunTime
public static final AxisType RunTime
-
Ensemble
public static final AxisType Ensemble
-
Time
public static final AxisType Time
-
GeoX
public static final AxisType GeoX
-
GeoY
public static final AxisType GeoY
-
GeoZ
public static final AxisType GeoZ
-
Lat
public static final AxisType Lat
-
Lon
public static final AxisType Lon
-
Height
public static final AxisType Height
-
Pressure
public static final AxisType Pressure
-
RadialAzimuth
public static final AxisType RadialAzimuth
-
RadialDistance
public static final AxisType RadialDistance
-
RadialElevation
public static final AxisType RadialElevation
-
Spectral
public static final AxisType Spectral
-
TimeOffset
public static final AxisType TimeOffset
-
Dimension
public static final AxisType Dimension
-
SimpleGeometryX
public static final AxisType SimpleGeometryX
-
SimpleGeometryY
public static final AxisType SimpleGeometryY
-
SimpleGeometryZ
public static final AxisType SimpleGeometryZ
-
SimpleGeometryID
public static final AxisType SimpleGeometryID
-
-
Method Detail
-
values
public static AxisType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AxisType c : AxisType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AxisType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getType
public static AxisType getType(String name)
Find the AxisType that matches this name.- Parameters:
name
- match this name- Returns:
- AxisType or null if no match.
-
axisOrder
public int axisOrder()
axis ordering: runTime - ensemble - time - z - y - x or elev - azimuth - distance- Returns:
- order
-
getCFAxisName
public String getCFAxisName()
-
isHoriz
public boolean isHoriz()
-
isTime
public boolean isTime()
-
isVert
public boolean isVert()
-
-