def gaussian_resolution(res, zwl, mwl):
    """
    Get parameters for ndimage.gaussian_filter
    See http://stackoverflow.com/questions/14531072/how-to-count-bugs-in-an-image
    Input: res : grid resolution in degrees
           zwl : zonal distance in degrees
           mwl : meridional distance in degrees
    """
    zres = zwl.copy()
    mres = mwl.copy()
    zres *= 0.125
    mres *= 0.125
    zres /= res
    mres /= res
    return zres, mres
