'''Wrapper for imagery.h

Generated with:
./ctypesgen.py --cpp gcc -E -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64     -I/build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include -I/build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include -D__GLIBC_HAVE_LONG_LONG -lgrass_imagery.7.2.0 /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h -o OBJ.i686-pc-linux-gnu/imagery.py

Do not modify this file.
'''

__docformat__ = 'restructuredtext'


_libs = {}
_libdirs = []

from .ctypes_preamble import *
from .ctypes_preamble import _variadic_function
from .ctypes_loader import *

add_library_search_dirs([])

# Begin libraries

_libs["grass_imagery.7.2.0"] = load_library("grass_imagery.7.2.0")

# 1 libraries
# End libraries

# No modules

__quad_t = c_longlong # /usr/include/bits/types.h: 55

__off_t = c_long # /usr/include/bits/types.h: 131

__off64_t = __quad_t # /usr/include/bits/types.h: 132

# /usr/include/libio.h: 241
class struct__IO_FILE(Structure):
    pass

FILE = struct__IO_FILE # /usr/include/stdio.h: 48

_IO_lock_t = None # /usr/include/libio.h: 150

# /usr/include/libio.h: 156
class struct__IO_marker(Structure):
    pass

struct__IO_marker.__slots__ = [
    '_next',
    '_sbuf',
    '_pos',
]
struct__IO_marker._fields_ = [
    ('_next', POINTER(struct__IO_marker)),
    ('_sbuf', POINTER(struct__IO_FILE)),
    ('_pos', c_int),
]

