GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-f8115df121
sigsetfile.c File Reference

Imagery Library - Signature file functions (statistics for i.smap) More...

#include <string.h>
#include <grass/gis.h>
#include <grass/imagery.h>
#include <grass/glocale.h>
Include dependency graph for sigsetfile.c:

Go to the source code of this file.

Functions

FILE * I_fopen_sigset_file_new (const char *name)
 Create new sigset file. More...
 
FILE * I_fopen_sigset_file_old (const char *name)
 Open existing sigset signature file. More...
 

Detailed Description

Imagery Library - Signature file functions (statistics for i.smap)

(C) 2001-2011, 2013, 2021 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
USA CERL

Definition in file sigsetfile.c.

Function Documentation

◆ I_fopen_sigset_file_new()

FILE* I_fopen_sigset_file_new ( const char *  name)

Create new sigset file.

Parameters
namename of sigset file
Returns
pointer to FILE
NULL on error

Definition at line 28 of file sigsetfile.c.

References G_fopen_new_misc(), GNAME_MAX, I_get_signatures_dir(), I_make_signatures_dir(), I_SIGFILE_TYPE_SIGSET, and name.

◆ I_fopen_sigset_file_old()

FILE* I_fopen_sigset_file_old ( const char *  name)

Open existing sigset signature file.

Parameters
namename of signature file (may be fully qualified)
Returns
pointer to FILE*
NULL on error

Definition at line 50 of file sigsetfile.c.

References G_fopen_old_misc(), G_mapset(), G_unqualified_name(), GMAPSET_MAX, GNAME_MAX, I_get_signatures_dir(), I_SIGFILE_TYPE_SIGSET, name, NULL, and strcpy.