[GRASSLIST:4746] best command for operation?

Jeff D. Hamann jeff_hamann at hamanndonald.com
Tue Oct 15 14:07:59 EDT 2002


I've got a few (about five say) raster files that I need to combine into a
fuels model layer, such that the cells will contain categories (0-14,
etc)...

I have a raster file for slope, aspect, elev, veg type, etc....

I need to perform calcs like:

    if( elev > 3000 && slope > 40 pct && aspect >= 90 && aspect < 270 )
    {
        fuel_model = high alt fuel model
    }

    if( elev <= 3000 && slope > 40 pct && aspect >= 90 && aspect < 270 )
    {
        fuel_model = low alt fuel model
    }

I'm using GRASSpre4 on cygwin, win2k, and can write C code just fine. Should
be using r.combine, r.mapcalc, or write some C code (using a lib that I can
read/write GRASS files independently of GRASS) to perform this task.

If there's anybody that uses GRASS for fire modelling I would very much like
to get your input.

Thanks,
Jeff.


Jeff D. Hamann
Hamann, Donald & Associates, Inc.
PO Box 1421
Corvallis, Oregon USA 97339-1421
Bus. 541-753-7333
Cell. 541-740-5988
jeff_hamann at hamanndonald.com
www.hamanndonald.com



More information about the grass-user mailing list