Near the shore, winds seem to blow out towards the water at night as warm air above the water elevates and gets substituted by cooler air from the land causing the convection current.
The convection currents conduct heat from one place to another by mass motion of a fluid like air, water, or molten rock. The heat transfer function of convection currents mediates the ocean currents of the Earth, geology, and atmospheric weather.