Package ucar.nc2.ft2.coverage
Class CoordsSet
- java.lang.Object
-
- ucar.nc2.ft2.coverage.CoordsSet
-
- All Implemented Interfaces:
Iterable<SubsetParams>
@Immutable public class CoordsSet extends Object implements Iterable<SubsetParams>
An iterator over the coordinates in a set of CoverageCoordAxis. The independent axes are used to iterate. Attached dependent axes are used to generate values also. Two cases handled so far: 1) ConstantForecast: runtime (ind), timeOffset (dep), time (scalar) 1) Best: time (ind), runtime (dep) Grib: If theres a time offset, then there must be a runtime coordinate, and the time offset is reletive to that. LOOK only used by Grib
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CoordsSetfactory(boolean constantForecast, List<CoverageCoordAxis> axes)intgetRank()int[]getShape()int[]getShape(RangeIterator y, RangeIterator x)Iterator<SubsetParams>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
factory
public static CoordsSet factory(boolean constantForecast, List<CoverageCoordAxis> axes)
-
getShape
public int[] getShape()
-
getShape
public int[] getShape(RangeIterator y, RangeIterator x)
-
getRank
public int getRank()
-
iterator
public Iterator<SubsetParams> iterator()
- Specified by:
iteratorin interfaceIterable<SubsetParams>
-
-