There is a line which prevents the regridding from inventing new min and max values compared to the original data. But I numpy.ma.masked_outside’d it, not numpy.ma.clip’d it.
So I think the solution is to replace masked_outside but on a slightly wider range than the min and max of the original data.
There is a line which prevents the regridding from inventing new min and max values compared to the original data. But I numpy.ma.masked_outside’d it, not numpy.ma.clip’d it.
So I think the solution is to replace
masked_outsidebut on a slightly wider range than the min and max of the original data.