npfc = npfc.subset(llr); collection = npfc.flatten(llr, null);
System.out.printf("Unique Locations sub1 = %d %n", countLocations(pfcSub)); StationTimeSeriesFeatureCollection sfcSub = sfc.subset(bb2); PointFeatureCollection pfcSub2 = sfcSub.flatten(null, (CalendarDateRange) null); System.out.printf("Unique Locations sub2 = %d %n", countLocations(pfcSub2)); sfc = sfc.subset(bb2); PointFeatureCollection subDon = sfc.flatten(bb2, (CalendarDateRange) null); System.out.printf("Unique Locations subDon = %d %n", countLocations(subDon));
LatLonRect bb2 = new LatLonRect(bb.getLowerLeftPoint(), bb.getHeight() / 2, bb.getWidth() / 2); System.out.println(" BB Subset= " + bb2.toString2()); StationTimeSeriesFeatureCollection sfcSub = sfc.subset(bb2); int countSub = countLocations(sfcSub); Assert.assertTrue(countSub <= countStns);