ref.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /****************************************************************************
  2. *
  3. * MODULE: imagery library
  4. * AUTHOR(S): Original author(s) name(s) unknown - written by CERL
  5. * PURPOSE: Image processing library
  6. * COPYRIGHT: (C) 1999, 2005 by the GRASS Development Team
  7. *
  8. * This program is free software under the GNU General Public
  9. * License (>=v2). Read the file COPYING that comes with GRASS
  10. * for details.
  11. *
  12. *****************************************************************************/
  13. /***********************************************************
  14. * I_fopen_group_ref_new (group)
  15. * I_fopen_group_ref_old (group)
  16. *
  17. * fopen() the imagery group reference file (containing the number
  18. * of files and the names of the cell files which comprise
  19. * the group)
  20. **********************************************************/
  21. #include <grass/imagery.h>
  22. FILE *I_fopen_group_ref_new(const char *group)
  23. {
  24. return I_fopen_group_file_new(group, "REF");
  25. }
  26. FILE *I_fopen_group_ref_old(const char *group)
  27. {
  28. return I_fopen_group_file_old(group, "REF");
  29. }
  30. FILE *I_fopen_group_ref_old2(const char *group, const char *mapset)
  31. {
  32. return I_fopen_group_file_old2(group, mapset, "REF");
  33. }
  34. /*
  35. FILE *
  36. I_fopen_group_ref_append (
  37. const char *group)
  38. {
  39. return I_fopen_group_file_append (group, "REF");
  40. }
  41. */
  42. FILE *I_fopen_subgroup_ref_new(const char *group, const char *subgroup)
  43. {
  44. return I_fopen_subgroup_file_new(group, subgroup, "REF");
  45. }
  46. FILE *I_fopen_subgroup_ref_old(const char *group, const char *subgroup)
  47. {
  48. FILE *fd;
  49. fd = I_fopen_subgroup_file_old(group, subgroup, "REF");
  50. return fd;
  51. }
  52. FILE *I_fopen_subgroup_ref_old2(const char *group, const char *subgroup, const char *mapset)
  53. {
  54. FILE *fd;
  55. fd = I_fopen_subgroup_file_old2(group, subgroup, mapset, "REF");
  56. return fd;
  57. }