class LandsatLevel2Metadata extends XmlMetadata {

    public float getWavelength(String filename) {
        String instrument = getInstrument();
        int index1 = filename.indexOf("sr_band");
        int index2 = filename.indexOf(".tif");
        if(index1<0 || index2<index1) {
            return 0;
        }
        Integer.parseInt(filename.substring(index1+"sr_band".length(),index2));
        int band=Integer.parseInt(filename.substring(index1+"sr_band".length(),index2)) - 1; //TODO
        if(instrument.startsWith("OLI")) {
            return L8_WAVELENGTHS[band];
        } else if(instrument.startsWith("TM")) {
            return TM_WAVELENGTHS[band];
        } else if (instrument.startsWith("ETM")) {
            return ETM_PLUS_WAVELENGTHS[band];
        }
        return 0;
    }

    public  LandsatLevel2Metadata(String name);

}