The diffraction problem of the scattering of surface magnetostatic waves by shallow rectangular and circular cavities on the surface of a ferromagnetic film that is tangentially magnetized with respect to the surface is numerically analyzed in the magnetostatic approximation.