Changeset 25082 for trunk/magic/remove/src/streaksastrom.c
- Timestamp:
- Aug 14, 2009, 3:58:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksastrom.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksastrom.c
r24716 r25082 93 93 // since the transform already accounts for the chip parity we just use the cell parity 94 94 astrom->xParity = (double) xParityCell; 95 astrom->yParity = (double) yParityCell; 95 astrom->yParity = (double) yParityCell; 96 96 97 97 astrom->numCols = numCols; … … 135 135 136 136 void 137 cellToChipInt( int *xChip,int *yChip, strkAstrom *astrom, int xCell, int yCell)137 cellToChipInt(unsigned int *xChip, unsigned int *yChip, strkAstrom *astrom, int xCell, int yCell) 138 138 { 139 139 if (astrom->xParity > 0) { … … 148 148 } 149 149 } 150 150 151 151 bool 152 152 SkyToLocal(strkPt *outPt, strkAstrom *astrom, double ra, double dec) … … 156 156 157 157 pmFPA *fpa = (pmFPA *) astrom->fpa; 158 pmChip *chip = (pmChip *) astrom->chip;159 158 160 159 // find the RA,DEC coords of the 0,0 pixel for this chip: … … 183 182 184 183 pmFPA *fpa = (pmFPA *) astrom->fpa; 185 pmChip *chip = (pmChip *) astrom->chip;186 184 187 185 // find the RA,DEC coords of the 0,0 pixel for this chip: … … 251 249 pmChip *chip = (pmChip *) astrom->chip; 252 250 pmAstromObj *pt = (pmAstromObj *) astrom->pt; 253 251 254 252 pt->sky->r = ra; 255 253 pt->sky->d = dec; … … 276 274 pmChip *chip = (pmChip *) astrom->chip; 277 275 pmAstromObj *pt = (pmAstromObj *) astrom->pt; 278 276 279 277 cellToChip(&pt->chip->x, &pt->chip->y, astrom, x, y); 280 278 … … 294 292 } 295 293 296 294 297 295 static bool 298 296 readAstrometry(streakFiles *sf) … … 362 360 break; 363 361 } 364 } 362 } 365 363 if (!sf->chip) { 366 364 psError(PS_ERR_UNKNOWN, true, "Failed to find chip with data.");
Note:
See TracChangeset
for help on using the changeset viewer.
