Changeset 37956
- Timestamp:
- Mar 5, 2015, 2:04:55 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150112/Ohana/src/uniphot/src
- Files:
-
- 2 edited
-
cam_correction.c (modified) (3 diffs)
-
update_catalog_setastrom.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150112/Ohana/src/uniphot/src/cam_correction.c
r37913 r37956 20 20 } 21 21 22 CamCorrection *cam = NULL;23 22 ALLOCATE (cam, CamCorrection, 1); 24 23 … … 71 70 if (!gfits_scan (&theader, "FILTER", "%d", 1, &filter)) return FALSE; 72 71 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; 75 79 76 80 Matrix *matrix = NULL; … … 82 86 myAssert (index < cam->Nvalues, "index too big"); 83 87 84 myAssert (!cam->matrix[i ], "entry already assigned?");88 myAssert (!cam->matrix[index], "entry already assigned?"); 85 89 86 90 // assert that cam->matrix[index] is NULL? -
branches/eam_branches/ipp-20150112/Ohana/src/uniphot/src/update_catalog_setastrom.c
r37913 r37956 127 127 128 128 // 10134 : r, XY34 -> filtCode = 1 129 int filtCode = (int)((measure->photcode % 100 ) / 100);129 int filtCode = (int)((measure->photcode % 1000) / 100); 130 130 131 131 // correction is in arcseconds … … 265 265 } 266 266 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; 269 269 } 270 270 if (CAM_RESET) {
Note:
See TracChangeset
for help on using the changeset viewer.
