Changeset 37807 for trunk/Ohana/src/checkastro
- Timestamp:
- Jan 11, 2015, 2:14:39 PM (12 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
src/checkastro/src/ImageOps.c (modified) (2 diffs)
-
src/checkastro/src/bcatalog.c (modified) (1 diff)
-
src/checkastro/src/load_images.c (modified) (1 diff)
-
src/checkastro/src/select_images.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
-
trunk/Ohana/src/checkastro/src/ImageOps.c
r36833 r37807 130 130 } 131 131 132 BuildChipMatch (image, Nimage);133 134 132 char output[128]; 135 133 snprintf (output, 128, "checkastrom.%+3.0f.%+3.0f.%03.0f.%03.0f.dat", UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); … … 148 146 name = GetPhotcodeNamebyCode (image[i].photcode); 149 147 150 off_t myMosaic = FindMosaicForImage (image, Nimage, i);151 152 148 /* only check exposure center */ 153 149 double Rexp = NAN, Dexp = NAN, Rccd = NAN, Dccd = NAN; 154 150 155 if (myMosaic) { 156 myMosaic --; 157 XY_to_RD (&Rccd, &Dccd, 0.5*image[i].NX, 0.5*image[i].NY, &image[i].coords); 158 XY_to_RD (&Rexp, &Dexp, 0.0, 0.0, &image[myMosaic].coords); 159 } 151 XY_to_RD (&Rccd, &Dccd, 0.5*image[i].NX, 0.5*image[i].NY, &image[i].coords); 152 XY_to_RD (&Rexp, &Dexp, 0.0, 0.0, &image[i].parent->coords); 160 153 161 154 char *date = ohana_sec_to_date(image[i].tzero); -
trunk/Ohana/src/checkastro/src/bcatalog.c
r36833 r37807 191 191 /* project coordinates to a plane centered on the object with units of arcsec */ 192 192 Coords coords; 193 InitCoords (&coords, "DEC--SIN"); 193 194 coords.crval1 = Rc; 194 195 coords.crval2 = Dc; 195 coords.crpix1 = 0;196 coords.crpix2 = 0;197 196 coords.cdelt1 = coords.cdelt2 = 1.0 / 3600.0; 198 coords.pc1_1 = coords.pc2_2 = 1.0;199 coords.pc1_2 = coords.pc2_1 = 0.0;200 coords.Npolyterms = 1;201 strcpy (coords.ctype, "DEC--SIN");202 197 203 198 // convert all average R,D values to X,Y: -
trunk/Ohana/src/checkastro/src/load_images.c
r36833 r37807 17 17 MARKTIME(" convert image table: %f sec\n", dtime); 18 18 19 BuildChipMatch (image, Nimage); 20 19 21 // select the images which overlap the selected sky regions 20 22 subset = select_images (skylist, image, Nimage, &LineNumber, &Nsubset); -
trunk/Ohana/src/checkastro/src/select_images.c
r36833 r37807 43 43 44 44 if (VERBOSE) fprintf (stderr, "finding images\n"); 45 BuildChipMatch (timage, Ntimage);46 MARKTIME("build chip match: %f sec\n", dtime);47 45 48 46 nimage = 0; … … 83 81 } 84 82 85 // this adds 1.3 sec for 3M images86 off_t myMosaic = FindMosaicForImage (timage, Ntimage, i);87 if (!myMosaic) {88 fprintf (stderr, "cannot find mosaic for "OFF_T_FMT"\n", i);89 continue;90 }91 myMosaic --;92 93 83 /* only check exposure center */ 94 84 if (!strcmp(&timage[i].coords.ctype[4], "-DIS")) { 95 85 XY_to_RD (&Rexp, &Dexp, 0.0, 0.0, &timage[i].coords); 96 86 } else { 97 XY_to_RD (&Rexp, &Dexp, 0.0, 0.0, &timage[ myMosaic].coords);87 XY_to_RD (&Rexp, &Dexp, 0.0, 0.0, &timage[i].parent->coords); 98 88 } 99 89 Rexp = ohana_normalize_angle_to_midpoint (Rexp, RmidSkyRegion);
Note:
See TracChangeset
for help on using the changeset viewer.
