Changeset 10830 for trunk/psastro/src/psastroAstromGuess.c
- Timestamp:
- Dec 24, 2006, 3:56:53 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroAstromGuess.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroAstromGuess.c
r10784 r10830 11 11 bool newFPA = true; 12 12 bool status = false; 13 bool isMosaic = false;14 13 double RAmin = NAN; 15 14 double RAmax = NAN; … … 25 24 DECmin = DECmax = -90; 26 25 RAmin = RAmax = RAminSky = RAmaxSky = 0; 27 28 // is this a mosaic astrometry analysis?29 psMetadataLookupStr (&isMosaic, config->arguments, "MOSASTRO");30 26 31 27 // select the current recipe … … 43 39 } 44 40 45 double plateScale = psMetadataLookupF32 (&status, recipe, "PSASTRO.PLATE.SCALE"); 46 if (!status) plateScale = 1.0; 47 plateScale = 1.0; 41 // physical pixel scale in microns per pixel 42 double pixelScale = psMetadataLookupF32 (&status, recipe, "PSASTRO.PIXEL.SCALE"); 43 if (!status) { 44 psError(PS_ERR_IO, false, "Failed to lookup pixel scale"); 45 return false; 46 } 48 47 49 48 pmFPAview *view = pmFPAviewAlloc (0); … … 57 56 pmHDU *hdu = pmFPAviewThisHDU (view, fpa); 58 57 59 pmAstromReadWCS (fpa, chip, hdu->header, p lateScale, isMosaic);58 pmAstromReadWCS (fpa, chip, hdu->header, pixelScale); 60 59 if (newFPA) { 61 60 newFPA = false; … … 69 68 70 69 // apply the new WCS guess data to all of the data in the readouts 71 // XXX should this go into a different function? this would separate WCS interpretation from application72 70 while ((cell = pmFPAviewNextCell (view, fpa, 1)) != NULL) { 73 71 psTrace ("psastro", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); … … 85 83 86 84 psPlaneTransformApply (raw->FP, chip->toFPA, raw->chip); 87 psPlane DistortApply (raw->TP, fpa->toTPA, raw->FP, 0.0, 0.0);85 psPlaneTransformApply (raw->TP, fpa->toTPA, raw->FP); 88 86 psDeproject (raw->sky, raw->TP, fpa->toSky); 89 87 … … 100 98 101 99 psProject (tp, raw->sky, fpa->toSky); 102 psPlane DistortApply (fp, fpa->fromTPA, tp, 0.0, 0.0);100 psPlaneTransformApply (fp, fpa->fromTPA, tp); 103 101 psPlaneTransformApply (ch, chip->fromFPA, fp); 104 102
Note:
See TracChangeset
for help on using the changeset viewer.
