option.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /****************************************************************************
  2. *
  3. * MODULE: r.terraflow
  4. *
  5. * COPYRIGHT (C) 2007 Laura Toma
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. *****************************************************************************/
  18. #ifndef option__h
  19. #define option__h
  20. #define OUTPUT_TCI
  21. /* #define SAVE_ASCII */
  22. typedef struct {
  23. char* elev_grid; /* name of input elevation grid */
  24. char* filled_grid; /* name of output filled elevation grid */
  25. char* dir_grid; /* name of output direction grid */
  26. char* watershed_grid;/* name of output watershed grid */
  27. char* flowaccu_grid; /* name of output flow accumulation grid */
  28. #ifdef OUTPUT_TCI
  29. char* tci_grid;
  30. #endif
  31. int d8; /* 1 if d8 flow model, 0 otherwise */
  32. float d8cut; /* flow value where flow accu comp switches to D8 */
  33. int mem; /* main memory, in MB */
  34. char* streamdir; /* location of temposary STREAMs */
  35. char* stats; /* stats file */
  36. int verbose; /* 1 if verbose, 0 otherwise */
  37. } userOptions;
  38. #endif