GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71793
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
raster.h File Reference
#include <grass/gis.h>
#include <grass/defs/raster.h>
Include dependency graph for raster.h:

Go to the source code of this file.

Data Structures

struct  Reclass
 
struct  FPReclass_table
 
struct  FPReclass
 
struct  Quant_table
 
struct  Quant
 
struct  Categories
 
struct  History
 Raster history info (metadata) More...
 
struct  Cell_stats
 
struct  Cell_stats::Cell_stats_node
 
struct  Histogram
 
struct  Histogram::Histogram_list
 
struct  Range
 
struct  FPRange
 
struct  FP_stats
 

Macros

#define RECLASS_TABLE   1
 
#define RECLASS_RULES   2
 
#define RECLASS_SCALE   3
 
#define CELL_TYPE   0
 
#define FCELL_TYPE   1
 
#define DCELL_TYPE   2
 
#define INTERP_UNKNOWN   0
 Interpolation methods. More...
 
#define INTERP_NEAREST   1 /* nearest neighbor interpolation */
 
#define INTERP_BILINEAR   2 /* bilinear interpolation */
 
#define INTERP_BICUBIC   3 /* bicubic interpolation */
 

Typedefs

typedef int RASTER_MAP_TYPE
 
typedef int INTERP_TYPE
 

Enumerations

enum  History_field {
  HIST_MAPID, HIST_TITLE, HIST_MAPSET, HIST_CREATOR,
  HIST_MAPTYPE, HIST_DATSRC_1, HIST_DATSRC_2, HIST_KEYWRD,
  HIST_NUM_FIELDS
}
 Raster history info (metadata) More...
 

Macro Definition Documentation

#define CELL_TYPE   0

Definition at line 11 of file raster.h.

Referenced by c_binop(), c_cmpop(), c_if(), c_int(), c_int0(), c_isnull(), c_logop(), c_not(), c_round(), c_shiftop(), c_varop(), create_raster(), D_c_color(), D_draw_c_raster(), f_abs(), f_add(), f_and(), f_and2(), f_bitand(), f_bitnot(), f_bitor(), f_bitxor(), f_div(), f_double(), f_eq(), f_eval(), f_float(), f_ge(), f_gt(), f_if(), f_int(), f_isnull(), f_le(), f_lt(), f_max(), f_median(), f_min(), f_mod(), f_mode(), f_mul(), f_ne(), f_neg(), f_nmax(), f_nmedian(), f_nmin(), f_nmode(), f_not(), f_null(), f_or(), f_or2(), f_pow(), f_rand(), f_round(), f_shiftl(), f_shiftr(), f_shiftru(), f_sub(), for(), Gs_get_cat_label(), I_compute_scatts(), N_alloc_array_2d(), N_alloc_gwflow_data2d(), N_assemble_les_2d_param(), N_convert_array_2d_null_to_zero(), N_copy_array_2d(), N_free_array_2d(), N_get_array_2d_c_value(), N_get_array_2d_d_value(), N_get_array_2d_f_value(), N_get_array_2d_value(), N_is_array_2d_value_null(), N_math_array_2d(), N_norm_array_2d(), N_print_array_2d(), N_put_array_2d_d_value(), N_put_array_2d_f_value(), N_put_array_2d_value(), N_put_array_2d_value_null(), N_read_rast_to_array_2d(), N_write_array_2d_to_rast(), Rast__lookup_colors(), Rast__open_old(), Rast__quant_import(), Rast_add_c_color_rule(), Rast_add_modular_c_color_rule(), Rast_create_gdal_link(), Rast_get_c_cat(), Rast_get_c_color(), Rast_get_c_row(), Rast_get_c_row_nomask(), Rast_get_c_value(), Rast_get_d_value(), Rast_get_f_value(), Rast_get_gdal_link(), Rast_get_ith_c_cat(), Rast_get_next_marked_c_cat(), Rast_insert_c_null_values(), Rast_is_null_value(), Rast_lookup_c_colors(), Rast_map_to_img_str(), Rast_map_type(), Rast_mark_c_cats(), Rast_open_c_new(), Rast_open_c_new_uncompressed(), Rast_put_c_row(), Rast_raster_cmp(), Rast_read_fp_range(), Rast_read_range(), Rast_row_update_fp_range(), Rast_set_c_cat(), Rast_set_c_value(), Rast_set_d_value(), Rast_set_f_value(), Rast_set_null_value(), Rast_write_quant(), and Rast_write_range().

#define DCELL_TYPE   2

Definition at line 13 of file raster.h.

