[GRASS-dev] A better r.fillnulls

Hi GRASS-dev,

When I use r.fillnulls, I am often faced with the problem that it breaks the domain up into blocks, thus (1) creating discontinuities and/or (2) having problems in regions where there is insufficient data. (2) is important because I am often trying to just create some smooth variation between two datasets or fill in less-important regions to have a full grid to be able to run a utility or model.

My workaround as of now is this:

r.to.points in=map out=map type=point column=attrcol
v.surf.bspline in=map raster_output=mapSplines column=attrcol

But the spline fit makes the real data blurry too, so patch the spline fit

in-between the data points

r.patch in=map,mapSplines out=mapFilled

I find this to be preferable for both the reasons stated above, and was wondering if it would be worthwhile to think about including multiple methods for r.fillnulls so one could do something like this too.

Andy

On Sun, Mar 1, 2015 at 7:40 PM, Andy Wickert <andrewwickert@gmail.com> wrote:
...

I find this to be preferable for both the reasons stated above, and was
wondering if it would be worthwhile to think about including multiple
methods for r.fillnulls so one could do something like this too.

Did you use the GRASS 6 version? Because in GRASS 7 several methods
have been implemented:

http://grass.osgeo.org/grass70/manuals/r.fillnulls.html

method: Interpolation method to use
Options: bilinear, bicubic, rst
Default: rst

Both bilinear and bicubic use r.resamp.bspline.

Markus

On Sun, Mar 1, 2015 at 1:37 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Sun, Mar 1, 2015 at 7:40 PM, Andy Wickert <andrewwickert@gmail.com>
wrote:
...
> I find this to be preferable for both the reasons stated above, and was
> wondering if it would be worthwhile to think about including multiple
> methods for r.fillnulls so one could do something like this too.

Did you use the GRASS 6 version? Because in GRASS 7 several methods
have been implemented:

http://grass.osgeo.org/grass70/manuals/r.fillnulls.html

method: Interpolation method to use
Options: bilinear, bicubic, rst
Default: rst

Both bilinear and bicubic use r.resamp.bspline.

Markus

Hi Markus,

Sorry for the silly question! I missed that change in GRASS 7.

Best,

Andy

On Mar 2, 2015 8:35 AM, “Andy Wickert” <andrewwickert@gmail.com> wrote:

On Sun, Mar 1, 2015 at 1:37 PM, Markus Neteler <neteler@osgeo.org> wrote:
Sorry for the silly question! I missed that change in GRASS 7.

Not silly at all. We accumulated quite a bit of new functionality in G7… Future releases shall come more frequently so that it is less overwhelming for all :slight_smile:

Best,
Markus