Gas diffusion in a convection layer near a coastal region