ref.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. /*
  31. FILE *
  32. I_fopen_group_ref_append (
  33. const char *group)
  34. {
  35. return I_fopen_group_file_append (group, "REF");
  36. }
  37. */
  38. FILE *I_fopen_subgroup_ref_new(const char *group, const char *subgroup)
  39. {
  40. return I_fopen_subgroup_file_new(group, subgroup, "REF");
  41. }
  42. FILE *I_fopen_subgroup_ref_old(const char *group, const char *subgroup)
  43. {
  44. FILE *fd;
  45. fd = I_fopen_subgroup_file_old(group, subgroup, "REF");
  46. return fd;
  47. }