Changeset 7621 for trunk/ppImage/src/ppImageAstrom.c
- Timestamp:
- Jun 21, 2006, 12:51:48 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageAstrom.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageAstrom.c
r7592 r7621 5 5 bool status; 6 6 7 // select recipe options supplied on command line 8 // XXX move these options to the "PSASTRO" recipe? 9 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, RECIPE_NAME); 10 7 11 // find or define a pmFPAfile PSPHOT.INPUT 8 12 pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSASTRO.INPUT"); 9 13 if (!status) { 10 14 11 // psphotReadout requires a pmFPAfile supplied with the name PS PHOT.INPUT12 // create a pmFPAfile which points at P PIMAGE.OUTPUT15 // psphotReadout requires a pmFPAfile supplied with the name PSASTRO.INPUT 16 // create a pmFPAfile which points at PSPHOT.OUTPUT 13 17 // mode is 'REFERENCE' to prevent double frees of the fpa 14 18 pmFPAfile *output = psMetadataLookupPtr (&status, config->files, "PSPHOT.OUTPUT"); … … 17 21 18 22 pmFPAfileDefineOutput (config, input->fpa, "PSPHOT.OUTPUT"); 19 20 // supply the output name (from cmd-line) to all output (WRITE) files21 // XXX does this cause trouble with existing files?22 char *outname = psMetadataLookupPtr(&status, config->arguments, "OUTPUT");23 pmFPAfileAddFileNames (config->files, "OUTPUT", outname, PM_FPA_MODE_WRITE);24 23 } 25 26 // we only was to operate on PSPHOT pmFPAfiles here:27 pmFPAfileActivate (config->files, false, NULL);28 pmFPAfileActivate (config->files, true, "PSASTRO.INPUT");29 pmFPAfileActivate (config->files, true, "PSASTRO.OUTPUT");30 24 31 25 // interpret the available initial astrometric information … … 38 32 psastroMosaicGetRefstars (config, refs); 39 33 40 char *mosastro = psMetadataLookupStr (NULL, config->arguments, "MOSASTRO"); 41 if (mosastro == NULL) { 34 if (psMetadataLookupBool (NULL, recipe, "ASTROM.CHIP")) { 42 35 psastroChipAstrom (config, refs); 43 } else { 36 } 37 if (psMetadataLookupBool (NULL, recipe, "ASTROM.MOSAIC")) { 44 38 psastroMosaicAstrom (config, refs); 45 39 } 46 40 47 psastroDataSave (config);48 49 // de-activate the PSPHOT image files, activate the PPIMAGE ones50 pmFPAfileActivate (config->files, false, NULL);51 pmFPAfileActivate (config->files, true, "PPIMAGE.INPUT");52 pmFPAfileActivate (config->files, true, "PPIMAGE.BIAS");53 pmFPAfileActivate (config->files, true, "PPIMAGE.DARK");54 pmFPAfileActivate (config->files, true, "PPIMAGE.MASK");55 pmFPAfileActivate (config->files, true, "PPIMAGE.FLAT");56 pmFPAfileActivate (config->files, true, "PPIMAGE.OUTPUT");57 58 pmFPAfileActivate (config->files, true, "PPIMAGE.BIN1");59 pmFPAfileActivate (config->files, true, "PPIMAGE.JPEG1");60 pmFPAfileActivate (config->files, true, "PPIMAGE.BIN2");61 pmFPAfileActivate (config->files, true, "PPIMAGE.JPEG2");62 63 41 return true; 64 42 }
Note:
See TracChangeset
for help on using the changeset viewer.
