#NEWLINE# def set_spatialreference( self , xul = None , yul = None , rotation = 0.0 ) : #NEWLINE# #INDENT# '\n            set spatial reference - can be called from model instance\n        ' #NEWLINE# if ( xul is None ) : #NEWLINE# #INDENT# self . xul = 0.0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . xul = xul #NEWLINE# #UNINDENT# if ( yul is None ) : #NEWLINE# #INDENT# self . yul = np . add . reduce ( self . delc ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . yul = yul #NEWLINE# #UNINDENT# self . rotation = rotation #NEWLINE# self . _reset ( )