|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectNetcdfIdentifiedObject
NetcdfAxis
public class NetcdfAxis
Wraps a NetCDF CoordinateAxis1D as an implementation of GeoAPI interfaces.
NetcdfAxis is a view: every methods in this class delegate their work to the
wrapped NetCDF axis. Consequently any change in the wrapped axis is immediately reflected in this
NetcdfAxis instance. However users are encouraged to not change the wrapped axis after
construction, since GeoAPI referencing objects are expected to be immutable.
| coverage/geotk-coverageio-netcdf (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Fields inherited from interface ReferenceIdentifier |
|---|
CODESPACE_KEY, VERSION_KEY |
| Fields inherited from interface Identifier |
|---|
AUTHORITY_KEY, CODE_KEY |
| Constructor Summary | |
|---|---|
NetcdfAxis(CoordinateAxis1D axis)
Creates a new NetcdfAxis object wrapping the given NetCDF coordinate axis. |
|
| Method Summary | |
|---|---|
CoordinateAxis1D |
delegate()
Returns the wrapped NetCDF axis. |
String |
getAbbreviation()
Returns the axis abbreviation. |
String |
getCode()
Returns the axis name. |
AxisDirection |
getDirection()
Returns the axis direction. |
static AxisDirection |
getDirection(CoordinateAxis axis)
Returns the direction of the given axis. |
double |
getMaximumValue()
Returns the axis maximal value. |
double |
getMinimumValue()
Returns the axis minimal value. |
Comparable<?> |
getOrdinateAt(int index)
Returns the ordinate value at the given index. |
Range<?> |
getOrdinateRangeAt(int index)
Returns the range of ordinate values at the given index. |
RangeMeaning |
getRangeMeaning()
Returns null since the range meaning is unspecified. |
InternationalString |
getRemarks()
Returns the NetCDF description, or null if none. |
Unit<?> |
getUnit()
Returns the units, or null if unknown. |
int |
length()
Returns the number of ordinates in the NetCDF axis. |
| Methods inherited from class NetcdfIdentifiedObject |
|---|
equals, getAlias, getAuthority, getCodeSpace, getIdentifiers, getName, getVersion, hashCode, toString, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, toWKT |
| Constructor Detail |
|---|
public NetcdfAxis(CoordinateAxis1D axis)
NetcdfAxis object wrapping the given NetCDF coordinate axis.
axis - The NetCDF coordinate axis to wrap.| Method Detail |
|---|
public CoordinateAxis1D delegate()
delegate in class NetcdfIdentifiedObjectpublic String getCode()
Variable.getShortName().
getCode in interface IdentifiergetCode in class NetcdfIdentifiedObjectVariable.getShortName()public String getAbbreviation()
Variable.getShortName().
getAbbreviation in interface CoordinateSystemAxisVariable.getShortName()public AxisDirection getDirection()
getDirection(CoordinateAxis).
getDirection in interface CoordinateSystemAxisCoordinateAxis.getAxisType(),
CoordinateAxis.getPositive()public static AxisDirection getDirection(CoordinateAxis axis)
CoordinateAxis.getAxisType() and CoordinateAxis.getPositive().
If the direction can not be determined, then this method returns
AxisDirection.OTHER.
axis - The axis for which to get the direction.
public double getMinimumValue()
CoordinateAxis1D.getMinValue().
getMinimumValue in interface CoordinateSystemAxisCoordinateAxis1D.getMinValue()public double getMaximumValue()
CoordinateAxis1D.getMaxValue().
getMaximumValue in interface CoordinateSystemAxisCoordinateAxis1D.getMaxValue()
public Comparable<?> getOrdinateAt(int index)
throws IndexOutOfBoundsException
CoordinateAxis1DTime.getTimeDate(int) if the wrapped
axis is an instance of CoordinateAxis1DTime.CoordinateAxis1D.getCoordValue(int) if the axis
is numeric.CoordinateAxis1D.getCoordName(int) otherwise.
getOrdinateAt in interface DiscreteCoordinateSystemAxisindex - The index at which to return the ordinate value.
Number,
Date or String.
IndexOutOfBoundsException - If the given index is outside the
[0 … length-1] range.
public Range<?> getOrdinateRangeAt(int index)
throws IndexOutOfBoundsException,
UnsupportedOperationException
getOrdinateRangeAt in interface DiscreteCoordinateSystemAxisindex - The index at which to return the range of ordinate values.
IndexOutOfBoundsException - If the given index is outside the
[0 … length-1] range.
UnsupportedOperationException - if the axis is not numeric.public int length()
Variable.getShape(int) method.
length in interface DiscreteCoordinateSystemAxispublic RangeMeaning getRangeMeaning()
null since the range meaning is unspecified.
getRangeMeaning in interface CoordinateSystemAxispublic Unit<?> getUnit()
null if unknown.
getUnit in interface CoordinateSystemAxisCoordinateAxis.getUnitsString(),
Units.valueOf(String)public InternationalString getRemarks()
null if none.
The default implementation delegates to VariableDS.getDescription().
getRemarks in interface IdentifiedObjectgetRemarks in class NetcdfIdentifiedObjectVariableDS.getDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||