IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37908


Ignore:
Timestamp:
Feb 14, 2015, 7:58:58 AM (11 years ago)
Author:
eugene
Message:

adding camera static correction

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

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150112/Ohana/src/uniphot/include/setastrom.h

    r37807 r37908  
    1010  double *y2;
    1111} Spline;
     12
     13// we have one correction (an image) for each filter and chip
     14typedef struct {
     15  int Nvalues;
     16  int Nfilters; // number of filters
     17  int Nx; // number of chips in x
     18  int Ny; // number of chips in y
     19  Matrix **matrix; // allocate an array of pointers
     20  // index = ix + iy*Nx + filter*Nx*Ny + dir*Nx*Ny*Nfilter
     21} CamCorrection;
    1222
    1323/* global variables set in parameter file */
  • branches/eam_branches/ipp-20150112/Ohana/src/uniphot/src/update_catalog_setastrom.c

    r37807 r37908  
    117117    }
    118118
     119    /**** CAM section ****/
     120
     121    double dX_CAM = 0.0;
     122    double dY_CAM = 0.0;
     123    if (CAM_FILE && doCAM) {
     124
     125      // camera systematic correction ("astroflat") depends on only the X,Y coordinate,
     126      // the filter, and the chip
     127     
     128      int filtCode = (int)(measure->photcode / 100); // eg, 101 = r
     129
     130      // correction is in arcseconds
     131      get_cam_correction (0, chipID, filtCode, measure->Xccd, measure->Yccd, &dX_CAM, &dY_CAM);
     132    }
     133
    119134    /**** DCR section ****/
    120135
Note: See TracChangeset for help on using the changeset viewer.