@Test public void testCalculateI() { double radiance = 50; float sunSpectralFlux = 10; double sunZenith = 45; double i = cloudPn.calculateI(radiance, sunSpectralFlux, sunZenith); assertEquals("calculated i", (radiance / (sunSpectralFlux * Math.cos(sunZenith * MathUtils.DTOR))), i, 0.00001); }
protected double calculateI(double radiance, float sunSpectralFlux, double sunZenith) { return (radiance / (sunSpectralFlux * Math.cos(sunZenith * MathUtils.DTOR))); }
CloudPN extends ProcessingNode { protected double calculateI(double radiance, float sunSpectralFlux, double sunZenith) { return (radiance / (sunSpectralFlux * Math.cos(sunZenith * MathUtils.DTOR))); } }
CloudPN extends ProcessingNode { protected double calculateI(double radiance, float sunSpectralFlux, double sunZenith) { return (radiance / (sunSpectralFlux * Math.cos(sunZenith * MathUtils.DTOR))); } CloudPN(String auxdataDir); }
CloudPN extends ProcessingNode { protected double calculateI(double radiance, float sunSpectralFlux, double sunZenith) { return (radiance / (sunSpectralFlux * Math.cos(sunZenith * MathUtils.DTOR))); } CloudPN(String auxdataDir); @Override void setUp(final Map config); @Override void startProcessing(); }
CloudPN extends ProcessingNode { protected double calculateI(double radiance, float sunSpectralFlux, double sunZenith) { return (radiance / (sunSpectralFlux * Math.cos(sunZenith * MathUtils.DTOR))); } CloudPN(String auxdataDir); @Override void setUp(final Map config); @Override void startProcessing(); static final String CONFIG_FILE_NAME; static final String INVALID_EXPRESSION; static final String CLOUD_PROP_BAND; static final String CLOUD_FLAG_BAND; static final String ATM_PRESS; }