#NEWLINE# def write_gridSpec( self , filename ) : #NEWLINE# #INDENT# ' write a PEST-style grid specification file\n        ' #NEWLINE# f = open ( c , 'w' ) #NEWLINE# f . write ( '{0:10d} {1:10d}\n' . format ( self . delc . shape [ 0 ] , self . delr . shape [ 0 ] ) ) #NEWLINE# f . write ( '{0:15.6E} {1:15.6E} {2:15.6E}\n' . format ( self . xul , self . yul , self . rotation ) ) #NEWLINE# for c in self . delc : #NEWLINE# #INDENT# f . write ( '{0:15.6E} ' . format ( c ) ) #NEWLINE# #UNINDENT# f . write ( '\n' ) #NEWLINE# for r in self . delr : #NEWLINE# #INDENT# f . write ( '{0:15.6E} ' . format ( r ) ) #NEWLINE# #UNINDENT# f . write ( '\n' ) #NEWLINE# return