public CalendarDate[] getCoordBoundsDate( int i) { double[] intv = getCoordBounds(i); CalendarDate[] e = new CalendarDate[2]; e[0] = helper.makeCalendarDateFromOffset(intv[0]); e[1] = helper.makeCalendarDateFromOffset(intv[1]); return e; }
public CalendarDate[] getCoordBoundsDate( int i) { double[] intv = getCoordBounds(i); CalendarDate[] e = new CalendarDate[2]; e[0] = helper.makeCalendarDateFromOffset(intv[0]); e[1] = helper.makeCalendarDateFromOffset(intv[1]); return e; }
private CalendarDate makeCalendarDateFromStringCoord(String coordValue, VariableDS org, Formatter errMessages) throws IOException { CalendarDate cd = helper.makeCalendarDateFromOffset(coordValue); if (cd == null) { if (errMessages != null) { errMessages.format("String time coordinate must be ISO formatted= %s%n", coordValue); logger.info("Char time coordinate must be ISO formatted= {} file = {}", coordValue, org.getDatasetLocation()); } throw new IllegalArgumentException(); } return cd; }
public CalendarDate getCoordBoundsMidpointDate( int i) { double[] intv = getCoordBounds(i); double midpoint = (intv[0]+intv[1])/2; return helper.makeCalendarDateFromOffset(midpoint); }
private CalendarDate makeCalendarDateFromStringCoord(String coordValue, VariableDS org, Formatter errMessages) throws IOException { CalendarDate cd = helper.makeCalendarDateFromOffset(coordValue); if (cd == null) { if (errMessages != null) { errMessages.format("String time coordinate must be ISO formatted= %s%n", coordValue); logger.info("Char time coordinate must be ISO formatted= {} file = {}", coordValue, org.getDatasetLocation()); } throw new IllegalArgumentException(); } return cd; }
double val = ii.getDoubleNext(); if (Double.isNaN(val)) continue; // WTF ?? result.add( helper.makeCalendarDateFromOffset(val)); count++;
double val = ii.getDoubleNext(); if (Double.isNaN(val)) continue; // WTF ?? result.add( helper.makeCalendarDateFromOffset(val)); count++;
CalendarDate date = coordAxisTimeHelper.makeCalendarDateFromOffset(times.getInt(0));
CalendarDate date = coordAxisTimeHelper.makeCalendarDateFromOffset(times.getInt(0));
timeBounds[1] = timeCoord2DBoundsArray.get(rtIndex, t, 1); CalendarDate[] timeBoundsDate = new CalendarDate[2]; timeBoundsDate[0] = helper.makeCalendarDateFromOffset(timeBounds[0]); timeBoundsDate[1] = helper.makeCalendarDateFromOffset(timeBounds[1]); dtCoords.setTimeOffsetIntv(timeBounds); dtCoords.set("timeDateIntv", timeBoundsDate); } else { double timeCoord = tcoord2D.getCoordValue(rtIndex, t); CalendarDate timeCoordDate = helper.makeCalendarDateFromOffset(timeCoord); dtCoords.setTime(timeCoordDate);