- Timestamp:
- Feb 4, 2023, 12:12:53 PM (3 years ago)
- Location:
- branches/eam_branches/ipp-20220316/psastro
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psastroOneChipGrid.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/psastro
- Property svn:mergeinfo changed
/trunk/psastro (added) merged: 42257,42285,42289,42293-42294,42357
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20220316/psastro/src/psastroOneChipGrid.c
r40084 r42370 22 22 bool status; 23 23 pmAstromStats *stats = NULL; 24 char *chipname = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME"); 25 24 26 25 27 // do we need to get a rough initial match? … … 49 51 } 50 52 51 psLogMsg ("psastro", 3, "grid search using %ld raw vs %ld ref stars\n",rawGridStars->n, refGridStars->n);53 psLogMsg ("psastro", 3, "grid search for chip %s using %ld raw vs %ld ref stars\n",chipname,rawGridStars->n, refGridStars->n); 52 54 53 55 // find initial offset / rotation / scale 54 56 pmAstromStats *gridStats = pmAstromGridMatch (rawGridStars, refGridStars, recipe); 55 57 if (gridStats == NULL) { 56 psLogMsg ("psastro", 3, "failed to find a grid match solution \n");58 psLogMsg ("psastro", 3, "failed to find a grid match solution for chip %s\n",chipname); 57 59 psFree (rawGridStars); 58 60 psFree (refGridStars); … … 60 62 return false; 61 63 } 62 psLogMsg ("psastro", 3, "basic grid search result - offset: %f,%f pixels, rotation: %f deg\n", gridStats->offset.x, gridStats->offset.y, DEG_RAD*gridStats->angle);64 psLogMsg ("psastro", 3, "basic grid search result for chip %s - offset: %f,%f pixels, rotation: %f deg\n",chipname, gridStats->offset.x, gridStats->offset.y, DEG_RAD*gridStats->angle); 63 65 64 66 # if (1) … … 73 75 return false; 74 76 } 75 psLogMsg ("psastro", 3, "tweak grid search result - offset: %f,%f pixels, rotation: %f deg\n", stats->offset.x, stats->offset.y, DEG_RAD*stats->angle);77 psLogMsg ("psastro", 3, "tweak grid search result for chip %s - offset: %f,%f pixels, rotation: %f deg\n",chipname, stats->offset.x, stats->offset.y, DEG_RAD*stats->angle); 76 78 # else 77 79 // EAM TEST: skip tweak … … 82 84 // adjust the chip.toFPA terms only 83 85 pmAstromGridApply (chip->toFPA, stats); 84 psastroUpdateChipToFPA (fpa, chip); // updates PSASTRO.RAWSTARS and PSASTRO.REFSTARS 86 psastroUpdateChipToFPA (fpa, chip); // updates PSASTRO.RAWSTARS and PSASTRO.REFSTARS (see note below) 85 87 psFree (gridStats); 86 88 psFree (rawGridStars); … … 90 92 return true; 91 93 } 94 95 /* if psastroUpdateChiptoFPA fails to invert the toFPA transformation, 96 the ref->chip coordinates will not be set. This is not a problem 97 at this stage since they are not used in the calculation. Later 98 passes can still yield a valid solution. 99 */
Note:
See TracChangeset
for help on using the changeset viewer.
