Changeset 28798
- Timestamp:
- Jul 30, 2010, 9:40:31 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100621/Ohana
- Files:
-
- 10 edited
-
. (modified) (1 prop)
-
src/addstar/include/skycells.h (modified) (1 diff)
-
src/addstar/src/args_skycells.c (modified) (2 diffs)
-
src/addstar/src/sky_tessalation.c (modified) (2 diffs)
-
src/libohana/include/ohana.h (modified) (1 diff)
-
src/relphot/src/bcatalog.c (modified) (1 diff)
-
src/uniphot/include/uniphot.h (modified) (1 diff)
-
src/uniphot/src/load_zpt_table.c (modified) (2 diffs)
-
src/uniphot/src/match_zpts_to_images.c (modified) (1 diff)
-
src/uniphot/src/update_catalog_setphot.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/Ohana
- Property svn:mergeinfo changed
/branches/pap/Ohana merged: 28484-28485,28535
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20100621/Ohana/src/addstar/include/skycells.h
r27435 r28798 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; -
branches/eam_branches/ipp-20100621/Ohana/src/addstar/src/args_skycells.c
r23914 r28798 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"))) { -
branches/eam_branches/ipp-20100621/Ohana/src/addstar/src/sky_tessalation.c
r28241 r28798 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 } -
branches/eam_branches/ipp-20100621/Ohana/src/libohana/include/ohana.h
r28255 r28798 140 140 # endif 141 141 # ifdef _DARWIN_C_SOURCE 142 # define OFF_T_FMT "% jd"142 # define OFF_T_FMT "%lld" 143 143 #endif 144 144 # ifndef OFF_T_FMT -
branches/eam_branches/ipp-20100621/Ohana/src/relphot/src/bcatalog.c
r28241 r28798 15 15 16 16 /* we are moving only the subset of measurements from catalog[0] to subcatalog[0] */ 17 memset(subcatalog, 0, sizeof(*subcatalog)); 17 18 NAVERAGE = 50; 18 19 NMEASURE = 1000; -
branches/eam_branches/ipp-20100621/Ohana/src/uniphot/include/uniphot.h
r27790 r28798 41 41 typedef struct { 42 42 float zpt; 43 float zpt_err; 43 44 e_time time; 44 45 int found; -
branches/eam_branches/ipp-20100621/Ohana/src/uniphot/src/load_zpt_table.c
r27790 r28798 5 5 int Nzpts, NZPTS; 6 6 ZptTable *zpts; 7 double zpt, mjd ;7 double zpt, mjd, zpt_err; 8 8 9 9 FILE *f; … … 19 19 ALLOCATE (zpts, ZptTable, NZPTS); 20 20 21 // format is fixed: (time) (zpt) 21 // format is fixed: (time) (zpt) (zpt_err) 22 22 int status; 23 while ((status = fscanf (f, "%lf %lf ", &mjd, &zpt)) == 2) {23 while ((status = fscanf (f, "%lf %lf %lf", &mjd, &zpt, &zpt_err)) == 3) { 24 24 zpts[Nzpts].zpt = zpt; 25 zpts[Nzpts].zpt_err = zpt_err; 25 26 zpts[Nzpts].time = ohana_mjd_to_sec (mjd); 26 27 zpts[Nzpts].found = FALSE; -
branches/eam_branches/ipp-20100621/Ohana/src/uniphot/src/match_zpts_to_images.c
r28723 r28798 70 70 // we have a match: set zpt and record the match 71 71 image[Ni].Mcal = SCALE*code[0].C - zpts[Nz].zpt; 72 image[Ni].dMcal = zpts[Nz].zpt_err; 72 73 image[Ni].flags &= ~ID_IMAGE_PHOTOM_NOCAL; // clear the NOCAL flag 73 74 zpts[Nz].found = TRUE; -
branches/eam_branches/ipp-20100621/Ohana/src/uniphot/src/update_catalog_setphot.c
r28241 r28798 74 74 75 75 off_t i, j, m, id, idx, found; 76 float Mcal ;76 float Mcal, dMcal; 77 77 78 78 found = 0; … … 86 86 id = index[idx]; 87 87 Mcal = image[id].Mcal; 88 dMcal = image[id].dMcal; 88 89 89 catalog[0].measure[m].Mcal = image[id].Mcal; 90 catalog[0].measure[m].Mcal = Mcal; 91 catalog[0].measure[m].dMcal = dMcal; 90 92 found ++; 91 93 }
Note:
See TracChangeset
for help on using the changeset viewer.
