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 CoverageCoordAxis
copy()
double
getCoord(int yindex, int xindex)
Array
getCoordBoundsAsArray()
Array
getCoordsAsArray()
List<RangeIterator>
getRanges()
int[]
getShape()
Object
getUserObject()
protected void
setDataset(CoordSysContainer dataset)
Optional<CoverageCoordAxis>
subset(double minValue, double maxValue, int stride)
LatLonAxis2D
subset(RangeIterator rangex, RangeIterator rangey)
Optional<CoverageCoordAxis>
subset(SubsetParams params)
Optional<CoverageCoordAxis>
subsetDependent(CoverageCoordAxis1D from)
void
toString(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:
setDataset
in classCoverageCoordAxis
-
copy
public CoverageCoordAxis copy()
- Specified by:
copy
in classCoverageCoordAxis
-
getShape
public int[] getShape()
- Overrides:
getShape
in classCoverageCoordAxis
-
getUserObject
public Object getUserObject()
-
getRanges
public List<RangeIterator> getRanges()
-
toString
public void toString(Formatter f, Indent indent)
- Overrides:
toString
in classCoverageCoordAxis
-
getCoord
public double getCoord(int yindex, int xindex)
-
subset
public Optional<CoverageCoordAxis> subset(SubsetParams params)
- Specified by:
subset
in classCoverageCoordAxis
-
subset
public Optional<CoverageCoordAxis> subset(double minValue, double maxValue, int stride)
- Specified by:
subset
in classCoverageCoordAxis
-
subsetDependent
@Nonnull public Optional<CoverageCoordAxis> subsetDependent(CoverageCoordAxis1D from)
- Specified by:
subsetDependent
in classCoverageCoordAxis
-
getCoordsAsArray
public Array getCoordsAsArray()
- Specified by:
getCoordsAsArray
in classCoverageCoordAxis
-
getCoordBoundsAsArray
public Array getCoordBoundsAsArray()
- Specified by:
getCoordBoundsAsArray
in classCoverageCoordAxis
-
subset
public LatLonAxis2D subset(RangeIterator rangex, RangeIterator rangey)
-
-