GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
sigfile.c File Reference

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

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

Go to the source code of this file.

Functions

FILE * I_fopen_signature_file_new (const char *name)
 Create signature file. More...
 
FILE * I_fopen_signature_file_old (const char *name)
 Open existing signature file. More...
 

Detailed Description

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

(C) 2001-2008, 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 sigfile.c.

Function Documentation

◆ I_fopen_signature_file_new()

FILE* I_fopen_signature_file_new ( const char *  name)

Create signature file.

Returns a pointer to FILE for writing signature file. Use fclose on the pointer to close after use.

Parameters
namesignature filename
Returns
pointer to FILE
NULL on error

Definition at line 28 of file sigfile.c.

References G_fopen_new_misc(), GNAME_MAX, I_get_signatures_dir(), I_make_signatures_dir(), and I_SIGFILE_TYPE_SIG.

◆ I_fopen_signature_file_old()

FILE* I_fopen_signature_file_old ( const char *  name)

Open existing signature file.

Use fully qualified names for signatures from other mapsets.

Returns a pointer to FILE with signature. Use fclose on the pointer after use.

Parameters
namesignature filename
Returns
pointer to FILE
NULL on error

Definition at line 54 of file sigfile.c.

References G_fopen_old_misc(), G_mapset(), G_unqualified_name(), GMAPSET_MAX, GNAME_MAX, I_get_signatures_dir(), I_SIGFILE_TYPE_SIG, and NULL.