Changeset 28673
- Timestamp:
- Jul 13, 2010, 6:08:15 PM (16 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) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/skycells.h
r27435 r28673 72 72 double CENTER_RA, CENTER_DEC; 73 73 double RANGE_RA, RANGE_DEC; 74 double OVERLAP_RA, OVERLAP_DEC; 74 75 75 76 double EULER_A; -
trunk/Ohana/src/addstar/src/args_skycells.c
r23914 r28673 86 86 help (); 87 87 } 88 OVERLAP_RA = 0; 89 OVERLAP_DEC = 0; 90 if ((N = get_argument (argc, argv, "-overlap"))) { 91 remove_argument (N, &argc, argv); 92 OVERLAP_RA = atof (argv[N]); 93 remove_argument (N, &argc, argv); 94 OVERLAP_DEC = atof (argv[N]); 95 remove_argument (N, &argc, argv); 96 } 88 97 } 89 98 … … 113 122 } 114 123 115 /* p ixel scale (arcsec/pixel)*/124 /* padding fraction */ 116 125 PADDING = 0.0; 117 126 if ((N = get_argument (argc, argv, "-padding"))) { -
trunk/Ohana/src/addstar/src/sky_tessalation.c
r28241 r28673 671 671 snprintf (format, 24, "%s.%%0%dd", input[0].name, Ndigit); 672 672 673 // if requested extend, the skycell boundaries so that skycells overlap 674 int pad_x = (int) (OVERLAP_RA / SCALE); 675 int pad_y = (int) (OVERLAP_DEC / SCALE); 676 673 677 N = 0; 674 678 for (j = 0; j < Ny; j++) { … … 679 683 680 684 snprintf (output[N].name, DVO_IMAGE_NAME_LEN, format, N); 681 output[N].NX = NX ;682 output[N].NY = NY ;685 output[N].NX = NX + 2 * pad_x; 686 output[N].NY = NY + 2 * pad_y; 683 687 output[N].photcode = input[0].photcode; 684 688 685 output[N].coords.crpix1 = input[0].coords.crpix1 - i*NX ;686 output[N].coords.crpix2 = input[0].coords.crpix2 - j*NY ;689 output[N].coords.crpix1 = input[0].coords.crpix1 - i*NX + pad_x; 690 output[N].coords.crpix2 = input[0].coords.crpix2 - j*NY + pad_y; 687 691 N++; 688 692 }
Note:
See TracChangeset
for help on using the changeset viewer.
