Gaussian blur in Fortran and Python. Handles masked input data.