IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37956


Ignore:
Timestamp:
Mar 5, 2015, 2:04:55 PM (11 years ago)
Author:
eugene
Message:

finish cam offset code (includes chip seq error)

Location:
branches/eam_branches/ipp-20150112/Ohana/src/uniphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150112/Ohana/src/uniphot/src/cam_correction.c

    r37913 r37956  
    2020  }
    2121
    22   CamCorrection *cam = NULL;
    2322  ALLOCATE (cam, CamCorrection, 1);
    2423
     
    7170    if (!gfits_scan (&theader, "FILTER",  "%d", 1, &filter))  return FALSE;
    7271    if (!gfits_scan (&theader, "DIR",     "%d", 1, &dir))     return FALSE;
    73     if (!gfits_scan (&theader, "X_CHIP",  "%d", 1, &ix))      return FALSE;
    74     if (!gfits_scan (&theader, "Y_CHIP",  "%d", 1, &iy))      return FALSE;
     72
     73    // XXX NOTE: astroflat.20150209.fits has ix and iy backwards in header
     74    // if (!gfits_scan (&theader, "X_CHIP",  "%d", 1, &ix))      return FALSE;
     75    // if (!gfits_scan (&theader, "Y_CHIP",  "%d", 1, &iy))      return FALSE;
     76
     77    if (!gfits_scan (&theader, "X_CHIP",  "%d", 1, &iy))      return FALSE;
     78    if (!gfits_scan (&theader, "Y_CHIP",  "%d", 1, &ix))      return FALSE;
    7579
    7680    Matrix *matrix = NULL;
     
    8286    myAssert (index < cam->Nvalues, "index too big");
    8387
    84     myAssert (!cam->matrix[i], "entry already assigned?");
     88    myAssert (!cam->matrix[index], "entry already assigned?");
    8589
    8690    // assert that cam->matrix[index] is NULL?
  • branches/eam_branches/ipp-20150112/Ohana/src/uniphot/src/update_catalog_setastrom.c

    r37913 r37956  
    127127     
    128128      // 10134 : r, XY34 -> filtCode = 1
    129       int filtCode = (int)((measure->photcode % 100) / 100);
     129      int filtCode = (int)((measure->photcode % 1000) / 100);
    130130
    131131      // correction is in arcseconds
     
    265265    }
    266266    if (CAM_FILE) {
    267       measure[0].XoffCAM = -dX_DCR / pltScale;
    268       measure[0].YoffCAM = -dY_DCR / pltScale;
     267      measure[0].XoffCAM = -dX_CAM / pltScale;
     268      measure[0].YoffCAM = -dY_CAM / pltScale;
    269269    }
    270270    if (CAM_RESET) {
Note: See TracChangeset for help on using the changeset viewer.