public Station getStation(String name) { if (stationHelper == null) initStationHelper(); return stationHelper.getStation(name); }
public List<Station> getStations() { if (stationHelper == null) initStationHelper(); return stationHelper.getStations(); }
public List<Station> getStations(List<String> stnNames) { if (stationHelper == null) initStationHelper(); return stationHelper.getStations(stnNames); }
public List<Station> getStations(LatLonRect boundingBox) throws IOException { if (stationHelper == null) initStationHelper(); return stationHelper.getStations(boundingBox); }
public LatLonRect getBoundingBox() { if (stationHelper == null) initStationHelper(); return stationHelper.getBoundingBox(); }
public PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize) throws IOException { initStationHelper(); return new PointFeatureCollectionIterator() { // an anonymous class iterating over the stations Iterator<Station> stationIter = stationHelper.getStations().iterator(); public boolean hasNext() throws IOException { return stationIter.hasNext(); } public PointFeatureCollection next() throws IOException { return (PointFeatureCollection) stationIter.next(); } public void setBufferSize(int bytes) { } public void finish() { } }; }
public PointFeatureCollection flatten(List<String> stations, CalendarDateRange dateRange, List<VariableSimpleIF> varList) throws IOException { if ((stations == null) || (stations.size() == 0)) return new StationTimeSeriesCollectionFlattened(this, dateRange); initStationHelper(); List<Station> subsetStations = stationHelper.getStations(stations); return new StationTimeSeriesCollectionFlattened(new StationTimeSeriesCollectionSubset(this, subsetStations), dateRange); }
public PointFeatureCollection flatten(LatLonRect boundingBox, CalendarDateRange dateRange) throws IOException { if (boundingBox == null) return new StationTimeSeriesCollectionFlattened(this, dateRange); initStationHelper(); List<Station> subsetStations = stationHelper.getStations(boundingBox); return new StationTimeSeriesCollectionFlattened(new StationTimeSeriesCollectionSubset(this, subsetStations), dateRange); }