[GRASS-user] integration of sample.c algorithms into r.resample

Dylan Beaudette dylan.beaudette at gmail.com
Wed Aug 16 22:03:38 EDT 2006


On Wednesday 16 August 2006 17:28, Glynn Clements wrote:
> Dylan Beaudette wrote:
> > I have summarized three test cases here:
> > http://169.237.35.250/~dylan/temp/raster_sampling/
> >
> > 1. input raster extent > current region, resampling from 30m to 10m [ok]
> > 2. input raster extent < current region, resampling from 30m to 10m [not
> > ok] 3. input raster extent == current region, resampling from 30m to 10m
> > [ok]
> >
> > Note that for example 2, the summary from r.info suggests that there is
> > something wrong with indexing / overflowing :
> > !!!
> > min = -0.000000  max = 1356171748364289065433195553253
> >
> >
> > possibly something to do with dealing with NULL values, and extending the
> > region???
>
> Yes. I was only considering the bounds of the source map. I've updated
> it to set the source region to cover the destination region, plus
> neighbours.
>
> I've attached an updated version.

Great! I can confirm that it works as expected. Thanks Glynn for all of the 
hard work. Now we just have to decide what to call it, considering previous 
conversation of course.

cheers,

-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341




More information about the grass-user mailing list