struct__IO_FILE.__slots__ = [
    '_flags',
    '_IO_read_ptr',
    '_IO_read_end',
    '_IO_read_base',
    '_IO_write_base',
    '_IO_write_ptr',
    '_IO_write_end',
    '_IO_buf_base',
    '_IO_buf_end',
    '_IO_save_base',
    '_IO_backup_base',
    '_IO_save_end',
    '_markers',
    '_chain',
    '_fileno',
    '_flags2',
    '_old_offset',
    '_cur_column',
    '_vtable_offset',
    '_shortbuf',
    '_lock',
    '_offset',
    '__pad1',
    '__pad2',
    '__pad3',
    '__pad4',
    '__pad5',
    '_mode',
    '_unused2',
]
struct__IO_FILE._fields_ = [
    ('_flags', c_int),
    ('_IO_read_ptr', String),
    ('_IO_read_end', String),
    ('_IO_read_base', String),
    ('_IO_write_base', String),
    ('_IO_write_ptr', String),
    ('_IO_write_end', String),
    ('_IO_buf_base', String),
    ('_IO_buf_end', String),
    ('_IO_save_base', String),
    ('_IO_backup_base', String),
    ('_IO_save_end', String),
    ('_markers', POINTER(struct__IO_marker)),
    ('_chain', POINTER(struct__IO_FILE)),
    ('_fileno', c_int),
    ('_flags2', c_int),
    ('_old_offset', __off_t),
    ('_cur_column', c_ushort),
    ('_vtable_offset', c_char),
    ('_shortbuf', c_char * 1),
    ('_lock', POINTER(_IO_lock_t)),
    ('_offset', __off64_t),
    ('__pad1', POINTER(None)),
    ('__pad2', POINTER(None)),
    ('__pad3', POINTER(None)),
    ('__pad4', POINTER(None)),
    ('__pad5', c_size_t),
    ('_mode', c_int),
    ('_unused2', c_char * (((15 * sizeof(c_int)) - (4 * sizeof(POINTER(None)))) - sizeof(c_size_t))),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/gis.h: 389
class struct_Cell_head(Structure):
    pass

struct_Cell_head.__slots__ = [
    'format',
    'compressed',
    'rows',
    'rows3',
    'cols',
    'cols3',
    'depths',
    'proj',
    'zone',
    'ew_res',
    'ew_res3',
    'ns_res',
    'ns_res3',
    'tb_res',
    'north',
    'south',
    'east',
    'west',
    'top',
    'bottom',
]
struct_Cell_head._fields_ = [
    ('format', c_int),
    ('compressed', c_int),
    ('rows', c_int),
    ('rows3', c_int),
    ('cols', c_int),
    ('cols3', c_int),
    ('depths', c_int),
    ('proj', c_int),
    ('zone', c_int),
    ('ew_res', c_double),
    ('ew_res3', c_double),
    ('ns_res', c_double),
    ('ns_res3', c_double),
    ('tb_res', c_double),
    ('north', c_double),
    ('south', c_double),
    ('east', c_double),
    ('west', c_double),
    ('top', c_double),
    ('bottom', c_double),
]

CELL = c_int # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/gis.h: 578

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 10
class struct_Ref_Color(Structure):
    pass

struct_Ref_Color.__slots__ = [
    'table',
    'index',
    'buf',
    'fd',
    'min',
    'max',
    'n',
]
struct_Ref_Color._fields_ = [
    ('table', POINTER(c_ubyte)),
    ('index', POINTER(c_ubyte)),
    ('buf', POINTER(c_ubyte)),
    ('fd', c_int),
    ('min', CELL),
    ('max', CELL),
    ('n', c_int),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 20
class struct_Ref_Files(Structure):
    pass

struct_Ref_Files.__slots__ = [
    'name',
    'mapset',
]
struct_Ref_Files._fields_ = [
    ('name', c_char * 256),
    ('mapset', c_char * 256),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 26
class struct_Ref(Structure):
    pass

struct_Ref.__slots__ = [
    'nfiles',
    'file',
    'red',
    'grn',
    'blu',
]
struct_Ref._fields_ = [
    ('nfiles', c_int),
    ('file', POINTER(struct_Ref_Files)),
    ('red', struct_Ref_Color),
    ('grn', struct_Ref_Color),
    ('blu', struct_Ref_Color),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 33
class struct_Tape_Info(Structure):
    pass

struct_Tape_Info.__slots__ = [
    'title',
    'id',
    'desc',
]
struct_Tape_Info._fields_ = [
    ('title', c_char * 75),
    ('id', (c_char * 75) * 2),
    ('desc', (c_char * 75) * 5),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 40
class struct_Control_Points(Structure):
    pass

struct_Control_Points.__slots__ = [
    'count',
    'e1',
    'n1',
    'e2',
    'n2',
    'status',
]
struct_Control_Points._fields_ = [
    ('count', c_int),
    ('e1', POINTER(c_double)),
    ('n1', POINTER(c_double)),
    ('e2', POINTER(c_double)),
    ('n2', POINTER(c_double)),
    ('status', POINTER(c_int)),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 50
class struct_One_Sig(Structure):
    pass

struct_One_Sig.__slots__ = [
    'desc',
    'npoints',
    'mean',
    'var',
    'status',
    'r',
    'g',
    'b',
    'have_color',
]
struct_One_Sig._fields_ = [
    ('desc', c_char * 100),
    ('npoints', c_int),
    ('mean', POINTER(c_double)),
    ('var', POINTER(POINTER(c_double))),
    ('status', c_int),
    ('r', c_float),
    ('g', c_float),
    ('b', c_float),
    ('have_color', c_int),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 61
class struct_Signature(Structure):
    pass

struct_Signature.__slots__ = [
    'nbands',
    'nsigs',
    'title',
    'sig',
]
struct_Signature._fields_ = [
    ('nbands', c_int),
    ('nsigs', c_int),
    ('title', c_char * 100),
    ('sig', POINTER(struct_One_Sig)),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 69
class struct_SubSig(Structure):
    pass

struct_SubSig.__slots__ = [
    'N',
    'pi',
    'means',
    'R',
    'Rinv',
    'cnst',
    'used',
]
struct_SubSig._fields_ = [
    ('N', c_double),
    ('pi', c_double),
    ('means', POINTER(c_double)),
    ('R', POINTER(POINTER(c_double))),
    ('Rinv', POINTER(POINTER(c_double))),
    ('cnst', c_double),
    ('used', c_int),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 80
class struct_ClassData(Structure):
    pass

struct_ClassData.__slots__ = [
    'npixels',
    'count',
    'x',
    'p',
]
struct_ClassData._fields_ = [
    ('npixels', c_int),
    ('count', c_int),
    ('x', POINTER(POINTER(c_double))),
    ('p', POINTER(POINTER(c_double))),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 88
class struct_ClassSig(Structure):
    pass

struct_ClassSig.__slots__ = [
    'classnum',
    'title',
    'used',
    'type',
    'nsubclasses',
    'SubSig',
    'ClassData',
]
struct_ClassSig._fields_ = [
    ('classnum', c_long),
    ('title', String),
    ('used', c_int),
    ('type', c_int),
    ('nsubclasses', c_int),
    ('SubSig', POINTER(struct_SubSig)),
    ('ClassData', struct_ClassData),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 99
class struct_SigSet(Structure):
    pass

struct_SigSet.__slots__ = [
    'nbands',
    'nclasses',
    'title',
    'ClassSig',
]
struct_SigSet._fields_ = [
    ('nbands', c_int),
    ('nclasses', c_int),
    ('title', String),
    ('ClassSig', POINTER(struct_ClassSig)),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 136
class struct_anon_24(Structure):
    pass

struct_anon_24.__slots__ = [
    'cat',
    'name',
    'color',
    'nbands',
    'ncells',
    'band_min',
    'band_max',
    'band_sum',
    'band_mean',
    'band_stddev',
    'band_product',
    'band_histo',
    'band_range_min',
    'band_range_max',
    'nstd',
]
struct_anon_24._fields_ = [
    ('cat', c_int),
    ('name', String),
    ('color', String),
    ('nbands', c_int),
    ('ncells', c_int),
    ('band_min', POINTER(c_int)),
    ('band_max', POINTER(c_int)),
    ('band_sum', POINTER(c_float)),
    ('band_mean', POINTER(c_float)),
    ('band_stddev', POINTER(c_float)),
    ('band_product', POINTER(POINTER(c_float))),
    ('band_histo', POINTER(POINTER(c_int))),
    ('band_range_min', POINTER(c_int)),
    ('band_range_max', POINTER(c_int)),
    ('nstd', c_float),
]

IClass_statistics = struct_anon_24 # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 136

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 169
class struct_scScatts(Structure):
    pass

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 147
class struct_scCats(Structure):
    pass

struct_scCats.__slots__ = [
    'type',
    'n_cats',
    'n_bands',
    'n_scatts',
    'n_a_cats',
    'cats_ids',
    'cats_idxs',
    'cats_arr',
]
struct_scCats._fields_ = [
    ('type', c_int),
    ('n_cats', c_int),
    ('n_bands', c_int),
    ('n_scatts', c_int),
    ('n_a_cats', c_int),
    ('cats_ids', POINTER(c_int)),
    ('cats_idxs', POINTER(c_int)),
    ('cats_arr', POINTER(POINTER(struct_scScatts))),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 184
class struct_scdScattData(Structure):
    pass

struct_scScatts.__slots__ = [
    'n_a_scatts',
    'scatts_bands',
    'scatt_idxs',
    'scatts_arr',
]
struct_scScatts._fields_ = [
    ('n_a_scatts', c_int),
    ('scatts_bands', POINTER(c_int)),
    ('scatt_idxs', POINTER(c_int)),
    ('scatts_arr', POINTER(POINTER(struct_scdScattData))),
]

struct_scdScattData.__slots__ = [
    'n_vals',
    'b_conds_arr',
    'scatt_vals_arr',
]
struct_scdScattData._fields_ = [
    ('n_vals', c_int),
    ('b_conds_arr', POINTER(c_ubyte)),
    ('scatt_vals_arr', POINTER(c_uint)),
]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 5
if hasattr(_libs['grass_imagery.7.2.0'], 'I_malloc'):
    I_malloc = _libs['grass_imagery.7.2.0'].I_malloc
    I_malloc.restype = POINTER(None)
    I_malloc.argtypes = [c_size_t]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 6
if hasattr(_libs['grass_imagery.7.2.0'], 'I_realloc'):
    I_realloc = _libs['grass_imagery.7.2.0'].I_realloc
    I_realloc.restype = POINTER(None)
    I_realloc.argtypes = [POINTER(None), c_size_t]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 7
if hasattr(_libs['grass_imagery.7.2.0'], 'I_free'):
    I_free = _libs['grass_imagery.7.2.0'].I_free
    I_free.restype = c_int
    I_free.argtypes = [POINTER(None)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 8
if hasattr(_libs['grass_imagery.7.2.0'], 'I_alloc_double2'):
    I_alloc_double2 = _libs['grass_imagery.7.2.0'].I_alloc_double2
    I_alloc_double2.restype = POINTER(POINTER(c_double))
    I_alloc_double2.argtypes = [c_int, c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 9
if hasattr(_libs['grass_imagery.7.2.0'], 'I_alloc_int'):
    I_alloc_int = _libs['grass_imagery.7.2.0'].I_alloc_int
    I_alloc_int.restype = POINTER(c_int)
    I_alloc_int.argtypes = [c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 10
if hasattr(_libs['grass_imagery.7.2.0'], 'I_alloc_int2'):
    I_alloc_int2 = _libs['grass_imagery.7.2.0'].I_alloc_int2
    I_alloc_int2.restype = POINTER(POINTER(c_int))
    I_alloc_int2.argtypes = [c_int, c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 11
if hasattr(_libs['grass_imagery.7.2.0'], 'I_free_int2'):
    I_free_int2 = _libs['grass_imagery.7.2.0'].I_free_int2
    I_free_int2.restype = c_int
    I_free_int2.argtypes = [POINTER(POINTER(c_int))]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 12
if hasattr(_libs['grass_imagery.7.2.0'], 'I_free_double2'):
    I_free_double2 = _libs['grass_imagery.7.2.0'].I_free_double2
    I_free_double2.restype = c_int
    I_free_double2.argtypes = [POINTER(POINTER(c_double))]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 13
if hasattr(_libs['grass_imagery.7.2.0'], 'I_alloc_double3'):
    I_alloc_double3 = _libs['grass_imagery.7.2.0'].I_alloc_double3
    I_alloc_double3.restype = POINTER(POINTER(POINTER(c_double)))
    I_alloc_double3.argtypes = [c_int, c_int, c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 14
if hasattr(_libs['grass_imagery.7.2.0'], 'I_free_double3'):
    I_free_double3 = _libs['grass_imagery.7.2.0'].I_free_double3
    I_free_double3.restype = c_int
    I_free_double3.argtypes = [POINTER(POINTER(POINTER(c_double)))]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 17
if hasattr(_libs['grass_imagery.7.2.0'], 'I_get_to_eol'):
    I_get_to_eol = _libs['grass_imagery.7.2.0'].I_get_to_eol
    I_get_to_eol.restype = c_int
    I_get_to_eol.argtypes = [String, c_int, POINTER(FILE)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 20
if hasattr(_libs['grass_imagery.7.2.0'], 'I_find_group'):
    I_find_group = _libs['grass_imagery.7.2.0'].I_find_group
    I_find_group.restype = c_int
    I_find_group.argtypes = [String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 21
if hasattr(_libs['grass_imagery.7.2.0'], 'I_find_group_file'):
    I_find_group_file = _libs['grass_imagery.7.2.0'].I_find_group_file
    I_find_group_file.restype = c_int
    I_find_group_file.argtypes = [String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 22
if hasattr(_libs['grass_imagery.7.2.0'], 'I_find_subgroup'):
    I_find_subgroup = _libs['grass_imagery.7.2.0'].I_find_subgroup
    I_find_subgroup.restype = c_int
    I_find_subgroup.argtypes = [String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 23
if hasattr(_libs['grass_imagery.7.2.0'], 'I_find_subgroup_file'):
    I_find_subgroup_file = _libs['grass_imagery.7.2.0'].I_find_subgroup_file
    I_find_subgroup_file.restype = c_int
    I_find_subgroup_file.argtypes = [String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 24
if hasattr(_libs['grass_imagery.7.2.0'], 'I_find_signature_file'):
    I_find_signature_file = _libs['grass_imagery.7.2.0'].I_find_signature_file
    I_find_signature_file.restype = c_int
    I_find_signature_file.argtypes = [String, String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 27
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_group_file_new'):
    I_fopen_group_file_new = _libs['grass_imagery.7.2.0'].I_fopen_group_file_new
    I_fopen_group_file_new.restype = POINTER(FILE)
    I_fopen_group_file_new.argtypes = [String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 28
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_group_file_append'):
    I_fopen_group_file_append = _libs['grass_imagery.7.2.0'].I_fopen_group_file_append
    I_fopen_group_file_append.restype = POINTER(FILE)
    I_fopen_group_file_append.argtypes = [String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 29
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_group_file_old'):
    I_fopen_group_file_old = _libs['grass_imagery.7.2.0'].I_fopen_group_file_old
    I_fopen_group_file_old.restype = POINTER(FILE)
    I_fopen_group_file_old.argtypes = [String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 30
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_subgroup_file_new'):
    I_fopen_subgroup_file_new = _libs['grass_imagery.7.2.0'].I_fopen_subgroup_file_new
    I_fopen_subgroup_file_new.restype = POINTER(FILE)
    I_fopen_subgroup_file_new.argtypes = [String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 31
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_subgroup_file_append'):
    I_fopen_subgroup_file_append = _libs['grass_imagery.7.2.0'].I_fopen_subgroup_file_append
    I_fopen_subgroup_file_append.restype = POINTER(FILE)
    I_fopen_subgroup_file_append.argtypes = [String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 32
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_subgroup_file_old'):
    I_fopen_subgroup_file_old = _libs['grass_imagery.7.2.0'].I_fopen_subgroup_file_old
    I_fopen_subgroup_file_old.restype = POINTER(FILE)
    I_fopen_subgroup_file_old.argtypes = [String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 35
if hasattr(_libs['grass_imagery.7.2.0'], 'I_compute_georef_equations'):
    I_compute_georef_equations = _libs['grass_imagery.7.2.0'].I_compute_georef_equations
    I_compute_georef_equations.restype = c_int
    I_compute_georef_equations.argtypes = [POINTER(struct_Control_Points), POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double), c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 37
if hasattr(_libs['grass_imagery.7.2.0'], 'I_georef'):
    I_georef = _libs['grass_imagery.7.2.0'].I_georef
    I_georef.restype = c_int
    I_georef.argtypes = [c_double, c_double, POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double), c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 40
if hasattr(_libs['grass_imagery.7.2.0'], 'I_compute_georef_equations_tps'):
    I_compute_georef_equations_tps = _libs['grass_imagery.7.2.0'].I_compute_georef_equations_tps
    I_compute_georef_equations_tps.restype = c_int
    I_compute_georef_equations_tps.argtypes = [POINTER(struct_Control_Points), POINTER(POINTER(c_double)), POINTER(POINTER(c_double)), POINTER(POINTER(c_double)), POINTER(POINTER(c_double))]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 42
if hasattr(_libs['grass_imagery.7.2.0'], 'I_georef_tps'):
    I_georef_tps = _libs['grass_imagery.7.2.0'].I_georef_tps
    I_georef_tps.restype = c_int
    I_georef_tps.argtypes = [c_double, c_double, POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(struct_Control_Points), c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 46
if hasattr(_libs['grass_imagery.7.2.0'], 'I_get_group'):
    I_get_group = _libs['grass_imagery.7.2.0'].I_get_group
    I_get_group.restype = c_int
    I_get_group.argtypes = [String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 47
if hasattr(_libs['grass_imagery.7.2.0'], 'I_put_group'):
    I_put_group = _libs['grass_imagery.7.2.0'].I_put_group
    I_put_group.restype = c_int
    I_put_group.argtypes = [String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 48
if hasattr(_libs['grass_imagery.7.2.0'], 'I_get_subgroup'):
    I_get_subgroup = _libs['grass_imagery.7.2.0'].I_get_subgroup
    I_get_subgroup.restype = c_int
    I_get_subgroup.argtypes = [String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 49
if hasattr(_libs['grass_imagery.7.2.0'], 'I_put_subgroup'):
    I_put_subgroup = _libs['grass_imagery.7.2.0'].I_put_subgroup
    I_put_subgroup.restype = c_int
    I_put_subgroup.argtypes = [String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 50
if hasattr(_libs['grass_imagery.7.2.0'], 'I_get_group_ref'):
    I_get_group_ref = _libs['grass_imagery.7.2.0'].I_get_group_ref
    I_get_group_ref.restype = c_int
    I_get_group_ref.argtypes = [String, POINTER(struct_Ref)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 51
if hasattr(_libs['grass_imagery.7.2.0'], 'I_get_subgroup_ref'):
    I_get_subgroup_ref = _libs['grass_imagery.7.2.0'].I_get_subgroup_ref
    I_get_subgroup_ref.restype = c_int
    I_get_subgroup_ref.argtypes = [String, String, POINTER(struct_Ref)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 52
if hasattr(_libs['grass_imagery.7.2.0'], 'I_init_ref_color_nums'):
    I_init_ref_color_nums = _libs['grass_imagery.7.2.0'].I_init_ref_color_nums
    I_init_ref_color_nums.restype = c_int
    I_init_ref_color_nums.argtypes = [POINTER(struct_Ref)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 53
if hasattr(_libs['grass_imagery.7.2.0'], 'I_put_group_ref'):
    I_put_group_ref = _libs['grass_imagery.7.2.0'].I_put_group_ref
    I_put_group_ref.restype = c_int
    I_put_group_ref.argtypes = [String, POINTER(struct_Ref)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 54
if hasattr(_libs['grass_imagery.7.2.0'], 'I_put_subgroup_ref'):
    I_put_subgroup_ref = _libs['grass_imagery.7.2.0'].I_put_subgroup_ref
    I_put_subgroup_ref.restype = c_int
    I_put_subgroup_ref.argtypes = [String, String, POINTER(struct_Ref)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 55
if hasattr(_libs['grass_imagery.7.2.0'], 'I_add_file_to_group_ref'):
    I_add_file_to_group_ref = _libs['grass_imagery.7.2.0'].I_add_file_to_group_ref
    I_add_file_to_group_ref.restype = c_int
    I_add_file_to_group_ref.argtypes = [String, String, POINTER(struct_Ref)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 56
if hasattr(_libs['grass_imagery.7.2.0'], 'I_transfer_group_ref_file'):
    I_transfer_group_ref_file = _libs['grass_imagery.7.2.0'].I_transfer_group_ref_file
    I_transfer_group_ref_file.restype = c_int
    I_transfer_group_ref_file.argtypes = [POINTER(struct_Ref), c_int, POINTER(struct_Ref)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 57
if hasattr(_libs['grass_imagery.7.2.0'], 'I_init_group_ref'):
    I_init_group_ref = _libs['grass_imagery.7.2.0'].I_init_group_ref
    I_init_group_ref.restype = c_int
    I_init_group_ref.argtypes = [POINTER(struct_Ref)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 58
if hasattr(_libs['grass_imagery.7.2.0'], 'I_free_group_ref'):
    I_free_group_ref = _libs['grass_imagery.7.2.0'].I_free_group_ref
    I_free_group_ref.restype = c_int
    I_free_group_ref.argtypes = [POINTER(struct_Ref)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 61
class struct_Map_info(Structure):
    pass

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 62
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_analysis'):
    I_iclass_analysis = _libs['grass_imagery.7.2.0'].I_iclass_analysis
    I_iclass_analysis.restype = c_int
    I_iclass_analysis.argtypes = [POINTER(IClass_statistics), POINTER(struct_Ref), POINTER(struct_Map_info), String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 63
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_init_group'):
    I_iclass_init_group = _libs['grass_imagery.7.2.0'].I_iclass_init_group
    I_iclass_init_group.restype = c_int
    I_iclass_init_group.argtypes = [String, String, POINTER(struct_Ref)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 64
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_create_raster'):
    I_iclass_create_raster = _libs['grass_imagery.7.2.0'].I_iclass_create_raster
    I_iclass_create_raster.restype = None
    I_iclass_create_raster.argtypes = [POINTER(IClass_statistics), POINTER(struct_Ref), String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 67
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_nbands'):
    I_iclass_statistics_get_nbands = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_nbands
    I_iclass_statistics_get_nbands.restype = None
    I_iclass_statistics_get_nbands.argtypes = [POINTER(IClass_statistics), POINTER(c_int)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 68
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_cat'):
    I_iclass_statistics_get_cat = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_cat
    I_iclass_statistics_get_cat.restype = None
    I_iclass_statistics_get_cat.argtypes = [POINTER(IClass_statistics), POINTER(c_int)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 69
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_name'):
    I_iclass_statistics_get_name = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_name
    I_iclass_statistics_get_name.restype = None
    I_iclass_statistics_get_name.argtypes = [POINTER(IClass_statistics), POINTER(POINTER(c_char))]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 70
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_color'):
    I_iclass_statistics_get_color = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_color
    I_iclass_statistics_get_color.restype = None
    I_iclass_statistics_get_color.argtypes = [POINTER(IClass_statistics), POINTER(POINTER(c_char))]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 71
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_ncells'):
    I_iclass_statistics_get_ncells = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_ncells
    I_iclass_statistics_get_ncells.restype = None
    I_iclass_statistics_get_ncells.argtypes = [POINTER(IClass_statistics), POINTER(c_int)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 72
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_max'):
    I_iclass_statistics_get_max = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_max
    I_iclass_statistics_get_max.restype = c_int
    I_iclass_statistics_get_max.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_int)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 73
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_range_max'):
    I_iclass_statistics_get_range_max = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_range_max
    I_iclass_statistics_get_range_max.restype = c_int
    I_iclass_statistics_get_range_max.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_int)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 74
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_min'):
    I_iclass_statistics_get_min = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_min
    I_iclass_statistics_get_min.restype = c_int
    I_iclass_statistics_get_min.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_int)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 75
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_range_min'):
    I_iclass_statistics_get_range_min = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_range_min
    I_iclass_statistics_get_range_min.restype = c_int
    I_iclass_statistics_get_range_min.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_int)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 76
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_sum'):
    I_iclass_statistics_get_sum = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_sum
    I_iclass_statistics_get_sum.restype = c_int
    I_iclass_statistics_get_sum.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_float)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 77
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_mean'):
    I_iclass_statistics_get_mean = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_mean
    I_iclass_statistics_get_mean.restype = c_int
    I_iclass_statistics_get_mean.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_float)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 78
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_stddev'):
    I_iclass_statistics_get_stddev = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_stddev
    I_iclass_statistics_get_stddev.restype = c_int
    I_iclass_statistics_get_stddev.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_float)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 79
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_nstd'):
    I_iclass_statistics_get_nstd = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_nstd
    I_iclass_statistics_get_nstd.restype = None
    I_iclass_statistics_get_nstd.argtypes = [POINTER(IClass_statistics), POINTER(c_float)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 80
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_set_nstd'):
    I_iclass_statistics_set_nstd = _libs['grass_imagery.7.2.0'].I_iclass_statistics_set_nstd
    I_iclass_statistics_set_nstd.restype = None
    I_iclass_statistics_set_nstd.argtypes = [POINTER(IClass_statistics), c_float]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 81
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_histo'):
    I_iclass_statistics_get_histo = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_histo
    I_iclass_statistics_get_histo.restype = c_int
    I_iclass_statistics_get_histo.argtypes = [POINTER(IClass_statistics), c_int, c_int, POINTER(c_int)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 82
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_statistics_get_product'):
    I_iclass_statistics_get_product = _libs['grass_imagery.7.2.0'].I_iclass_statistics_get_product
    I_iclass_statistics_get_product.restype = c_int
    I_iclass_statistics_get_product.argtypes = [POINTER(IClass_statistics), c_int, c_int, POINTER(c_float)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 83
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_init_statistics'):
    I_iclass_init_statistics = _libs['grass_imagery.7.2.0'].I_iclass_init_statistics
    I_iclass_init_statistics.restype = None
    I_iclass_init_statistics.argtypes = [POINTER(IClass_statistics), c_int, String, String, c_float]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 84
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_free_statistics'):
    I_iclass_free_statistics = _libs['grass_imagery.7.2.0'].I_iclass_free_statistics
    I_iclass_free_statistics.restype = None
    I_iclass_free_statistics.argtypes = [POINTER(IClass_statistics)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 87
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_init_signatures'):
    I_iclass_init_signatures = _libs['grass_imagery.7.2.0'].I_iclass_init_signatures
    I_iclass_init_signatures.restype = c_int
    I_iclass_init_signatures.argtypes = [POINTER(struct_Signature), POINTER(struct_Ref)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 88
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_add_signature'):
    I_iclass_add_signature = _libs['grass_imagery.7.2.0'].I_iclass_add_signature
    I_iclass_add_signature.restype = None
    I_iclass_add_signature.argtypes = [POINTER(struct_Signature), POINTER(IClass_statistics)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 89
if hasattr(_libs['grass_imagery.7.2.0'], 'I_iclass_write_signatures'):
    I_iclass_write_signatures = _libs['grass_imagery.7.2.0'].I_iclass_write_signatures
    I_iclass_write_signatures.restype = c_int
    I_iclass_write_signatures.argtypes = [POINTER(struct_Signature), String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 92
if hasattr(_libs['grass_imagery.7.2.0'], 'I_list_group'):
    I_list_group = _libs['grass_imagery.7.2.0'].I_list_group
    I_list_group.restype = c_int
    I_list_group.argtypes = [String, POINTER(struct_Ref), POINTER(FILE)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 93
if hasattr(_libs['grass_imagery.7.2.0'], 'I_list_group_simple'):
    I_list_group_simple = _libs['grass_imagery.7.2.0'].I_list_group_simple
    I_list_group_simple.restype = c_int
    I_list_group_simple.argtypes = [POINTER(struct_Ref), POINTER(FILE)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 96
if hasattr(_libs['grass_imagery.7.2.0'], 'I_list_subgroups'):
    I_list_subgroups = _libs['grass_imagery.7.2.0'].I_list_subgroups
    I_list_subgroups.restype = POINTER(POINTER(c_char))
    I_list_subgroups.argtypes = [String, POINTER(c_int)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 97
if hasattr(_libs['grass_imagery.7.2.0'], 'I_list_subgroup'):
    I_list_subgroup = _libs['grass_imagery.7.2.0'].I_list_subgroup
    I_list_subgroup.restype = c_int
    I_list_subgroup.argtypes = [String, String, POINTER(struct_Ref), POINTER(FILE)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 98
if hasattr(_libs['grass_imagery.7.2.0'], 'I_list_subgroup_simple'):
    I_list_subgroup_simple = _libs['grass_imagery.7.2.0'].I_list_subgroup_simple
    I_list_subgroup_simple.restype = c_int
    I_list_subgroup_simple.argtypes = [POINTER(struct_Ref), POINTER(FILE)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 101
if hasattr(_libs['grass_imagery.7.2.0'], 'I_location_info'):
    I_location_info = _libs['grass_imagery.7.2.0'].I_location_info
    I_location_info.restype = ReturnString
    I_location_info.argtypes = [String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 104
if hasattr(_libs['grass_imagery.7.2.0'], 'I_new_control_point'):
    I_new_control_point = _libs['grass_imagery.7.2.0'].I_new_control_point
    I_new_control_point.restype = c_int
    I_new_control_point.argtypes = [POINTER(struct_Control_Points), c_double, c_double, c_double, c_double, c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 106
if hasattr(_libs['grass_imagery.7.2.0'], 'I_get_control_points'):
    I_get_control_points = _libs['grass_imagery.7.2.0'].I_get_control_points
    I_get_control_points.restype = c_int
    I_get_control_points.argtypes = [String, POINTER(struct_Control_Points)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 107
if hasattr(_libs['grass_imagery.7.2.0'], 'I_put_control_points'):
    I_put_control_points = _libs['grass_imagery.7.2.0'].I_put_control_points
    I_put_control_points.restype = c_int
    I_put_control_points.argtypes = [String, POINTER(struct_Control_Points)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 110
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_group_ref_new'):
    I_fopen_group_ref_new = _libs['grass_imagery.7.2.0'].I_fopen_group_ref_new
    I_fopen_group_ref_new.restype = POINTER(FILE)
    I_fopen_group_ref_new.argtypes = [String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 111
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_group_ref_old'):
    I_fopen_group_ref_old = _libs['grass_imagery.7.2.0'].I_fopen_group_ref_old
    I_fopen_group_ref_old.restype = POINTER(FILE)
    I_fopen_group_ref_old.argtypes = [String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 112
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_subgroup_ref_new'):
    I_fopen_subgroup_ref_new = _libs['grass_imagery.7.2.0'].I_fopen_subgroup_ref_new
    I_fopen_subgroup_ref_new.restype = POINTER(FILE)
    I_fopen_subgroup_ref_new.argtypes = [String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 113
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_subgroup_ref_old'):
    I_fopen_subgroup_ref_old = _libs['grass_imagery.7.2.0'].I_fopen_subgroup_ref_old
    I_fopen_subgroup_ref_old.restype = POINTER(FILE)
    I_fopen_subgroup_ref_old.argtypes = [String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 116
if hasattr(_libs['grass_imagery.7.2.0'], 'I_sc_init_cats'):
    I_sc_init_cats = _libs['grass_imagery.7.2.0'].I_sc_init_cats
    I_sc_init_cats.restype = None
    I_sc_init_cats.argtypes = [POINTER(struct_scCats), c_int, c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 117
if hasattr(_libs['grass_imagery.7.2.0'], 'I_sc_free_cats'):
    I_sc_free_cats = _libs['grass_imagery.7.2.0'].I_sc_free_cats
    I_sc_free_cats.restype = None
    I_sc_free_cats.argtypes = [POINTER(struct_scCats)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 118
if hasattr(_libs['grass_imagery.7.2.0'], 'I_sc_add_cat'):
    I_sc_add_cat = _libs['grass_imagery.7.2.0'].I_sc_add_cat
    I_sc_add_cat.restype = c_int
    I_sc_add_cat.argtypes = [POINTER(struct_scCats)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 119
if hasattr(_libs['grass_imagery.7.2.0'], 'I_sc_insert_scatt_data'):
    I_sc_insert_scatt_data = _libs['grass_imagery.7.2.0'].I_sc_insert_scatt_data
    I_sc_insert_scatt_data.restype = c_int
    I_sc_insert_scatt_data.argtypes = [POINTER(struct_scCats), POINTER(struct_scdScattData), c_int, c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 121
if hasattr(_libs['grass_imagery.7.2.0'], 'I_scd_init_scatt_data'):
    I_scd_init_scatt_data = _libs['grass_imagery.7.2.0'].I_scd_init_scatt_data
    I_scd_init_scatt_data.restype = None
    I_scd_init_scatt_data.argtypes = [POINTER(struct_scdScattData), c_int, c_int, POINTER(None)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 124
if hasattr(_libs['grass_imagery.7.2.0'], 'I_compute_scatts'):
    I_compute_scatts = _libs['grass_imagery.7.2.0'].I_compute_scatts
    I_compute_scatts.restype = c_int
    I_compute_scatts.argtypes = [POINTER(struct_Cell_head), POINTER(struct_scCats), POINTER(POINTER(c_char)), POINTER(POINTER(c_char)), c_int, POINTER(struct_scCats), POINTER(POINTER(c_char))]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 127
if hasattr(_libs['grass_imagery.7.2.0'], 'I_create_cat_rast'):
    I_create_cat_rast = _libs['grass_imagery.7.2.0'].I_create_cat_rast
    I_create_cat_rast.restype = c_int
    I_create_cat_rast.argtypes = [POINTER(struct_Cell_head), String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 128
if hasattr(_libs['grass_imagery.7.2.0'], 'I_insert_patch_to_cat_rast'):
    I_insert_patch_to_cat_rast = _libs['grass_imagery.7.2.0'].I_insert_patch_to_cat_rast
    I_insert_patch_to_cat_rast.restype = c_int
    I_insert_patch_to_cat_rast.argtypes = [String, POINTER(struct_Cell_head), String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 130
if hasattr(_libs['grass_imagery.7.2.0'], 'I_id_scatt_to_bands'):
    I_id_scatt_to_bands = _libs['grass_imagery.7.2.0'].I_id_scatt_to_bands
    I_id_scatt_to_bands.restype = c_int
    I_id_scatt_to_bands.argtypes = [c_int, c_int, POINTER(c_int), POINTER(c_int)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 131
if hasattr(_libs['grass_imagery.7.2.0'], 'I_bands_to_id_scatt'):
    I_bands_to_id_scatt = _libs['grass_imagery.7.2.0'].I_bands_to_id_scatt
    I_bands_to_id_scatt.restype = c_int
    I_bands_to_id_scatt.argtypes = [c_int, c_int, c_int, POINTER(c_int)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 133
if hasattr(_libs['grass_imagery.7.2.0'], 'I_merge_arrays'):
    I_merge_arrays = _libs['grass_imagery.7.2.0'].I_merge_arrays
    I_merge_arrays.restype = c_int
    I_merge_arrays.argtypes = [POINTER(c_ubyte), POINTER(c_ubyte), c_uint, c_uint, c_double]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 134
if hasattr(_libs['grass_imagery.7.2.0'], 'I_apply_colormap'):
    I_apply_colormap = _libs['grass_imagery.7.2.0'].I_apply_colormap
    I_apply_colormap.restype = c_int
    I_apply_colormap.argtypes = [POINTER(c_ubyte), POINTER(c_ubyte), c_uint, POINTER(c_ubyte), POINTER(c_ubyte)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 135
if hasattr(_libs['grass_imagery.7.2.0'], 'I_rasterize'):
    I_rasterize = _libs['grass_imagery.7.2.0'].I_rasterize
    I_rasterize.restype = c_int
    I_rasterize.argtypes = [POINTER(c_double), c_int, c_ubyte, POINTER(struct_Cell_head), POINTER(c_ubyte)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 138
if hasattr(_libs['grass_imagery.7.2.0'], 'I_init_signatures'):
    I_init_signatures = _libs['grass_imagery.7.2.0'].I_init_signatures
    I_init_signatures.restype = c_int
    I_init_signatures.argtypes = [POINTER(struct_Signature), c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 139
if hasattr(_libs['grass_imagery.7.2.0'], 'I_new_signature'):
    I_new_signature = _libs['grass_imagery.7.2.0'].I_new_signature
    I_new_signature.restype = c_int
    I_new_signature.argtypes = [POINTER(struct_Signature)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 140
if hasattr(_libs['grass_imagery.7.2.0'], 'I_free_signatures'):
    I_free_signatures = _libs['grass_imagery.7.2.0'].I_free_signatures
    I_free_signatures.restype = c_int
    I_free_signatures.argtypes = [POINTER(struct_Signature)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 141
if hasattr(_libs['grass_imagery.7.2.0'], 'I_read_one_signature'):
    I_read_one_signature = _libs['grass_imagery.7.2.0'].I_read_one_signature
    I_read_one_signature.restype = c_int
    I_read_one_signature.argtypes = [POINTER(FILE), POINTER(struct_Signature)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 142
if hasattr(_libs['grass_imagery.7.2.0'], 'I_read_signatures'):
    I_read_signatures = _libs['grass_imagery.7.2.0'].I_read_signatures
    I_read_signatures.restype = c_int
    I_read_signatures.argtypes = [POINTER(FILE), POINTER(struct_Signature)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 143
if hasattr(_libs['grass_imagery.7.2.0'], 'I_write_signatures'):
    I_write_signatures = _libs['grass_imagery.7.2.0'].I_write_signatures
    I_write_signatures.restype = c_int
    I_write_signatures.argtypes = [POINTER(FILE), POINTER(struct_Signature)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 146
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_signature_file_new'):
    I_fopen_signature_file_new = _libs['grass_imagery.7.2.0'].I_fopen_signature_file_new
    I_fopen_signature_file_new.restype = POINTER(FILE)
    I_fopen_signature_file_new.argtypes = [String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 147
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_signature_file_old'):
    I_fopen_signature_file_old = _libs['grass_imagery.7.2.0'].I_fopen_signature_file_old
    I_fopen_signature_file_old.restype = POINTER(FILE)
    I_fopen_signature_file_old.argtypes = [String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 150
if hasattr(_libs['grass_imagery.7.2.0'], 'I_SigSetNClasses'):
    I_SigSetNClasses = _libs['grass_imagery.7.2.0'].I_SigSetNClasses
    I_SigSetNClasses.restype = c_int
    I_SigSetNClasses.argtypes = [POINTER(struct_SigSet)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 151
if hasattr(_libs['grass_imagery.7.2.0'], 'I_AllocClassData'):
    I_AllocClassData = _libs['grass_imagery.7.2.0'].I_AllocClassData
    I_AllocClassData.restype = POINTER(struct_ClassData)
    I_AllocClassData.argtypes = [POINTER(struct_SigSet), POINTER(struct_ClassSig), c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 152
if hasattr(_libs['grass_imagery.7.2.0'], 'I_InitSigSet'):
    I_InitSigSet = _libs['grass_imagery.7.2.0'].I_InitSigSet
    I_InitSigSet.restype = c_int
    I_InitSigSet.argtypes = [POINTER(struct_SigSet)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 153
if hasattr(_libs['grass_imagery.7.2.0'], 'I_SigSetNBands'):
    I_SigSetNBands = _libs['grass_imagery.7.2.0'].I_SigSetNBands
    I_SigSetNBands.restype = c_int
    I_SigSetNBands.argtypes = [POINTER(struct_SigSet), c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 154
if hasattr(_libs['grass_imagery.7.2.0'], 'I_NewClassSig'):
    I_NewClassSig = _libs['grass_imagery.7.2.0'].I_NewClassSig
    I_NewClassSig.restype = POINTER(struct_ClassSig)
    I_NewClassSig.argtypes = [POINTER(struct_SigSet)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 155
if hasattr(_libs['grass_imagery.7.2.0'], 'I_NewSubSig'):
    I_NewSubSig = _libs['grass_imagery.7.2.0'].I_NewSubSig
    I_NewSubSig.restype = POINTER(struct_SubSig)
    I_NewSubSig.argtypes = [POINTER(struct_SigSet), POINTER(struct_ClassSig)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 156
if hasattr(_libs['grass_imagery.7.2.0'], 'I_ReadSigSet'):
    I_ReadSigSet = _libs['grass_imagery.7.2.0'].I_ReadSigSet
    I_ReadSigSet.restype = c_int
    I_ReadSigSet.argtypes = [POINTER(FILE), POINTER(struct_SigSet)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 157
if hasattr(_libs['grass_imagery.7.2.0'], 'I_SetSigTitle'):
    I_SetSigTitle = _libs['grass_imagery.7.2.0'].I_SetSigTitle
    I_SetSigTitle.restype = c_int
    I_SetSigTitle.argtypes = [POINTER(struct_SigSet), String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 158
if hasattr(_libs['grass_imagery.7.2.0'], 'I_GetSigTitle'):
    I_GetSigTitle = _libs['grass_imagery.7.2.0'].I_GetSigTitle
    I_GetSigTitle.restype = ReturnString
    I_GetSigTitle.argtypes = [POINTER(struct_SigSet)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 159
if hasattr(_libs['grass_imagery.7.2.0'], 'I_SetClassTitle'):
    I_SetClassTitle = _libs['grass_imagery.7.2.0'].I_SetClassTitle
    I_SetClassTitle.restype = c_int
    I_SetClassTitle.argtypes = [POINTER(struct_ClassSig), String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 160
if hasattr(_libs['grass_imagery.7.2.0'], 'I_GetClassTitle'):
    I_GetClassTitle = _libs['grass_imagery.7.2.0'].I_GetClassTitle
    I_GetClassTitle.restype = ReturnString
    I_GetClassTitle.argtypes = [POINTER(struct_ClassSig)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 161
if hasattr(_libs['grass_imagery.7.2.0'], 'I_WriteSigSet'):
    I_WriteSigSet = _libs['grass_imagery.7.2.0'].I_WriteSigSet
    I_WriteSigSet.restype = c_int
    I_WriteSigSet.argtypes = [POINTER(FILE), POINTER(struct_SigSet)]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 164
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_sigset_file_new'):
    I_fopen_sigset_file_new = _libs['grass_imagery.7.2.0'].I_fopen_sigset_file_new
    I_fopen_sigset_file_new.restype = POINTER(FILE)
    I_fopen_sigset_file_new.argtypes = [String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 165
if hasattr(_libs['grass_imagery.7.2.0'], 'I_fopen_sigset_file_old'):
    I_fopen_sigset_file_old = _libs['grass_imagery.7.2.0'].I_fopen_sigset_file_old
    I_fopen_sigset_file_old.restype = POINTER(FILE)
    I_fopen_sigset_file_old.argtypes = [String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 168
if hasattr(_libs['grass_imagery.7.2.0'], 'I_get_target'):
    I_get_target = _libs['grass_imagery.7.2.0'].I_get_target
    I_get_target.restype = c_int
    I_get_target.argtypes = [String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 169
if hasattr(_libs['grass_imagery.7.2.0'], 'I_put_target'):
    I_put_target = _libs['grass_imagery.7.2.0'].I_put_target
    I_put_target.restype = c_int
    I_put_target.argtypes = [String, String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 172
if hasattr(_libs['grass_imagery.7.2.0'], 'I_get_group_title'):
    I_get_group_title = _libs['grass_imagery.7.2.0'].I_get_group_title
    I_get_group_title.restype = c_int
    I_get_group_title.argtypes = [String, String, c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 173
if hasattr(_libs['grass_imagery.7.2.0'], 'I_put_group_title'):
    I_put_group_title = _libs['grass_imagery.7.2.0'].I_put_group_title
    I_put_group_title.restype = c_int
    I_put_group_title.argtypes = [String, String]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 176
if hasattr(_libs['grass_imagery.7.2.0'], 'I_variance'):
    I_variance = _libs['grass_imagery.7.2.0'].I_variance
    I_variance.restype = c_double
    I_variance.argtypes = [c_double, c_double, c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 177
if hasattr(_libs['grass_imagery.7.2.0'], 'I_stddev'):
    I_stddev = _libs['grass_imagery.7.2.0'].I_stddev
    I_stddev.restype = c_double
    I_stddev.argtypes = [c_double, c_double, c_int]

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/gis.h: 97
try:
    GNAME_MAX = 256
except:
    pass

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 8
try:
    INAME_LEN = GNAME_MAX
except:
    pass

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 139
try:
    SC_SCATT_DATA = 0
except:
    pass

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 139
try:
    SC_SCATT_CONDITIONS = 1
except:
    pass

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 192
try:
    SIGNATURE_TYPE_MIXED = 1
except:
    pass

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 193
try:
    GROUPFILE = 'CURGROUP'
except:
    pass

# /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 193
try:
    SUBGROUPFILE = 'CURSUBGROUP'
except:
    pass

Ref_Color = struct_Ref_Color # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 10

Ref_Files = struct_Ref_Files # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 20

Ref = struct_Ref # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 26

Tape_Info = struct_Tape_Info # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 33

Control_Points = struct_Control_Points # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 40

One_Sig = struct_One_Sig # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 50

Signature = struct_Signature # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 61

SubSig = struct_SubSig # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 69

ClassData = struct_ClassData # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 80

ClassSig = struct_ClassSig # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 88

SigSet = struct_SigSet # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 99

scScatts = struct_scScatts # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 169

scCats = struct_scCats # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 147

scdScattData = struct_scdScattData # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/imagery.h: 184

Map_info = struct_Map_info # /build/grass/src/grass-7.2.0/dist.i686-pc-linux-gnu/include/grass/defs/imagery.h: 61

# No inserted files

