Changeset 42289 for trunk/psastro/src/psastroUtils.c
- Timestamp:
- Sep 23, 2022, 5:57:17 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroUtils.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroUtils.c
r41895 r42289 109 109 110 110 psRegion *region = pmChipPixels (chip); 111 112 111 psFree (chip->fromFPA); 113 112 chip->fromFPA = psPlaneTransformInvert (NULL, chip->toFPA, *region, 50, 4); 114 113 psFree (region); 114 115 // XXX EAM 2022.09.22 : for a specific case, psPlaneTransformInvert fails. 116 // This probably means the solution was poor in any case. 117 // Some options: 118 // 1) skip the chip in psastroAstromGuessCheck (supply bad corners) 119 // 2) mark this chip as bad (return an error here and trap in psastroMosaicOneChip) 120 // 3) warn of the failure: 121 if (!chip->fromFPA) { 122 char *name = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME"); 123 psLogMsg ("psastro", PS_LOG_INFO, "WARNING: failure to invert toFPA for %s", name); 124 } 115 125 116 126 // loop over cells in this chip … … 150 160 pmAstromObj *ref = refstars->data[i]; 151 161 psPlaneTransformApply (ref->chip, chip->fromFPA, ref->FP); 162 // if chip->fromFPA is NULL (non-invertable), the action is skipped 152 163 } 153 164 }
Note:
See TracChangeset
for help on using the changeset viewer.
