glob.h 1020 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /****************************************************************************
  2. *
  3. * MODULE: r.cross
  4. *
  5. * AUTHOR(S): Michael Shapiro - CERL
  6. *
  7. * PURPOSE: Creates a cross product of the category values from
  8. * multiple raster map layers.
  9. *
  10. * COPYRIGHT: (C) 2006 by the GRASS Development Team
  11. *
  12. * This program is free software under the GNU General Public
  13. * License (>=v2). Read the file COPYING that comes with GRASS
  14. * for details.
  15. *
  16. ***************************************************************************/
  17. #ifndef __R_CROSS_GLOB_H__
  18. #define __R_CROSS_GLOB_H__
  19. #include <grass/gis.h>
  20. #include <grass/raster.h>
  21. #define NFILES 30 /* maximum number of layers */
  22. extern int nfiles;
  23. extern int nrows;
  24. extern int ncols;
  25. extern const char *names[NFILES];
  26. extern struct Categories labels[NFILES];
  27. typedef struct
  28. {
  29. CELL *cat;
  30. CELL result;
  31. } RECLASS;
  32. extern RECLASS *reclass;
  33. extern CELL *table;
  34. #endif /* __R_CROSS_GLOB_H__ */