//program file name #include #include #include #include #include using namespace std; //declare large arrays as global. float v1[1202][1202]; //raster data 1 float v2[1202][1202]; //raster data 2 int main(int argc, char *argv[]) { int i, j; char rn[128]; //region name char vn[128]; //variable name char un[128]; //name of the unit int dt; //type of data (not in use) int xas, yas; //number of elements float xs, ys; //size of the region char str[128]; //separator int opt; //option of the operation float a, b, c, d, e, f, g, h, k; //coefficients of the quadratic polynomial float xus; //unit size of the x direction raster grid //initializing two raster data as zero. for (j=0; j<=1201; j++) { for (i=0; i<=1201; i++) { v1[i][j] = 0; v2[i][j] = 0; } } //exit if the number of arguments is not 2. if (argc != 3) { cerr << "Usage: quad