Code for reading entire raster maps

Trond Rinde trond.rinde at
Mon May 4 07:46:21 EDT 1998


I have implemented a distributed hydrological model in GRASS. However, it runs 
pretty slow. I want to improve the efficiency by keeping rastermaps in their 
entirety in primary memory during simulation-runs, not only single rows at a 
time. Has anyone source code that shows how a raster map can be read in its 
entirety from disk and into a 2D array in computer memory.


Trond Rinde

Trond Rinde
Research Scientist
SINTEF - Civil and Environmental Engineering
Water Reseources Department
Klaebuveien 153
N-7034 Trondheim

tel:   +47 73 59 11 24
fax:   +47 73 59 02 01
email: trond.rinde at

More information about the grass-user mailing list