Referenced by c_binop(), c_cmpop(), c_double(), c_double0(), c_double1(), c_double12(), c_graph(), c_if(), c_round(), c_varop(), D_d_color(), D_draw_d_raster(), f_abs(), f_acos(), f_add(), f_asin(), f_atan(), f_cos(), f_div(), f_double(), f_eq(), f_eval(), f_exp(), f_float(), f_ge(), f_graph(), f_graph2(), f_gt(), f_if(), f_int(), f_isnull(), f_le(), f_log(), f_lt(), f_max(), f_median(), f_min(), f_mod(), f_mode(), f_mul(), f_ne(), f_neg(), f_nmax(), f_nmedian(), f_nmin(), f_nmode(), f_pow(), f_rand(), f_round(), f_sin(), f_sqrt(), f_sub(), f_tan(), for(), is_null_g3d_value(), N_alloc_array_2d(), N_alloc_array_3d(), N_alloc_gradient_field_2d(), N_alloc_gradient_field_3d(), N_alloc_gwflow_data2d(), N_alloc_gwflow_data3d(), N_alloc_solute_transport_data2d(), N_alloc_solute_transport_data3d(), N_assemble_les_3d_param(), N_convert_array_2d_null_to_zero(), N_convert_array_3d_null_to_zero(), N_copy_array_2d(), N_copy_array_3d(), N_free_array_2d(), N_free_array_3d(), N_get_array_2d_c_value(), N_get_array_2d_d_value(), N_get_array_2d_f_value(), N_get_array_2d_value(), N_get_array_3d_d_value(), N_get_array_3d_f_value(), N_get_array_3d_value(), N_gwflow_2d_calc_water_budget(), N_gwflow_3d_calc_water_budget(), N_is_array_2d_value_null(), N_is_array_3d_value_null(), N_math_array_2d(), N_math_array_3d(), N_norm_array_2d(), N_norm_array_3d(), N_print_array_2d(), N_print_array_3d(), N_put_array_2d_c_value(), N_put_array_2d_f_value(), N_put_array_2d_value(), N_put_array_2d_value_null(), N_put_array_3d_f_value(), N_put_array_3d_value(), N_put_array_3d_value_null(), N_read_rast3d_to_array_3d(), N_read_rast_to_array_2d(), N_write_array_2d_to_rast(), N_write_array_3d_to_rast3d(), open_g3d_file(), P_Aux_to_Raster(), Rast3d_change_type(), Rast3d_compute_optimal_tile_dimension(), Rast3d_copy_values(), Rast3d_extern_length(), Rast3d_fill_header(), Rast3d_g3d_type2cell_type(), Rast3d_get_double(), Rast3d_get_double_region(), Rast3d_get_float_region(), Rast3d_get_standard3d_params(), Rast3d_get_volume_a(), Rast3d_gradient_double(), Rast3d_init_defaults(), Rast3d_length(), Rast3d_mask_double(), Rast3d_open_cell_new(), Rast3d_print_header(), Rast3d_put_float(), Rast3d_read_tile_double(), Rast3d_set_file_type(), Rast3d_write_tile_double(), Rast__check_fp_type(), Rast__open_old(), Rast_add_d_color_rule(), Rast_add_modular_d_color_rule(), Rast_create_gdal_link(), Rast_get_c_value(), Rast_get_d_cat(), Rast_get_d_color(), Rast_get_d_row(), Rast_get_d_row_nomask(), Rast_get_d_value(), Rast_get_f_value(), Rast_get_gdal_link(), Rast_insert_d_null_values(), Rast_is_null_value(), Rast_lookup_d_colors(), Rast_map_to_img_str(), Rast_map_type(), Rast_mark_d_cats(), Rast_put_d_row(), Rast_raster_cmp(), Rast_row_update_fp_range(), Rast_set_c_value(), Rast_set_d_value(), Rast_set_f_value(), Rast_set_fp_type(), and Rast_set_null_value().

#define FCELL_TYPE   1

Definition at line 12 of file raster.h.

