@Test public void testGetCoefficientFile() throws IOException { SensorCoefficientManager mgr = new SensorCoefficientManager(auxdataDir.toUri().toURL()); assertNotNull(mgr.getCoefficientFile("MERIS", "radiance_2", AEROSOL_TYPE.DESERT)); }
public URL getCoefficientFile(String sensor, String bandName, AEROSOL_TYPE aerosolType) { URL url = null; SensorDb sensorDb; sensorDb = getSensorDb(sensor); if (sensorDb != null) { BandDb bandDb; bandDb = sensorDb.getBand(bandName, aerosolTypeMap.get(aerosolType)); if (bandDb == null) { return null; } try { url = new URL(bandDb.getCoefficientFileName()); } catch (MalformedURLException e) { try { url = new URL(locationPath + bandDb.getCoefficientFileName()); } catch (MalformedURLException ignored) { } } } return url; }
SensorCoefficientManager { public URL getCoefficientFile(String sensor, String bandName, AEROSOL_TYPE aerosolType) { URL url = null; SensorDb sensorDb; sensorDb = getSensorDb(sensor); if (sensorDb != null) { BandDb bandDb; bandDb = sensorDb.getBand(bandName, aerosolTypeMap.get(aerosolType)); if (bandDb == null) { return null; } try { url = new URL(bandDb.getCoefficientFileName()); } catch (MalformedURLException e) { try { url = new URL(locationPath + bandDb.getCoefficientFileName()); } catch (MalformedURLException ignored) { } } } return url; } }
SensorCoefficientManager { public URL getCoefficientFile(String sensor, String bandName, AEROSOL_TYPE aerosolType) { URL url = null; SensorDb sensorDb; sensorDb = getSensorDb(sensor); if (sensorDb != null) { BandDb bandDb; bandDb = sensorDb.getBand(bandName, aerosolTypeMap.get(aerosolType)); if (bandDb == null) { return null; } try { url = new URL(bandDb.getCoefficientFileName()); } catch (MalformedURLException e) { try { url = new URL(locationPath + bandDb.getCoefficientFileName()); } catch (MalformedURLException ignored) { } } } return url; } SensorCoefficientManager();  SensorCoefficientManager(URL location); }
SensorCoefficientManager { public URL getCoefficientFile(String sensor, String bandName, AEROSOL_TYPE aerosolType) { URL url = null; SensorDb sensorDb; sensorDb = getSensorDb(sensor); if (sensorDb != null) { BandDb bandDb; bandDb = sensorDb.getBand(bandName, aerosolTypeMap.get(aerosolType)); if (bandDb == null) { return null; } try { url = new URL(bandDb.getCoefficientFileName()); } catch (MalformedURLException e) { try { url = new URL(locationPath + bandDb.getCoefficientFileName()); } catch (MalformedURLException ignored) { } } } return url; } SensorCoefficientManager();  SensorCoefficientManager(URL location); void setURL(URL location); URL getCoefficientFile(String sensor, String bandName, AEROSOL_TYPE aerosolType); }
SensorCoefficientManager { public URL getCoefficientFile(String sensor, String bandName, AEROSOL_TYPE aerosolType) { URL url = null; SensorDb sensorDb; sensorDb = getSensorDb(sensor); if (sensorDb != null) { BandDb bandDb; bandDb = sensorDb.getBand(bandName, aerosolTypeMap.get(aerosolType)); if (bandDb == null) { return null; } try { url = new URL(bandDb.getCoefficientFileName()); } catch (MalformedURLException e) { try { url = new URL(locationPath + bandDb.getCoefficientFileName()); } catch (MalformedURLException ignored) { } } } return url; } SensorCoefficientManager();  SensorCoefficientManager(URL location); void setURL(URL location); URL getCoefficientFile(String sensor, String bandName, AEROSOL_TYPE aerosolType); static final String AER_DES_NAME; static final String AER_CONT_NAME; static final String MERIS_NAME; static final String AATSR_NAME; }