targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); if (prefix.equals("Flat")) {
ProductUtils.copyGeoCoding(srcBand, targetBand); targetBand.setNoDataValueUsed(false); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setDescription("Defective Pixel");
private void addAOTImage(Product product, String pathString) { Band srcBand = getTifBand(pathString, 1); if (srcBand == null) { logger.warning(String.format("Image %s not added", pathString)); return; } MuscateMetadata.Geoposition geoposition = getGeoposition(srcBand.getRasterWidth(), srcBand.getRasterHeight()); if (geoposition == null) { logger.warning(String.format("Unrecognized geometry of image %s, it will not be added to the product %s.", pathString, product.getName())); return; } String bandName = "AOT_" + geoposition.id; Band targetBand = new Band(bandName, srcBand.getDataType(), srcBand.getRasterWidth(), srcBand.getRasterHeight()); product.addBand(targetBand); ProductUtils.copyGeoCoding(srcBand, targetBand); targetBand.setNoDataValue(metadata.getAOTNoDataValue()); targetBand.setNoDataValueUsed(true); targetBand.setScalingFactor(1.0d / metadata.getAOTQuantificationValue()); targetBand.setScalingOffset(0.0d); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setDescription(String.format("Aerosol Optical Thickness at %.0fm resolution", geoposition.xDim)); targetBand.setSourceImage(srcBand.getSourceImage()); }
ProductUtils.copyGeoCoding(srcBand, targetBand); targetBand.setNoDataValueUsed(false); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setDescription("Detector footprint");
targetBand.setScalingFactor(1); targetBand.setScalingOffset(0); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setDescription("Interpolated AOT pixels mask");
private void addWVCImage(Product product, String pathString) { Band srcBand = getTifBand(pathString, 0); if (srcBand == null) { logger.warning(String.format("Image %s not added", pathString)); return; } MuscateMetadata.Geoposition geoposition = getGeoposition(srcBand.getRasterWidth(), srcBand.getRasterHeight()); if (geoposition == null) { logger.warning(String.format("Unrecognized geometry of image %s, it will not be added to the product %s.", pathString, product.getName())); return; } String bandName = "WVC_" + geoposition.id; Band targetBand = new Band(bandName, srcBand.getDataType(), srcBand.getRasterWidth(), srcBand.getRasterHeight()); product.addBand(targetBand); ProductUtils.copyGeoCoding(srcBand, targetBand); targetBand.setNoDataValue(metadata.getWVCNoDataValue()); targetBand.setNoDataValueUsed(true); targetBand.setScalingFactor(1.0d / metadata.getWVCQuantificationValue()); targetBand.setScalingOffset(0.0d); targetBand.setUnit("cm"); //TODO verify targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setDescription(String.format("Water vapor content at %.0fm resolution in %s", geoposition.xDim, targetBand.getUnit())); targetBand.setSourceImage(srcBand.getSourceImage()); }
targetBand.setScalingFactor(1); targetBand.setScalingOffset(0); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setDescription("saturation mask coded over 8 bits, 1 bit per spectral band (number of useful bits = number of " +
targetBand.setScalingFactor(1); targetBand.setScalingOffset(0); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setDescription("Edge mask");
targetBand.setSolarFlux(srcBand.getSolarFlux()); targetBand.setUnit(srcBand.getUnit() != null ? srcBand.getUnit() : bandUnits[idx]); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setSpectralBandIndex(srcBand.getSpectralBandIndex());
targetBand.setSolarFlux(srcBand.getSolarFlux()); targetBand.setUnit(srcBand.getUnit()); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setSpectralBandIndex(srcBand.getSpectralBandIndex());
targetBand.setScalingFactor(1); targetBand.setScalingOffset(0); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setDescription("Geophysical mask of level 2, made of 1 band coded over 8 useful bits");
targetBand.setScalingFactor(1); targetBand.setScalingOffset(0); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setDescription("Cloud mask computed by MACCS software, made of 1 band coded over 8 useful bits");
targetBand.setSolarFlux(srcBand.getSolarFlux()); targetBand.setUnit(srcBand.getUnit() != null ? srcBand.getUnit() : bandUnits[idx]); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo());
targetBand.setSolarFlux(srcBand.getSolarFlux()); targetBand.setUnit(srcBand.getUnit()); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setSpectralBandIndex(srcBand.getSpectralBandIndex());
targetBand.setScalingOffset(srcBand.getScalingOffset()); targetBand.setSolarFlux(srcBand.getSolarFlux()); targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setSpectralBandIndex(srcBand.getSpectralBandIndex());
targetBand.setScalingOffset(srcBand.getScalingOffset()); targetBand.setSolarFlux(srcBand.getSolarFlux()); targetBand.setSampleCoding(srcBand.getSampleCoding());