bb.extend(pfc.getBoundingBox()); if (dates == null) dates = pfc.getCalendarDateRange(); else dates.extend(pfc.getCalendarDateRange()); pfc.calcBounds(); if (dates == null) dates = pfc.getCalendarDateRange(); else dates.extend(pfc.getCalendarDateRange());
sf.format(" npts = %d %n", pfc.size()); sf.format(" bb = %s %n", pfc.getBoundingBox() == null ? "" : pfc.getBoundingBox().toString2()); sf.format(" dates = %s %n", pfc.getCalendarDateRange()); List<Variable> extra = pfc.getExtraVariables(); if (extra.size() > 0) {
bb.extend(pfc.getBoundingBox()); if (dates == null) dates = pfc.getCalendarDateRange(); else dates.extend(pfc.getCalendarDateRange()); pfc.calcBounds(); if (dates == null) dates = pfc.getCalendarDateRange(); else dates.extend(pfc.getCalendarDateRange());
System.out.println(" dateRange= " + pfc.getCalendarDateRange()); System.out.println(" npts= " + pfc.size()); CalendarDateRange dr = pfc.getCalendarDateRange(); assert dr != null;
protected void finishCalcBounds() { if (!calcBounds) return; if ((bb != null) && bb.crossDateline() && (bb.getWidth() > 350.0)) { // call it global - less confusing double lat_min = bb.getLowerLeftPoint().getLatitude(); double deltaLat = bb.getUpperLeftPoint().getLatitude() - lat_min; bb = new LatLonRect(new LatLonPointImpl(lat_min, -180.0), deltaLat, 360.0); } if (collection != null) { if (collection.getBoundingBox() == null) collection.setBoundingBox(bb); if (collection.getCalendarDateRange() == null) { CalendarDateRange dr = getCalendarDateRange(); if (dr != null) collection.setCalendarDateRange(dr); } if (collection.size() <= 0) { if (count < 0) count = 0; collection.setSize(count); } } }
protected void finishCalcBounds() { if (!calcBounds) return; if ((bb != null) && bb.crossDateline() && (bb.getWidth() > 350.0)) { // call it global - less confusing double lat_min = bb.getLowerLeftPoint().getLatitude(); double deltaLat = bb.getUpperLeftPoint().getLatitude() - lat_min; bb = new LatLonRect(new LatLonPointImpl(lat_min, -180.0), deltaLat, 360.0); } if (collection != null) { if (collection.getBoundingBox() == null) collection.setBoundingBox(bb); if (collection.getCalendarDateRange() == null) { CalendarDateRange dr = getCalendarDateRange(); if (dr != null) collection.setCalendarDateRange(dr); } if (collection.size() <= 0) { if (count < 0) count = 0; collection.setSize(count); } } }