@Test public void testGetCenterTimeValue() throws Exception { final double centerTimeMJD = (endTimeMJD - startTimeMJD) / 2 + startTimeMJD; assertEquals(5.5, di.getValue(centerTimeMJD, 45, -90)); assertEquals(7.6, di.getValue(centerTimeMJD, 45, 90)); assertEquals(3.85, di.getValue(centerTimeMJD, -45, -90)); assertEquals(9.125, di.getValue(centerTimeMJD, -45, 90)); }
@Override public double getValue(double timeMJD, double lat, double lon) { final double startValue = getStartValue(lat, lon); final double endValue = getEndValue(lat, lon); return startValue + (timeMJD - startTimeMJD) / (endTimeMJD - startTimeMJD) * (endValue - startValue); }
DataInterpolatorStatic extends DataInterpolator { @Override public double getValue(double timeMJD, double lat, double lon) { final double startValue = getStartValue(lat, lon); final double endValue = getEndValue(lat, lon); return startValue + (timeMJD - startTimeMJD) / (endTimeMJD - startTimeMJD) * (endValue - startValue); } }
DataInterpolatorStatic extends DataInterpolator { @Override public double getValue(double timeMJD, double lat, double lon) { final double startValue = getStartValue(lat, lon); final double endValue = getEndValue(lat, lon); return startValue + (timeMJD - startTimeMJD) / (endTimeMJD - startTimeMJD) * (endValue - startValue); } DataInterpolatorStatic(double startTimeMJD, double endTimeMJD, Product startProduct, Product endProduct, final String bandName, double defaultValue); }
DataInterpolatorStatic extends DataInterpolator { @Override public double getValue(double timeMJD, double lat, double lon) { final double startValue = getStartValue(lat, lon); final double endValue = getEndValue(lat, lon); return startValue + (timeMJD - startTimeMJD) / (endTimeMJD - startTimeMJD) * (endValue - startValue); } DataInterpolatorStatic(double startTimeMJD, double endTimeMJD, Product startProduct, Product endProduct, final String bandName, double defaultValue); @Override double getValue(double timeMJD, double lat, double lon); @Override void dispose(); }
DataInterpolatorStatic extends DataInterpolator { @Override public double getValue(double timeMJD, double lat, double lon) { final double startValue = getStartValue(lat, lon); final double endValue = getEndValue(lat, lon); return startValue + (timeMJD - startTimeMJD) / (endTimeMJD - startTimeMJD) * (endValue - startValue); } DataInterpolatorStatic(double startTimeMJD, double endTimeMJD, Product startProduct, Product endProduct, final String bandName, double defaultValue); @Override double getValue(double timeMJD, double lat, double lon); @Override void dispose();  }