1
1
#include <grass/gis.h>
3
void c_max(DCELL * result, DCELL * values, int n)
3
void c_max(DCELL * result, DCELL * values, int n, const void *closure)
24
void w_max(DCELL * result, DCELL(*values)[2], int n, const void *closure)
29
G_set_d_null_value(&max, 1);
31
for (i = 0; i < n; i++) {
32
if (G_is_d_null_value(&values[i][0]))
35
if (G_is_d_null_value(&max) || max < values[i][0])
39
if (G_is_d_null_value(&max))
40
G_set_d_null_value(result, 1);