public int getUnsignedPixelValue ( GriddedTile griddedTile , Double value ) { int unsignedPixelValue = 0 ; if ( value == null ) { if ( griddedCoverage != null ) { unsignedPixelValue = griddedCoverage . getDataNull ( ) . intValue ( ) ; } } else { double pixelValue = valueToPixelValue ( griddedTile , value ) ; unsignedPixelValue = ( int ) Math . round ( pixelValue ) ; } return unsignedPixelValue ; }
Get the unsigned 16 bit integer pixel value of the coverage data value