private double valueToPixelValue(GriddedTile griddedTile, double value) {

		double pixelValue = value;

		if (griddedCoverage != null
				&& griddedCoverage.getDataType() == GriddedCoverageDataType.INTEGER) {

			pixelValue -= griddedCoverage.getOffset();
			pixelValue /= griddedCoverage.getScale();
			if (griddedTile != null) {
				pixelValue -= griddedTile.getOffset();
				pixelValue /= griddedTile.getScale();
			}

		}

		return pixelValue;
	}
private double valueToPixelValue ( GriddedTile griddedTile , double value ) { double pixelValue = value ; if ( griddedCoverage != null && griddedCoverage . getDataType ( ) == GriddedCoverageDataType . INTEGER ) { pixelValue -= griddedCoverage . getOffset ( ) ; pixelValue /= griddedCoverage . getScale ( ) ; if ( griddedTile != null ) { pixelValue -= griddedTile . getOffset ( ) ; pixelValue /= griddedTile . getScale ( ) ; } } return pixelValue ; }
Convert integer coverage typed coverage data value to a pixel value
through offsets and scales

@param griddedTile
gridded tile
@param value
coverage data value
@return pixel value