coin.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /****************************************************************************
  2. *
  3. * MODULE: r.coin
  4. *
  5. * AUTHOR(S): Michael O'Shea - CERL
  6. * Michael Shapiro - CERL
  7. *
  8. * PURPOSE: Calculates the coincidence of two 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 __COIN_H__
  18. #define __COIN_H__
  19. #include <grass/gis.h>
  20. struct stats_table
  21. {
  22. long count;
  23. double area;
  24. };
  25. extern struct Cell_head window;
  26. extern const char *title1, *title2;
  27. extern double window_cells;
  28. extern double window_area;
  29. extern struct stats_table *table;
  30. extern long *catlist1, *catlist2;
  31. extern int no_data1, no_data2;
  32. extern int Rndex, Cndex;
  33. extern const char *dumpname;
  34. extern const char *statname;
  35. extern FILE *dumpfile;
  36. extern const char *map1name, *map2name;
  37. extern int ncat1, ncat2;
  38. extern char *fill, *midline;
  39. /* check.c */
  40. int check_report_size(void);
  41. /* format.c */
  42. int format_double(double, char *, int);
  43. /* inter.c */
  44. int interactive_version(void);
  45. /* make_coin.c */
  46. int make_coin(void);
  47. int collapse(long *, int);
  48. /* print_coin.c */
  49. int print_coin(int, int, int);
  50. /* print_hdr.c */
  51. int print_coin_hdr(int);
  52. /* prnt_entry.c */
  53. int print_entry(int, long, double);
  54. int print_area(double);
  55. int print_percent(double);
  56. /* totals.c */
  57. int row_total(int, int, long *, double *);
  58. int col_total(int, int, long *, double *);
  59. #endif /* __COIN_H__ */