#NEWLINE# def get_scaled_cutout( self , x1 , y1 , x2 , y2 , scale_x , scale_y , method = 'basic' ) : #NEWLINE# #INDENT# if ( method == 'basic' ) : #NEWLINE# #INDENT# return self . get_scaled_cutout_basic ( x1 , y1 , x2 , y2 , scale_x , scale_y ) #NEWLINE# #UNINDENT# data = self . _get_data ( ) #NEWLINE# ( newdata , ( scale_x , scale_y ) ) = trcalc . get_scaled_cutout_basic ( data , x1 , y1 , x2 , y2 , scale_x , scale_y , interpolation = method ) #NEWLINE# res = Bunch . Bunch ( data = newdata , scale_x = scale_x , scale_y = scale_y ) #NEWLINE# return res