Opened 16 years ago

Closed 16 years ago

#98 closed defect (invalid)

r.resamp.interp fails for bicubic and bilinear interpolation

Reported by: cmbarton Owned by: grass-dev@…
Priority: critical Milestone: 6.3.0
Component: Default Version: unspecified
Keywords: Cc:
CPU: Unspecified Platform: Unspecified


I just found out that r.resamp.interp fails for both bicubic and bilinear interpolation. It makes maps with all NAN values. I used the new NC data set and produced a set of random elevation points (raster and vector), then tried to use these in r.resamp.interp. The nearest neighbor routine worked, but the others did not. I tried the original raster point map and also tried one that I converted to a CELL map. Neither gave usable results. FWIW, I got the same result using r.bilinear.

I'm having a very difficult time putting together a class on interpolation using GRASS today. does not work, 2 of the 3 methods in r.resamp.interp do not work. r.bilinear does not work. Pretty bad press.


Change History (1)

comment:1 by neteler, 16 years ago

Resolution: invalid
Status: newclosed

On Tue, Mar 18, 2008 at 10:01 PM, Helena Mitasova <hmitaso> wrote:

Michael - unless you have at least on point per cell NAN is actually a correct result. r.resamp.interp is for resampling a raster map not for interpolating from randomly distributed points. Eg this is the example from the book - you go from 30m resolution to 10m resolution - let me know if that does not work (then we are in trouble because this worked so we may have a bug introduced somewhere).

g.region rast=elevation -p r.resamp.interp elev_ned_30m out=elev_ned10m_bil meth=bilinear r.resamp.interp elev_ned_30m out=elev_ned10m_bic meth=bicubic


New documentation wording:

"<EM>r.resamp.interp</EM> resamples an input raster map by interpolating between the neighboring cells via a selectable resampling algorithm. All cells present in the neighborhood of the input raster cell must be non-null to generate a non-null cell in the output raster map."

Note: See TracTickets for help on using tickets.