EnglishFrenchSpanish

OnWorks favicon

r.fillnullsgrass - Online in the Cloud

Run r.fillnullsgrass in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command r.fillnullsgrass that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


r.fillnulls - Fills no-data areas in raster maps using spline interpolation.

KEYWORDS


raster, elevation, interpolation

SYNOPSIS


r.fillnulls
r.fillnulls --help
r.fillnulls input=name output=name method=string [tension=float] [smooth=float]
[edge=integer] [npmin=integer] [segmax=integer] [--overwrite] [--help] [--verbose]
[--quiet] [--ui]

Flags:
--overwrite
Allow output files to overwrite existing files

--help
Print usage summary

--verbose
Verbose module output

--quiet
Quiet module output

--ui
Force launching GUI dialog

Parameters:
input=name [required]
Name of input raster map

output=name [required]
Name for output raster map

method=string [required]
Interpolation method to use
Options: bilinear, bicubic, rst
Default: rst

tension=float
Spline tension parameter
Default: 40.

smooth=float
Spline smoothing parameter
Default: 0.1

edge=integer
Width of hole edge used for interpolation (in cells)
Options: 2-100
Default: 3

npmin=integer
Minimum number of points for approximation in a segment (>segmax)
Options: 2-10000
Default: 600

segmax=integer
Maximum number of points in a segment
Options: 2-10000
Default: 300

DESCRIPTION


r.fillnulls fills NULL pixels (no data areas) in input raster map and stores filled data
to a new output raster map. The fill areas are interpolated from the no data area
boundaries buffer using v.surf.rst regularized spline interpolation with tension
(method=rst) or r.resamp.bspline cubic or linear spline interpolation with Tykhonov
regularization.

NOTES


Each area boundary buffer is set to three times the map resolution to get nominally three
points around the edge. This way the algorithm interpolates into the hole with a trained
slope and curvature at the edges, in order to avoid that such a flat plane is generated in
a hole. The width of edge area can be adjusted by changing the edge parameter.

During the interpolation following warning may occur when using the RST method:

Warning: strip exists with insufficient data
Warning: taking too long to find points for interpolation--please change the region to
area where your points are

This warning is generated if large data holes exist within the surface. As the idea of
r.fillnulls is to fill such holes, the user may ignore the warning. The interpolation will
be continued. However, the user may pay attention to below notes.

If interpolation fails, temporary raster and vector maps are left in place to allow
unfilled map hole (NULL area) identification and manual repair.

When using the default RST method, the algorithm is based on v.surf.rst regularized
splines with tension interpolation module which interpolates the raster cell values for
NULL data areas from the boundary values of the NULL data area. An eventual raster MASK is
respected during the NULL data area(s) filling. The interpolated values are patched into
the NULL data area(s) of the input map and saved into a new raster map. Otherwise, either
the linear or cubic spline interpolation with Tykhonov regularization can be selected
(based on r.resamp.bspline).

WARNING


Depending on the shape of the NULL data area(s) problems may occur due to an insufficient
number of input cell values for the interpolation process. Most problems will occur if a
NULL data area reaches a large amount of the map boundary. The user will have to carefully
check the result using r.mapcalc (generating a difference map to the input map and
applying the "differences" color table with r.colors) and/or to query individual cell
values.

RST method stores temporary maps on hard disk. It will require at least as much free space
as one extra input raster map takes.

EXAMPLE


In this example, the SRTM elevation map in the North Carolina sample dataset location is
filtered for outlier elevation values; missing pixels are then re-interpolated to obtain a
complete elevation map:
g.region raster=elev_srtm_30m -p
d.mon wx0
d.histogram elev_srtm_30m
# remove too low elevations (esp. lakes)
r.mapcalc "elev_srtm_30m_filt = if(elev_srtm_30m < 50.0, null(), elev_srtm_30m)"
d.histogram elev_srtm_30m_filt
d.rast elev_srtm_30m_filt
r.fillnulls input=elev_srtm_30m_filt output=elev_srtm_30m_complete tension=20
d.histogram elev_srtm_30m_complete
d.rast elev_srtm_30m_complete

REFERENCES


· Mitas, L., Mitasova, H., 1999, Spatial Interpolation. In: P.Longley, M.F.
Goodchild, D.J. Maguire, D.W.Rhind (Eds.), Geographical Information Systems:
Principles, Techniques, Management and Applications, Wiley, pp.481-492

· Mitasova H., Mitas L., Brown W.M., D.P. Gerdes, I. Kosinovsky, Baker, T.1995,
Modeling spatially and temporally distributed phenomena: New methods and tools for
GRASS GIS. International Journal of GIS, 9 (4), special issue on Integrating GIS
and Environmental modeling, 433-446.

· Mitasova H. and Mitas L. 1993: Interpolation by Regularized Spline with Tension:
I. Theory and Implementation, Mathematical Geology 25, 641-655.

· Mitasova H. and Hofierka L. 1993: Interpolation by Regularized Spline with
Tension: II. Application to Terrain Modeling and Surface Geometry Analysis,
Mathematical Geology 25, 657-667.

Use r.fillnullsgrass online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

Ad