17 #include <grass/gis.h>
34 struct Cell_head *dst,
int rows,
int cols)
38 G_copy((
char *)dst, (
char *)src,
sizeof(*dst));
41 ns = (src->ns_res * src->rows) / rows;
42 ew = (src->ew_res * src->cols) / cols;
54 dst->rows = (dst->north - dst->south) / dst->ns_res;
55 dst->cols = (dst->east - dst->west) / dst->ew_res;