2
#include <grass/glocale.h>
5
#define FFTWINDOW "fftwindow"
8
int get_orig_window(struct Cell_head *hd, char *rmapset, char *imapset)
10
struct Cell_head tmphd;
13
/* get the windows for both the real and imaginary parts */
14
sprintf(buffer, "cell_misc/%s", Cellmap_real);
15
G__get_window(hd, buffer, FFTWINDOW, rmapset);
16
sprintf(buffer, "cell_misc/%s", Cellmap_imag);
17
G__get_window(&tmphd, buffer, FFTWINDOW, imapset);
20
if (hd->proj != tmphd.proj ||
21
hd->zone != tmphd.zone ||
22
hd->north != tmphd.north ||
23
hd->south != tmphd.south ||
24
hd->east != tmphd.east ||
25
hd->west != tmphd.west ||
26
hd->ew_res != tmphd.ew_res || hd->ns_res != tmphd.ns_res)
27
G_fatal_error(_("The real and imaginary original windows did not match"));