Changeset 12505 for trunk/pswarp/src/pswarpDefine.c
- Timestamp:
- Mar 19, 2007, 3:58:02 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpDefine.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpDefine.c
r11281 r12505 4 4 bool pswarpDefine (pmConfig *config) { 5 5 6 // select the current recipe 7 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSWARP_RECIPE); 6 bool status; 7 psMetadata *recipe = NULL; 8 9 // load the pixel scale from the PSASTRO recipe 10 recipe = psMetadataLookupPtr (NULL, config->recipes, PSASTRO_RECIPE); 11 if (!recipe) { 12 psError(PSWARP_ERR_CONFIG, false, "Can't find PSASTRO recipe needed for pixel scale!\n"); 13 return false; 14 } 15 // physical pixel scale in microns per pixel 16 double pixelScale = psMetadataLookupF32 (&status, recipe, "PSASTRO.PIXEL.SCALE"); 17 if (!status) { 18 psError(PS_ERR_IO, false, "Failed to lookup pixel scale"); 19 return false; 20 } 21 22 // load the PSWARP recipe 23 recipe = psMetadataLookupPtr (NULL, config->recipes, PSWARP_RECIPE); 8 24 if (!recipe) { 9 25 psError(PSWARP_ERR_CONFIG, true, "Can't find PSWARP recipe!\n"); … … 36 52 } 37 53 if (bilevelAstrometry) { 38 pmAstromReadBilevelMosaic (skycell->fpa, phu->header );54 pmAstromReadBilevelMosaic (skycell->fpa, phu->header, pixelScale); 39 55 pmAstromReadBilevelChip (chip, hdu->header); 40 56 } else { 41 // XXX get pixelScale from recipes. does it matter?42 float pixelScale = 13.5;43 57 pmAstromReadWCS (skycell->fpa, chip, hdu->header, pixelScale); 44 58 }
Note:
See TracChangeset
for help on using the changeset viewer.
