IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2011, 4:38:53 PM (15 years ago)
Author:
eugene
Message:

add support for new image fields nFitAstrom, nFitPhotom, dXpixSys, dYpixSys, dMagSys; fix wrap-around problem for skycat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/Ohana/src/opihi/dvo/images.c

    r29938 r30508  
    223223      goto got_type;
    224224    }
    225     // For 'TrianglePts' (TRI-), we are using the Mx,My, etc terms to save the coordinates
    226     // this means triangular images cannot carry photometric zero-point variations
     225    // For 'TrianglePts' (TRI-), we are absurdly overloaded values otherwise not used
    227226    if (typehash == TrianglePts) {
    228227      Npts = 3;
    229       x[0] = image[i].Mx;   y[0] = image[i].My;
    230       x[1] = image[i].Mxxx; y[1] = image[i].Mxyy;
    231       x[2] = image[i].Mxxy; y[2] = image[i].Myyy;
     228      x[0] = image[0].dXpixSys;      y[0] = image[0].dYpixSys;
     229      x[1] = image[0].dMagSys;       y[1] = image[0].nFitAstrom;
     230      x[2] = image[0].photom_map_id; y[2] = image[0].astrom_map_id;
    232231      goto got_type;
    233232    }
Note: See TracChangeset for help on using the changeset viewer.