GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-ab90c5e5a9
ref.c
Go to the documentation of this file.
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 /***********************************************************
15  * I_fopen_group_ref_new (group)
16  * I_fopen_group_ref_old (group)
17  *
18  * fopen() the imagery group reference file (containing the number
19  * of files and the names of the cell files which comprise
20  * the group)
21  **********************************************************/
22 
23 #include <grass/imagery.h>
24 
25 FILE *I_fopen_group_ref_new(const char *group)
26 {
27  return I_fopen_group_file_new(group, "REF");
28 }
29 
30 FILE *I_fopen_group_ref_old(const char *group)
31 {
32  return I_fopen_group_file_old(group, "REF");
33 }
34 
35 FILE *I_fopen_group_ref_old2(const char *group, const char *mapset)
36 {
37  return I_fopen_group_file_old2(group, mapset, "REF");
38 }
39 
40 /*
41  FILE *
42  I_fopen_group_ref_append (
43  const char *group)
44  {
45  return I_fopen_group_file_append (group, "REF");
46  }
47  */
48 
49 FILE *I_fopen_subgroup_ref_new(const char *group, const char *subgroup)
50 {
51  return I_fopen_subgroup_file_new(group, subgroup, "REF");
52 }
53 
54 FILE *I_fopen_subgroup_ref_old(const char *group, const char *subgroup)
55 {
56  FILE *fd;
57 
58  fd = I_fopen_subgroup_file_old(group, subgroup, "REF");
59  return fd;
60 }
61 
62 FILE *I_fopen_subgroup_ref_old2(const char *group, const char *subgroup,
63  const char *mapset)
64 {
65  FILE *fd;
66 
67  fd = I_fopen_subgroup_file_old2(group, subgroup, mapset, "REF");
68  return fd;
69 }
FILE * I_fopen_group_file_new(const char *, const char *)
Definition: fopen.c:69
FILE * I_fopen_subgroup_file_new(const char *, const char *, const char *)
Definition: fopen.c:123
FILE * I_fopen_subgroup_file_old(const char *, const char *, const char *)
Definition: fopen.c:167
FILE * I_fopen_group_file_old(const char *, const char *)
Open group file for reading.
Definition: fopen.c:102
FILE * I_fopen_group_file_old2(const char *, const char *, const char *)
Open group file for reading.
Definition: fopen.c:117
FILE * I_fopen_subgroup_file_old2(const char *, const char *, const char *, const char *)
Definition: fopen.c:173
FILE * I_fopen_group_ref_new(const char *group)
Definition: ref.c:25
FILE * I_fopen_subgroup_ref_new(const char *group, const char *subgroup)
Definition: ref.c:49
FILE * I_fopen_group_ref_old(const char *group)
Definition: ref.c:30
FILE * I_fopen_subgroup_ref_old2(const char *group, const char *subgroup, const char *mapset)
Definition: ref.c:62
FILE * I_fopen_group_ref_old2(const char *group, const char *mapset)
Definition: ref.c:35
FILE * I_fopen_subgroup_ref_old(const char *group, const char *subgroup)
Definition: ref.c:54