Landsat8Metadata extends AbstractLandsatMetadata { static String getSpectralInputString() { String spectralInput = "RADIANCE"; final String readAs = System.getProperty(LandsatGeotiffReader.SYSPROP_READ_AS); if (readAs != null) { if (readAs.trim().equals("reflectance")) { spectralInput = "REFLECTANCE"; } else { Logger systemLogger = BeamLogManager.getSystemLogger(); systemLogger.warning(String.format("Property '%s' has unsupported value '%s'", LandsatGeotiffReader.SYSPROP_READ_AS, readAs)); } } return spectralInput; } Landsat8Metadata(Reader fileReader);  Landsat8Metadata(MetadataElement root); @Override MetadataElement getProductMetadata(); @Override Dimension getReflectanceDim(); @Override Dimension getThermalDim(); @Override Dimension getPanchromaticDim(); @Override String getProductType(); @Override double getScalingFactor(String bandId); @Override double getScalingOffset(String bandId); @Override ProductData.UTC getCenterTime(); @Override Pattern getOpticalBandFileNamePattern(); @Override String getQualityBandNameKey(); @Override float getWavelength(String bandIndexNumber); @Override float getBandwidth(String bandIndexNumber); @Override String getBandDescription(String bandNumber); @Override String getBandNamePrefix(String bandNumber);  }
@Test public void testGetSpectralInputString() throws Exception { System.setProperty(LandsatGeotiffReader.SYSPROP_READ_AS, "reflectance"); assertEquals("REFLECTANCE", Landsat8Metadata.getSpectralInputString()); System.setProperty(LandsatGeotiffReader.SYSPROP_READ_AS, "radiance"); assertEquals("RADIANCE", Landsat8Metadata.getSpectralInputString()); }