GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <string.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
void | G__set_null_value (void *rast, int numVals, int null_is_zero, RASTER_MAP_TYPE data_type) |
void | G_set_null_value (void *buf, int numVals, RASTER_MAP_TYPE data_type) |
void | G_set_c_null_value (CELL *cellVals, int numVals) |
void | G_set_f_null_value (FCELL *fcellVals, int numVals) |
void | G_set_d_null_value (DCELL *dcellVals, int numVals) |
int | G_is_null_value (const void *rast, RASTER_MAP_TYPE data_type) |
If the data_type is CELL_TYPE, calls G_is_c_null_value ((CELL *) rast); If the data_type is FCELL_TYPE, calls G_is_f_null_value ((FCELL *) rast); If the data_type is DCELL_TYPE, calls G_is_d_null_value ((DCELL *) rast);. More... | |
int | G_is_c_null_value (const CELL *cellVal) |
Returns 1 if cell is NULL, 0 otherwise. This will test if the value cell is the largest int . More... | |
int | G_is_f_null_value (const FCELL *fcellVal) |
Returns 1 if fcell is NULL, 0 otherwise. This will test if the value fcell is a NaN. It isn't good enough to test for a particular NaN bit pattern since the machine code may change this bit pattern to a different NaN. The test will be. More... | |
int | G_is_d_null_value (const DCELL *dcellVal) |
Returns 1 if dcell is NULL, 0 otherwise. This will test if the value dcell is a NaN. Same test as in G_is_f_null_value() . More... | |
int | G_insert_null_values (void *rast, char *null_row, int ncols, RASTER_MAP_TYPE data_type) |
Insert NULL value. More... | |
int | G_insert_c_null_values (CELL *cellVal, char *null_row, int ncols) |
Insert CELL NULL value. More... | |
int | G_insert_f_null_values (FCELL *fcellVal, char *null_row, int ncols) |
Insert FCELL NULL value. More... | |
int | G_insert_d_null_values (DCELL *dcellVal, char *null_row, int ncols) |
Insert DCELL NULL value. More... | |
int | G__check_null_bit (const unsigned char *flags, int bit_num, int n) |
int | G__set_flags_from_01_random (const char *zero_ones, unsigned char *flags, int col, int n, int ncols) |
int | G__convert_01_flags (const char *zero_ones, unsigned char *flags, int n) |
int | G__convert_flags_01 (char *zero_ones, const unsigned char *flags, int n) |
int | G__init_null_bits (unsigned char *flags, int cols) |
Definition at line 440 of file null_val.c.
References G__null_bitstream_size(), and G_warning().
Referenced by G__set_flags_from_01_random().
Definition at line 524 of file null_val.c.
References count, G__null_bitstream_size(), and tools::size.
Referenced by G__set_flags_from_01_random().
Definition at line 563 of file null_val.c.
References count, G__null_bitstream_size(), and tools::size.
Definition at line 598 of file null_val.c.
References dialogs::cols, G__null_bitstream_size(), and tools::size.
int G__set_flags_from_01_random | ( | const char * | zero_ones, |
unsigned char * | flags, | ||
int | col, | ||
int | n, | ||
int | ncols | ||
) |
Definition at line 476 of file null_val.c.
References count, G__check_null_bit(), G__convert_01_flags(), G__null_bitstream_size(), and tools::size.
Definition at line 90 of file null_val.c.
References G_raster_size(), G_set_null_value(), and G_zero().
Insert CELL NULL value.
For each of the count flags which is true(!=0), set the corresponding cell to the NULL value.
cell | |
flags | |
count |
Definition at line 370 of file null_val.c.
Insert DCELL NULL value.
For each for the count flag which is true(!=0), set the corresponding dcell to the NULL value.
dcell | |
flags | |
count |
Definition at line 426 of file null_val.c.
Insert FCELL NULL value.
For each of the count flags which is true(!=0), set the corresponding fcell to the NULL value.
fcell | |
flags | |
count |
Definition at line 398 of file null_val.c.
Insert NULL value.
If the data_type is CELL_TYPE, calls G_insert_c_null_values ((CELL *) rast, flags, count); If the data_type is FCELL_TYPE, calls G_insert_f_null_values ((FCELL *) rast, flags, count); If the data_type is DCELL_TYPE, calls G_insert_d_null_values ((DCELL *) rast, flags, count);
rast | |
flags | |
count | |
data_type |
Definition at line 341 of file null_val.c.
int G_is_c_null_value | ( | const CELL * | cellVal | ) |
Returns 1 if cell is NULL, 0 otherwise. This will test if the value cell is the largest int
.
cell |
Definition at line 244 of file null_val.c.
Referenced by G__row_update_range(), G_find_cell_stat(), G_fpreclass_perform_id(), G_fpreclass_perform_if(), G_fpreclass_perform_ii(), G_get_null_value_row(), G_get_range_min_max(), G_get_raster_cat(), G_is_null_value(), G_mark_raster_cats(), G_number_of_cats(), G_put_reclass(), G_read_colors(), G_set_color(), G_set_raster_value_c(), G_update_cell_stats(), G_update_range(), Gs_get_cat_label(), N_convert_array_2d_null_to_zero(), N_copy_array_2d(), and N_read_rast_to_array_2d().
int G_is_d_null_value | ( | const DCELL * | dcellVal | ) |
Returns 1 if dcell is NULL, 0 otherwise. This will test if the value dcell is a NaN. Same test as in G_is_f_null_value()
.
dcell |
Definition at line 306 of file null_val.c.
Referenced by c_ave(), c_count(), c_intr(), c_kurt(), c_max(), c_maxx(), c_min(), c_minx(), c_range(), c_skew(), c_stddev(), c_sum(), c_thresh(), c_var(), G3d_isNullValueNum(), G_ask_colors(), G_fpreclass_perform_dd(), G_fpreclass_perform_df(), G_fpreclass_perform_di(), G_get_fp_range_min_max(), G_get_raster_sample_bilinear(), G_get_raster_sample_cubic(), G_get_raster_sample_nearest(), G_is_null_value(), G_quant_get_cell_value(), G_quant_perform_d(), G_quantize_fp_map(), G_read_colors(), G_set_d_color(), G_set_d_raster_cat(), G_set_raster_value_d(), G_update_fp_range(), Gs_get_cat_label(), I_cluster_point(), I_cluster_point_part(), N_convert_array_2d_null_to_zero(), N_copy_array_2d(), N_read_rast3d_to_array_3d(), N_read_rast_to_array_2d(), sort_cell(), sort_cell_w(), switch(), w_ave(), w_count(), w_kurt(), w_max(), w_min(), w_skew(), w_stddev(), w_sum(), and w_var().
int G_is_f_null_value | ( | const FCELL * | fcellVal | ) |
Returns 1 if fcell is NULL, 0 otherwise. This will test if the value fcell is a NaN. It isn't good enough to test for a particular NaN bit pattern since the machine code may change this bit pattern to a different NaN. The test will be.
or (as suggested by Mark Line)
fcell |
Definition at line 281 of file null_val.c.
Referenced by G3d_isNullValueNum(), G_fpreclass_perform_fd(), G_fpreclass_perform_ff(), G_fpreclass_perform_fi(), G_is_null_value(), G_quant_perform_f(), G_set_raster_value_f(), Gs_loadmap_as_float(), IL_resample_interp_segments_2d(), N_convert_array_2d_null_to_zero(), N_copy_array_2d(), N_norm_array_2d(), N_read_rast3d_to_array_3d(), and N_read_rast_to_array_2d().
int G_is_null_value | ( | const void * | rast, |
RASTER_MAP_TYPE | data_type | ||
) |
If the data_type is CELL_TYPE, calls G_is_c_null_value ((CELL *) rast); If the data_type is FCELL_TYPE, calls G_is_f_null_value ((FCELL *) rast); If the data_type is DCELL_TYPE, calls G_is_d_null_value ((DCELL *) rast);.
rast | |
data_type |
Definition at line 207 of file null_val.c.
References FALSE, G_is_c_null_value(), G_is_d_null_value(), G_is_f_null_value(), and G_warning().
Referenced by D_draw_raster_RGB(), G__lookup_colors(), G_get_raster_cat(), G_get_raster_row_colors(), G_get_raster_value_c(), G_get_raster_value_d(), G_get_raster_value_f(), G_raster_cmp(), G_row_update_fp_range(), and N_is_array_2d_value_null().
void G_set_c_null_value | ( | CELL * | cellVals, |
int | numVals | ||
) |
Definition at line 142 of file null_val.c.
Referenced by G_fpreclass_perform_di(), G_fpreclass_perform_fi(), G_fpreclass_perform_ii(), G_get_range_min_max(), G_get_raster_value_c(), G_init_range(), G_quant_get_limits(), G_quant_perform_d(), G_quant_perform_f(), G_set_null_value(), N_copy_array_2d(), and N_put_array_2d_value_null().
void G_set_d_null_value | ( | DCELL * | dcellVals, |
int | numVals | ||
) |
Definition at line 176 of file null_val.c.
Referenced by c_ave(), c_intr(), c_kurt(), c_max(), c_maxx(), c_median(), c_min(), c_minx(), c_mode(), c_quant(), c_range(), c_skew(), c_stddev(), c_sum(), c_thresh(), c_var(), G3d_setNullValue(), G_fpreclass_get_cell_value(), G_fpreclass_perform_dd(), G_fpreclass_perform_fd(), G_fpreclass_perform_id(), G_get_fp_range_min_max(), G_get_gdal_link(), G_get_ith_d_raster_cat(), G_get_raster_sample_bilinear(), G_get_raster_sample_cubic(), G_get_raster_sample_nearest(), G_get_raster_value_d(), G_init_fp_range(), G_quant_get_limits(), G_set_null_value(), IL_grid_calc_2d(), N_copy_array_2d(), N_put_array_2d_value_null(), w_ave(), w_kurt(), w_max(), w_median(), w_min(), w_mode(), w_quant(), w_skew(), w_stddev(), w_sum(), and w_var().
void G_set_f_null_value | ( | FCELL * | fcellVals, |
int | numVals | ||
) |
Definition at line 158 of file null_val.c.
Referenced by G3d_setNullValue(), G_fpreclass_perform_df(), G_fpreclass_perform_ff(), G_fpreclass_perform_if(), G_get_raster_value_f(), G_set_null_value(), N_copy_array_2d(), and N_put_array_2d_value_null().
void G_set_null_value | ( | void * | buf, |
int | numVals, | ||
RASTER_MAP_TYPE | data_type | ||
) |
Definition at line 112 of file null_val.c.
References G_set_c_null_value(), G_set_d_null_value(), G_set_f_null_value(), and G_warning().
Referenced by G__set_null_value(), G_set_raster_value_c(), G_set_raster_value_d(), and G_set_raster_value_f().