def resized_scaled_array_from_array(self, new_shape, new_centre_pixels=None, new_centre_arcsec=None):
if new_centre_pixels is None and new_centre_arcsec is None:<EOL><INDENT>new_centre = (-<NUM_LIT:1>, -<NUM_LIT:1>)  <EOL><DEDENT>elif new_centre_pixels is not None and new_centre_arcsec is None:<EOL><INDENT>new_centre = new_centre_pixels<EOL><DEDENT>elif new_centre_pixels is None and new_centre_arcsec is not None:<EOL><INDENT>new_centre = self.arc_second_coordinates_to_pixel_coordinates(arc_second_coordinates=new_centre_arcsec)<EOL><DEDENT>else:<EOL><INDENT>raise exc.DataException('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>return self.new_with_array(array=array_util.resized_array_2d_from_array_2d_and_resized_shape(<EOL>array_2d=self, resized_shape=new_shape, origin=new_centre))<EOL>
resized the array to a new shape and at a new origin.

        Parameters
        -----------
        new_shape : (int, int)
            The new two-dimensional shape of the array.