Package ucar.nc2.ft2.coverage
Class LatLonAxis2D
- java.lang.Object
-
- ucar.nc2.ft2.coverage.CoverageCoordAxis
-
- ucar.nc2.ft2.coverage.LatLonAxis2D
-
- All Implemented Interfaces:
Comparable<CoverageCoordAxis>
public class LatLonAxis2D extends CoverageCoordAxis
LatLon axes : used by lat(y,x) and lon(y,x) An instance represents just one of lat or lon. HorizCoordSys manages the two, usually you want to use that.- Since:
- 7/15/2015
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ucar.nc2.ft2.coverage.CoverageCoordAxis
CoverageCoordAxis.DependenceType, CoverageCoordAxis.Spacing
-
-
Field Summary
-
Fields inherited from class ucar.nc2.ft2.coverage.CoverageCoordAxis
attributes, axisType, dataType, dependenceType, dependsOn, description, endValue, isSubset, name, ncoords, reader, resolution, spacing, startValue, timeHelper, units, values
-
-
Constructor Summary
Constructors Constructor Description LatLonAxis2D(CoverageCoordAxisBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoverageCoordAxiscopy()doublegetCoord(int yindex, int xindex)ArraygetCoordBoundsAsArray()ArraygetCoordsAsArray()List<RangeIterator>getRanges()int[]getShape()ObjectgetUserObject()protected voidsetDataset(CoordSysContainer dataset)Optional<CoverageCoordAxis>subset(double minValue, double maxValue, int stride)LatLonAxis2Dsubset(RangeIterator rangex, RangeIterator rangey)Optional<CoverageCoordAxis>subset(SubsetParams params)Optional<CoverageCoordAxis>subsetDependent(CoverageCoordAxis1D from)voidtoString(Formatter f, Indent indent)-
Methods inherited from class ucar.nc2.ft2.coverage.CoverageCoordAxis
attributes, compareTo, convert, findAttribute, getAttributeContainer, getAttributes, getAxisType, getCalendar, getCalendarDateUnit, getDataType, getDateRange, getDependenceType, getDependsOn, getDependsOnList, getDescription, getEndValue, getHasData, getName, getNcoords, getOffsetInTimeUnits, getRange, getRangeIterator, getRefDate, getResolution, getSpacing, getStartValue, getSummary, getUnits, getValues, isInterval, isRegular, isScalar, isSubset, loadValuesIfNeeded, makeDate, makeDateInTimeUnits, toString
-
-
-
-
Constructor Detail
-
LatLonAxis2D
public LatLonAxis2D(CoverageCoordAxisBuilder builder)
-
-
Method Detail
-
setDataset
protected void setDataset(CoordSysContainer dataset)
- Overrides:
setDatasetin classCoverageCoordAxis
-
copy
public CoverageCoordAxis copy()
- Specified by:
copyin classCoverageCoordAxis
-
getShape
public int[] getShape()
- Overrides:
getShapein classCoverageCoordAxis
-
getUserObject
public Object getUserObject()
-
getRanges
public List<RangeIterator> getRanges()
-
toString
public void toString(Formatter f, Indent indent)
- Overrides:
toStringin classCoverageCoordAxis
-
getCoord
public double getCoord(int yindex, int xindex)
-
subset
public Optional<CoverageCoordAxis> subset(SubsetParams params)
- Specified by:
subsetin classCoverageCoordAxis
-
subset
public Optional<CoverageCoordAxis> subset(double minValue, double maxValue, int stride)
- Specified by:
subsetin classCoverageCoordAxis
-
subsetDependent
@Nonnull public Optional<CoverageCoordAxis> subsetDependent(CoverageCoordAxis1D from)
- Specified by:
subsetDependentin classCoverageCoordAxis
-
getCoordsAsArray
public Array getCoordsAsArray()
- Specified by:
getCoordsAsArrayin classCoverageCoordAxis
-
getCoordBoundsAsArray
public Array getCoordBoundsAsArray()
- Specified by:
getCoordBoundsAsArrayin classCoverageCoordAxis
-
subset
public LatLonAxis2D subset(RangeIterator rangex, RangeIterator rangey)
-
-