/** * Adds a new band description to the product description. * * @param name the name of the band (without spectral extension) * @param isSpectral whether the badnd is a spectral band or not * @param scalingMethod the scaling method to be used for this band (lin, exp ..) * @param scaleName name of the attribute containing the scale factors * @param offsetName name of the attribute containing the scale offsets * @param unitName name off the attribute containing the physical unit * @param bandName name of the attribute containing the spectral extensions (band names) * @param descName name of the attribute containing a description of the band */ public void addBand(String name, String isSpectral, String scalingMethod, String scaleName, String offsetName, String unitName, String bandName, String descName) { addBand(new ModisBandDescription( name, isSpectral, scalingMethod, scaleName, offsetName, unitName, bandName, descName)); }
description.addBand( records[1], records[2], records[3], records[4], records[5], records[6], records[7], records[8], records[9], records[10], records[11]); } else if (records.length == ModisProductDb.EXP_NUM_SDS_DEFAULT_RECORD) { description.addBand( records[1], records[2], records[3], records[4], records[5], records[6], records[7], records[8]);
/** * Adds a new band description to the product description. * * @param name the name of the band (without spectral extension) * @param isSpectral whether the badnd is a spectral band or not * @param scalingMethod the scaling method to be used for this band (lin, exp ..) * @param scaleName name of the attribute containing the scale factors * @param offsetName name of the attribute containing the scale offsets * @param unitName name off the attribute containing the physical unit * @param bandName name of the attribute containing the spectral extensions (band names) * @param descName name of the attribute containing a description of the band * @param spectralWaveLength the spectral wavelength in nm (nanomater) units * @param spectralBandWidth the spectral bandwidth in nm (nanomater) units * @param spectralBandIndex the (zero-based) spectral band index */ public void addBand(final String name, final String isSpectral, final String scalingMethod, final String scaleName, final String offsetName, final String unitName, final String bandName, final String descName, final String spectralWaveLength, final String spectralBandWidth, final String spectralBandIndex) { final ModisBandDescription bandDesc = new ModisBandDescription( name, isSpectral, scalingMethod, scaleName, offsetName, unitName, bandName, descName); bandDesc.setSpecInfo(new ModisSpectralInfo( spectralWaveLength, spectralBandWidth, spectralBandIndex)); addBand(bandDesc); }
prod.addBand(expB_1_Name, expB_1_spectral, expB_1_ScaleMethod, expB_1_Scale, expB_1_Offset, expB_1_Unit, expB_1_BandName, expB_1_DescName, expB_1_SpectralWL, expB_1_SpectralBW, expB_1_SpectralBI); prod.addBand(expB_2_Name, expB_2_spectral, expB_2_ScaleMethod, expB_2_Scale, expB_2_Offset, expB_2_Unit, expB_2_BandName, expB_2_DescName);