@Override public boolean filter(PointFeatureCollection pointFeatureCollection) { ProfileFeature profileFeature = (ProfileFeature) pointFeatureCollection; return dateRange.includes(profileFeature.getTime()); } }
@Override public List<CalendarDate> getTimes() throws IOException { List<CalendarDate> result = new ArrayList<>(); for (ProfileFeature pf : this) { if (dateRange.includes(pf.getTime())) result.add(pf.getTime()); } return result; }
private boolean filter(PointFeature pdata) { if ((filter_date != null) && !filter_date.includes(pdata.getObservationTimeAsCalendarDate())) return false; if ((filter_bb != null) && !filter_bb.contains(pdata.getLocation().getLatitude(), pdata.getLocation().getLongitude())) return false; return true; }
public boolean filter(PointFeature pdata) { if ((filter_date != null) && !filter_date.includes(pdata.getObservationTimeAsCalendarDate())) return false; if ((filter_bb != null) && !filter_bb.contains(pdata.getLocation().getLatitude(), pdata.getLocation().getLongitude())) return false; return true; }
public boolean filter(PointFeature pdata) { if ((filter_date != null) && !filter_date.includes(pdata.getObservationTimeAsCalendarDate())) return false; if ((filter_bb != null) && !filter_bb.contains(pdata.getLocation().getLatitude(), pdata.getLocation().getLongitude())) return false; return true; }
private boolean filter(PointFeature pdata) { if ((filter_date != null) && !filter_date.includes(pdata.getObservationTimeAsCalendarDate())) return false; if ((filter_bb != null) && !filter_bb.contains(pdata.getLocation().getLatitude(), pdata.getLocation().getLongitude())) return false; return true; }
@Override public boolean filter(PointFeature pointFeat) { if ((filter_date != null) && !filter_date.includes(pointFeat.getObservationTimeAsCalendarDate())) return false; if ((filter_bb != null) && !filter_bb.contains(pointFeat.getLocation().getLatitude(), pointFeat.getLocation().getLongitude())) return false; return true; } }
System.out.printf(" point not in BB = %s on %s %n", pf.getLocation().getLatLon(), pfc.getName()); if (!dr.includes(pf.getObservationTimeAsCalendarDate())) System.out.printf(" date out of Range= %s on %s %n", pf.getObservationTimeAsCalendarDate(), pfc.getName()); count++;