IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2015, 11:48:00 AM (11 years ago)
Author:
eugene
Message:

merge fix from eam_branches/ipp-20150625

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/getstar/src/MatchImages.c

    r37807 r38598  
    2323  /* we keep the original crpix1,2 and crref1,2 */
    2424  /* for mosaic astrometry, the grid should be w.r.t. the tangent-plane, not chip coords */
    25   InitCoords (&tcoords, "DEC--TAN");
     25
     26  InitCoords (&tcoords, "DEC--ARC");
     27  tcoords.cdelt1 = tcoords.cdelt2 = 1.0 / 3600.0;
     28
     29  tcoords.crval1 = image[0].coords.crval1;
     30  tcoords.crval2 = image[0].coords.crval2;
    2631  if (!strcmp (&image[0].coords.ctype[4], "-WRP")) {
    2732    myAssert (image[0].coords.mosaic, "should already have tested this");
    28     tcoords = image[0].coords.mosaic[0];
    29     tcoords.cdelt1 = tcoords.cdelt2 = 1.0 / 3600.0;
    30     /* register so image->sky conversions below have correct mosaic */
    31   } else {
    32     tcoords = image[0].coords;
    33     tcoords.cdelt1 = tcoords.cdelt2 = 1.0 / 3600.0;
     33    tcoords.crval1 = image[0].coords.mosaic[0].crval1;
     34    tcoords.crval2 = image[0].coords.mosaic[0].crval2;
    3435  }
    3536
Note: See TracChangeset for help on using the changeset viewer.