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