Referenced by c_binop(), c_cmpop(), c_float(), c_if(), c_varop(), D_draw_f_raster(), D_f_color(), f_abs(), f_add(), f_div(), f_double(), f_eq(), f_eval(), f_float(), f_ge(), f_gt(), f_if(), f_int(), f_isnull(), f_le(), f_lt(), f_max(), f_median(), f_min(), f_mod(), f_mode(), f_mul(), f_ne(), f_neg(), f_nmax(), f_nmedian(), f_nmin(), f_nmode(), f_pow(), f_rand(), f_round(), f_sub(), IL_output_2d(), is_null_g3d_value(), N_alloc_array_2d(), N_alloc_array_3d(), N_convert_array_2d_null_to_zero(), N_convert_array_3d_null_to_zero(), N_copy_array_2d(), N_copy_array_3d(), N_free_array_2d(), N_free_array_3d(), N_get_array_2d_c_value(), N_get_array_2d_d_value(), N_get_array_2d_f_value(), N_get_array_2d_value(), N_get_array_3d_d_value(), N_get_array_3d_f_value(), N_get_array_3d_value(), N_is_array_2d_value_null(), N_is_array_3d_value_null(), N_math_array_2d(), N_math_array_3d(), N_norm_array_2d(), N_norm_array_3d(), N_print_array_2d(), N_print_array_3d(), N_put_array_2d_c_value(), N_put_array_2d_d_value(), N_put_array_2d_value(), N_put_array_2d_value_null(), N_put_array_3d_d_value(), N_put_array_3d_value(), N_put_array_3d_value_null(), N_read_rast3d_to_array_3d(), N_read_rast_to_array_2d(), N_write_array_2d_to_rast(), N_write_array_3d_to_rast3d(), open_g3d_file(), Rast3d_change_type(), Rast3d_compare_files(), Rast3d_compute_optimal_tile_dimension(), Rast3d_copy_from_xdr(), Rast3d_copy_to_xdr(), Rast3d_copy_values(), Rast3d_extern_length(), Rast3d_fill_header(), Rast3d_g3d_type2cell_type(), Rast3d_get_double_region(), Rast3d_get_float(), Rast3d_get_float_region(), Rast3d_get_standard3d_params(), Rast3d_get_value_region(), Rast3d_init_copy_from_xdr(), Rast3d_init_copy_to_xdr(), Rast3d_init_defaults(), Rast3d_is_masked(), Rast3d_is_null_value_num(), Rast3d_length(), Rast3d_mask_float(), Rast3d_mask_open_old(), Rast3d_open_cell_new(), Rast3d_print_header(), Rast3d_put_double(), Rast3d_put_value(), Rast3d_read_tile_float(), Rast3d_set_file_type(), Rast3d_set_null_value(), Rast3d_write_ascii(), Rast3d_write_tile_float(), Rast__check_fp_type(), Rast__open_old(), Rast_add_f_color_rule(), Rast_add_modular_f_color_rule(), Rast_create_gdal_link(), Rast_get_c_value(), Rast_get_d_value(), Rast_get_f_cat(), Rast_get_f_color(), Rast_get_f_row(), Rast_get_f_row_nomask(), Rast_get_f_value(), Rast_get_gdal_link(), Rast_get_ith_f_cat(), Rast_get_next_marked_f_cat(), Rast_insert_f_null_values(), Rast_is_null_value(), Rast_lookup_f_colors(), Rast_map_to_img_str(), Rast_mark_f_cats(), Rast_put_f_row(), Rast_raster_cmp(), Rast_row_update_fp_range(), Rast_set_c_value(), Rast_set_d_value(), Rast_set_f_cat(), Rast_set_f_value(), Rast_set_fp_type(), and Rast_set_null_value().

#define INTERP_BICUBIC   3 /* bicubic interpolation */

Definition at line 22 of file raster.h.

Referenced by Rast_get_sample(), and Rast_option_to_interp_type().

#define INTERP_BILINEAR   2 /* bilinear interpolation */

Definition at line 21 of file raster.h.

Referenced by Rast_get_sample(), and Rast_option_to_interp_type().

#define INTERP_NEAREST   1 /* nearest neighbor interpolation */

Definition at line 20 of file raster.h.

Referenced by Rast_get_sample(), and Rast_option_to_interp_type().

#define INTERP_UNKNOWN   0

Interpolation methods.

For G_get_raster_sample(), INTERP_TYPE

Definition at line 19 of file raster.h.

Referenced by Rast_option_to_interp_type().

#define RECLASS_RULES   2

Definition at line 8 of file raster.h.

#define RECLASS_SCALE   3

Definition at line 9 of file raster.h.

#define RECLASS_TABLE   1

Definition at line 7 of file raster.h.

Referenced by Rast_free_reclass(), Rast_get_reclass(), and Rast_put_reclass().

Typedef Documentation

typedef int INTERP_TYPE

Definition at line 28 of file raster.h.

Definition at line 25 of file raster.h.

Enumeration Type Documentation

Raster history info (metadata)

See History structure for implementation issues.

Enumerator
HIST_MAPID 

Raster name.

HIST_TITLE 

Raster title.

HIST_MAPSET 

Raster mapset.

HIST_CREATOR 

User who creater raster map.

HIST_MAPTYPE 

Map type (always "raster")

HIST_DATSRC_1 

Description of original data source (two lines)

HIST_DATSRC_2 
HIST_KEYWRD 

One-line data description.

HIST_NUM_FIELDS 

Number of fields to be defined in History structure.

Definition at line 157 of file raster.h.