sampleModel = img.getSampleModel();
colorModel = img.getColorModel();
this.metadata = metadata;
this.coverageName = coverageName;
this.tileSize = tileSize;
histogramConfig = new HistogramConfig(
sampleModel);
noDataValuesPerBand = new double[originalGridCoverage.getNumSampleDimensions()][];
for (int d = 0; d < noDataValuesPerBand.length; d++) {
noDataValuesPerBand[d] = originalGridCoverage.getSampleDimension(
d).getNoDataValues();