#NEWLINE# def updateRasterInfo( self , **kwargs ) : #NEWLINE# #INDENT# kwargs [ 'output_info' ] [ 'bandCount' ] = 1 #NEWLINE# kwargs [ 'output_info' ] [ 'pixelType' ] = 'f4' #NEWLINE# kwargs [ 'output_info' ] [ 'statistics' ] = ( { #NEWLINE# #INDENT# 'minimum' : 0.0 , #NEWLINE# 'maximum' : 1.0 , #NEWLINE# #UNINDENT# } , ) #NEWLINE# kwargs [ 'output_info' ] [ 'histogram' ] = ( ) #NEWLINE# self . depth = abs ( float ( kwargs [ 'depth' ] ) ) #NEWLINE# d = self . depth #NEWLINE# dMinA = 0 #NEWLINE# dMinP = 2 #NEWLINE# dMaxP = 11 #NEWLINE# dMaxA = 20 #NEWLINE# if ( ( d < dMinA ) or ( d > dMaxA ) ) : #NEWLINE# #INDENT# d = 0.0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( d <= dMinP ) : #NEWLINE# #INDENT# d = ( ( d - dMinA ) / ( dMinP - dMinA ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( d >= dMaxP ) : #NEWLINE# #INDENT# d = ( ( d - dMaxA ) / ( dMaxP - dMaxA ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# d = 1 #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . depth = d #NEWLINE# return dMaxA