A local study of inertial oscillations in the upper layers of the ocean