[GRASS-dev] using rand(x,y) in r.mapcalc (grass7)

Glynn Clements glynn at gclements.plus.com
Wed Jul 23 13:33:27 PDT 2014


Anna Petrášová wrote:

> I wonder if there are any modules in core or addons which need to be
> updated.

The following are candidates for conversion:

lib/gmath/rand1.c                                drand48
raster/r.random/creat_rand.c                     lrand48
vector/v.kcv/main.c                              drand48
vector/v.random/main.c                           drand48

lib/raster/color_rand.c                          rand
imagery/i.ortho.photo/i.ortho.rectify/readcell.c rand
imagery/i.rectify/readcell.c                     rand
raster/r.proj/readcell.c                         rand
raster/r.spread/pick_dist.c                      rand
raster/r.spread/pick_ignite.c                    rand
vector/v.kcv/main.c                              rand
vector/v.qcount/findquads.c                      rand
vector/v.random/main.c                           rand

r.proj probably doesn't matter, as rand() is only used to choose which
block to eject from the cache, so it shouldn't have any effect upon
the end result.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list