id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,cpu,platform 3296,r.mapcalc: nmedian() unexpected results,sbl,grass-dev@…,"Seems that the nmedian() function in r.mapcalc for both GRASS 7.0, GRASS 7.2 and trunk gives unexpected results. The neighborhood modifer I used do not seem to cause the issue... This: {{{ g.region -p n=3 s=0 e=3 w=0 res=1 r.mapcalc expression=""test=row()*col()"" --o r.mapcalc expression=""nbh_test_r=(test[0,-1] - test)^2.0"" --o r.mapcalc expression=""nbh_test_l=(test[0,1] - test)^2.0"" --o r.mapcalc expression=""nmed_test=nmedian(((test[0,-1] - test)^2.0,(test[0,1] - test)^2.0))"" --o }}} should result in a horizontally striped map with values covering 1 (top row), 4 (middle row, and 9 (bottom row). However, the leftmost column contains values 0.2, 2.5, 6.5 (from top to bottom). Yet, here - where values only differ from column to column - {{{ r.mapcalc expression=""test=col()"" --o r.mapcalc expression=""nmed_test=nmedian(((test[0,-1] - test)^2.0,(test[0,1] - test)^2.0))"" --o }}} only the top-left cell has an odd value of 0.5 while the rest has value 1 as expected... ",defect,closed,normal,7.2.1,Raster,svn-releasebranch72,fixed,"r.mapcalc,nmedian()",,Unspecified,Unspecified