ref.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 *
  23. I_fopen_group_ref_new (
  24. const char *group)
  25. {
  26. return I_fopen_group_file_new (group, "REF");
  27. }
  28. FILE *
  29. I_fopen_group_ref_old (
  30. const char *group)
  31. {
  32. return I_fopen_group_file_old (group, "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 *
  43. I_fopen_subgroup_ref_new (
  44. const char *group,
  45. const char *subgroup)
  46. {
  47. return I_fopen_subgroup_file_new (group, subgroup, "REF");
  48. }
  49. FILE *
  50. I_fopen_subgroup_ref_old (
  51. const char *group,
  52. const char *subgroup)
  53. {
  54. FILE *fd;
  55. fd = I_fopen_subgroup_file_old (group, subgroup, "REF");
  56. return fd;
  57. }