StationPointFeatureCopy(StationFeature station, PointFeature pf) { super(pf.getFeatureCollection(), station, pf.getObservationTime(), pf.getNominalTime(), pf.getFeatureCollection().getTimeUnit()); this.station = station; }
private PointFeature nextFilteredDataPoint() throws IOException { if (pfiter == null) return null; if (!pfiter.hasNext()) return null; PointFeature pdata = pfiter.next(); if (filter == null) return pdata; while (!filter.filter(pdata)) { if (!pfiter.hasNext()) return null; pdata = pfiter.next(); } return pdata; }
public int compareTo(PointFeature other) { if (obsTime < other.getObservationTime()) return -1; if (obsTime > other.getObservationTime()) return 1; return 0; }
static int countObs(PointFeatureCollection pfc) throws IOException { int count = 0; pfc.resetIteration(); while (pfc.hasNext()) { PointFeature pf = pfc.next(); StructureData sd = pf.getDataAll(); count++; } return count; }
StandardTrajectoryCollectionSubset(TrajectoryFeatureCollection from, LatLonRect boundingBox) { super(from.getName()+"-subset", from.getTimeUnit(), from.getAltUnits()); this.from = from; this.boundingBox = boundingBox; }
public void finish() { if (finished) return; if (pfiter != null) pfiter.finish(); collectionIter.finish(); finishCalcBounds(); finished = true; }
@Override public void close() throws IOException { if (featureDataset != null) featureDataset.close(); } }
@Override public PointFeature next() { return pfIter.next(); }
@Override public StationTimeSeriesFeature next() throws IOException { return (StationTimeSeriesFeature) localIterator.next(); }
public Object isMine(FeatureType wantFeatureType, NetcdfDataset ds, Formatter errlog) throws IOException { if ((wantFeatureType != FeatureType.RADIAL) && (wantFeatureType != FeatureType.ANY)) return null; for (FeatureDatasetFactory fac : factories) { Object anal = fac.isMine(FeatureType.RADIAL, ds, errlog); if (anal != null) return anal; } return null; }
StandardTrajectoryCollectionSubset(TrajectoryFeatureCollection from, LatLonRect boundingBox) { super(from.getName()+"-subset"); this.from = from; this.boundingBox = boundingBox; }
public FeatureDataset open(FeatureType ftype, NetcdfDataset ncd, Object analysis, CancelTask task, Formatter errlog) throws IOException { FeatureDatasetFactory fac = (FeatureDatasetFactory) analysis; return fac.open(FeatureType.RADIAL, ncd, null, task, errlog); }
@Override public void finish() { if (localIterator != null) localIterator.finish(); }
@Override public void finish() { if (localIterator != null) localIterator.close(); }
@Override public void finish() { if (localIterator != null) localIterator.close(); }
PointFeatureCopy(PointFeature pf) { super(pf.getFeatureCollection(), pf.getLocation(), pf.getObservationTime(), pf.getNominalTime(), pf.getFeatureCollection().getTimeUnit()); }
/** * Returns the next point that satisfies the filter, or {@code null} if no such point exists. * * @return the next point that satisfies the filter, or {@code null} if no such point exists. */ private PointFeature nextFilteredDataPoint() { while (origIter.hasNext()) { PointFeature pointFeat = origIter.next(); if (filter.filter(pointFeat)) { return pointFeat; } } return null; }
StandardTrajectoryCollectionSubset(TrajectoryFeatureCollection from, LatLonRect boundingBox) { super(from.getName()+"-subset", from.getTimeUnit(), from.getAltUnits()); this.from = from; this.boundingBox = boundingBox; }
public int compareTo(PointFeature other) { if (obsTime < other.getObservationTime()) return -1; if (obsTime > other.getObservationTime()) return 1; return 0; }
/** * @deprecated use try-with-resource */ default void finish() { close(); }