~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to imagery/i.ifft/orig_wind.c

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <grass/gis.h>
2
 
#include <grass/glocale.h>
3
 
#include "globals.h"
4
 
 
5
 
#define FFTWINDOW "fftwindow"
6
 
 
7
 
 
8
 
int get_orig_window(struct Cell_head *hd, char *rmapset, char *imapset)
9
 
{
10
 
    struct Cell_head tmphd;
11
 
    char buffer[100];
12
 
 
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);
18
 
 
19
 
    /* compare them */
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"));
28
 
 
29
 
    return 0;
30
 
}