- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
magic (modified) (1 prop)
-
magic/remove (modified) (1 prop)
-
magic/remove/src (modified) (1 prop)
-
magic/remove/src/streaksastrom.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/magic
- Property svn:ignore
-
old new 1 1 magic 2 2 ssa-core-cpp 3 Makefile4 3 Makefile.bak
-
- Property svn:ignore
-
branches/simtest_nebulous_branches/magic/remove
-
Property svn:ignore
set to
configure
Makefile.in
Doxyfile
config.log
depcomp
config.status
config.guess
ltmain.sh
config.sub
autom4te.cache
libtool
missing
Makefile
aclocal.m4
install-sh
-
Property svn:ignore
set to
-
branches/simtest_nebulous_branches/magic/remove/src
- Property svn:ignore
-
old new 4 4 streakscompare 5 5 streaksrelease 6 makefile 6 Makefile 7 Makefile.in 8 config.h 9 .deps 10 streaksVersionDefinitions.h 11 config.h.in 12 stamp-h1
-
- Property svn:ignore
-
branches/simtest_nebulous_branches/magic/remove/src/streaksastrom.c
r24716 r27840 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."); … … 380 378 linearizeTransforms(strkAstrom *astrom) 381 379 { 382 if (!pmAstromLinearizeTransforms((pmFPA *) astrom->fpa, (pmChip *) astrom->chip)) { 383 // streaksExit("linear fit to astrometry failed\n", PS_EXIT_UNKNOWN_ERROR); 384 psError(PS_ERR_UNKNOWN, false, "linear fit to astrometry failed ignoring"); 380 if (!pmAstromLinearizeTransforms((pmFPA *) astrom->fpa, (pmChip *) astrom->chip, NULL, NULL, NULL, 0, 0)) { 381 psErrorStackPrint(stderr, "linear fit to astrometry failed. ignoring\n"); 385 382 return false; 386 383 }
Note:
See TracChangeset
for help on using the changeset viewer.
