Changeset 31239
- Timestamp:
- Apr 7, 2011, 3:46:32 PM (15 years ago)
- Location:
- trunk/Ohana/src/addstar
- Files:
-
- 3 edited
-
include/skycells.h (modified) (1 diff)
-
src/args_skycells.c (modified) (2 diffs)
-
src/sky_tessalation.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/skycells.h
r31027 r31239 65 65 int NMAX; 66 66 int NX_SUB, NY_SUB; 67 int X_PARITY; 67 68 double SCALE; 68 69 double PADDING; -
trunk/Ohana/src/addstar/src/args_skycells.c
r31177 r31239 188 188 remove_argument (N, &argc, argv); 189 189 OVERLAP_DEC = atof (argv[N]); 190 remove_argument (N, &argc, argv); 191 } 192 X_PARITY = 1; 193 if ((N = get_argument (argc, argv, "-skyparity"))) { 194 X_PARITY = -1; 190 195 remove_argument (N, &argc, argv); 191 196 } … … 224 229 fprintf (stderr, " -nx Nx : subdivide skycell projection in x by Nx\n"); 225 230 fprintf (stderr, " -ny Ny : subdivide skycell projection in y by Ny\n"); 231 fprintf (stderr, " -overlap Or Od : overlap between skycells (arcseconds)\n"); 226 232 fprintf (stderr, " -projection-number Np : set projection-number (local mode only)\n"); 233 fprintf (stderr, " -skyparity : set wcs for skycells so that east is to the left\n"); 227 234 fprintf (stderr, " -help : this list\n"); 228 235 fprintf (stderr, " -h : this list\n\n"); -
trunk/Ohana/src/addstar/src/sky_tessalation.c
r31027 r31239 318 318 memset (image, 0, sizeof(Image)); 319 319 image[0].coords = *refcoords; 320 image[0].coords.pc1_1 = image[0].coords.pc2_2 = 1.0; 320 image[0].coords.pc1_1 = 1.0 * X_PARITY; 321 image[0].coords.pc2_2 = 1.0; 321 322 image[0].coords.pc1_2 = image[0].coords.pc2_1 = 0.0; 322 323 … … 468 469 469 470 if (FIX_NS) { 470 rectangle[0].coords.pc1_1 = +1.0 ;471 rectangle[0].coords.pc1_1 = +1.0 * X_PARITY; 471 472 rectangle[0].coords.pc1_2 = +0.0; 472 473 rectangle[0].coords.pc2_1 = -0.0; … … 475 476 ycr = yc*cos(angle) + xc*sin(angle); 476 477 } else { 477 rectangle[0].coords.pc1_1 = +cos(angle) ;478 rectangle[0].coords.pc1_1 = +cos(angle) * X_PARITY; 478 479 rectangle[0].coords.pc1_2 = +sin(angle); 479 rectangle[0].coords.pc2_1 = -sin(angle) ;480 rectangle[0].coords.pc2_1 = -sin(angle) * X_PARITY; 480 481 rectangle[0].coords.pc2_2 = +cos(angle); 481 482 xcr = xc; … … 514 515 angle = 0.0; 515 516 if (FIX_NS) { 516 rectangle[0].coords.pc1_1 = +1.0 ;517 rectangle[0].coords.pc1_1 = +1.0 * X_PARITY; 517 518 rectangle[0].coords.pc1_2 = +0.0; 518 519 rectangle[0].coords.pc2_1 = -0.0; 519 520 rectangle[0].coords.pc2_2 = +1.0; 520 521 } else { 521 rectangle[0].coords.pc1_1 = +cos(angle) ;522 rectangle[0].coords.pc1_1 = +cos(angle) * X_PARITY; 522 523 rectangle[0].coords.pc1_2 = +sin(angle); 523 rectangle[0].coords.pc2_1 = -sin(angle) ;524 rectangle[0].coords.pc2_1 = -sin(angle) * X_PARITY; 524 525 rectangle[0].coords.pc2_2 = +cos(angle); 525 526 } … … 626 627 ring[i].coords.crval2 = dec; 627 628 628 ring[i].coords.pc1_1 = +1.0 ;629 ring[i].coords.pc1_1 = +1.0 * X_PARITY; 629 630 ring[i].coords.pc1_2 = +0.0; 630 631 ring[i].coords.pc2_1 = -0.0;
Note:
See TracChangeset
for help on using the changeset viewer.
