- Timestamp:
- Dec 18, 2012, 10:04:35 AM (14 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/uniphot/src/update_catalog_setposangle.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20121130/Ohana (added) merged: 34818-34822,34825-34827,34830-34831,34835-34837,34841
- Property svn:mergeinfo changed
-
trunk/Ohana/src/uniphot/src/update_catalog_setposangle.c
r34749 r34844 25 25 Mosaic *mosaic = getMosaicForImage(seq); 26 26 Coords *coords = &image[seq].coords; 27 Coords *mosaicCoords = mosaic ? &mosaic->coords : NULL; 27 28 28 29 double Xccd = catalog[0].measure[m].Xccd; 29 30 double Yccd = catalog[0].measure[m].Yccd; 30 31 31 setposangle_local_astrometry (&posAngle, &pltScale, Xccd, Yccd, &mosaic->coords, coords);32 setposangle_local_astrometry (&posAngle, &pltScale, Xccd, Yccd, mosaicCoords, coords); 32 33 33 34 catalog[0].measure[m].posangle = ToShortDegrees(posAngle); … … 52 53 // calculate the astrometry for the coordinate of interest 53 54 XY_to_LM (&Lx, &Mx, x, y, coords); 54 XY_to_LM (&Po, &Qo, Lx, Mx, mosaic); 55 if (mosaic) { 56 XY_to_LM (&Po, &Qo, Lx, Mx, mosaic); 57 } else { 58 Po = Lx; 59 Qo = Mx; 60 } 55 61 56 62 XY_to_LM (&Lx, &Mx, x + 1.0, y, coords); 57 XY_to_LM (&Px, &Qx, Lx, Mx, mosaic); 63 if (mosaic) { 64 XY_to_LM (&Px, &Qx, Lx, Mx, mosaic); 65 } else { 66 Px = Lx; 67 Qx = Mx; 68 } 58 69 59 70 XY_to_LM (&Lx, &Mx, x, y + 1.0, coords); 60 XY_to_LM (&Py, &Qy, Lx, Mx, mosaic); 71 if (mosaic) { 72 XY_to_LM (&Py, &Qy, Lx, Mx, mosaic); 73 } else { 74 Py = Lx; 75 Qy = Mx; 76 } 61 77 62 78 // XXX units for the resulting Tangent Plane coordinates??
Note:
See TracChangeset
for help on using the changeset viewer.
